mirror of https://github.com/axmolengine/axmol.git
23 lines
509 B
Plaintext
23 lines
509 B
Plaintext
|
class CCDrawNode : public CCNode
|
||
|
{
|
||
|
static CCDrawNode* create();
|
||
|
|
||
|
CCDrawNode();
|
||
|
|
||
|
virtual ~CCDrawNode();
|
||
|
|
||
|
virtual bool init();
|
||
|
|
||
|
void drawDot(const CCPoint &pos, float radius, const Color4F &color);
|
||
|
|
||
|
void drawSegment(const CCPoint &from, const CCPoint &to, float radius, const Color4F &color);
|
||
|
|
||
|
void clear();
|
||
|
|
||
|
const BlendFunc& getBlendFunc() const;
|
||
|
|
||
|
void setBlendFunc(const BlendFunc &blendFunc);
|
||
|
|
||
|
virtual void draw();
|
||
|
};
|