mirror of https://github.com/axmolengine/axmol.git
change getVecCount to ssize_t
This commit is contained in:
parent
1ee87140b1
commit
ada7ced0a8
|
@ -41,11 +41,9 @@ public:
|
||||||
MarchingSquare(const std::string &filename, const unsigned int threshold = 0);
|
MarchingSquare(const std::string &filename, const unsigned int threshold = 0);
|
||||||
//TODO: should return list of vec2s
|
//TODO: should return list of vec2s
|
||||||
void trace();
|
void trace();
|
||||||
// unsigned int getAlphaAt(const unsigned int i);
|
|
||||||
// unsigned int getAlphaAt(int x, int y);
|
|
||||||
void setThreshold(unsigned int threshold){_threshold = threshold;};
|
void setThreshold(unsigned int threshold){_threshold = threshold;};
|
||||||
unsigned int getThreshold(){return _threshold;};
|
unsigned int getThreshold(){return _threshold;};
|
||||||
unsigned int getVecCount(){return points.size();};
|
ssize_t getVecCount(){return points.size();};
|
||||||
std::vector<cocos2d::Vec2> getPoints(){return points;};
|
std::vector<cocos2d::Vec2> getPoints(){return points;};
|
||||||
void printPoints();
|
void printPoints();
|
||||||
//using Ramer–Douglas–Peucker algorithm
|
//using Ramer–Douglas–Peucker algorithm
|
||||||
|
|
Loading…
Reference in New Issue