Issue #3897: Add missed constructors

This commit is contained in:
pandamicro 2014-03-24 17:44:01 +08:00
parent cdb15dfe7c
commit bdfcc6c8cc
2 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,7 @@ enum {
class CC_DLL Component : public Ref class CC_DLL Component : public Ref
{ {
protected: CC_CONSTRUCTOR_ACCESS:
/** /**
* @js ctor * @js ctor
*/ */

View File

@ -94,11 +94,12 @@ public:
// Overrides // Overrides
virtual void draw(Renderer *renderer, const kmMat4 &transform, bool transformUpdated) override; virtual void draw(Renderer *renderer, const kmMat4 &transform, bool transformUpdated) override;
protected: CC_CONSTRUCTOR_ACCESS:
DrawNode(); DrawNode();
virtual ~DrawNode(); virtual ~DrawNode();
virtual bool init(); virtual bool init();
protected:
void ensureCapacity(int count); void ensureCapacity(int count);
GLuint _vao; GLuint _vao;