c++ constructors About Monkey 2 › Forums › Monkey 2 Programming Help › c++ constructors This topic contains 1 reply, has 2 voices, and was last updated by abakobo 2 years, 5 months ago. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts November 17, 2016 at 2:03 am #5131 codifiesParticipant Is there a way to wrap these, or am I better writing manually writing a cpp glue functions that flatten all the c++ methods into a C api (ie just functions) 0 November 17, 2016 at 8:52 am #5136 abakoboParticipant I think you have nothing to do to get them working.. (here tested working example with box2d c++ wrap) in c++ .h: Monkey [crayon-5cba909dec033029064731 inline="true" ]class b2World { public: /// Construct a world object. /// @param gravity the world gravity vector. b2World(const b2Vec2& gravity); /// Destruct the world. All physics entities are destroyed and all heap memory is released. ~b2World(); 12345678910 [crayon-5cba909dec033029064731 inline="true" ]class b2World{public: /// Construct a world object. /// @param gravity the world gravity vector. b2World(const b2Vec2& gravity); /// Destruct the world. All physics entities are destroyed and all heap memory is released. ~b2World(); [/crayon] in monkey 2 extern section: Monkey [crayon-5cba909dec039541665481 inline="true" ]Class b2World Extends Void Method New(gravity:b2Vec2) Method Destroy() Extension="delete" 123 [crayon-5cba909dec039541665481 inline="true" ]Class b2World Extends Void Method New(gravity:b2Vec2) Method Destroy() Extension="delete" [/crayon] If I understand your question.. 0 Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.