Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1363)

Unified Diff: nacltoons/bindings/extensions.pkg

Issue 15070003: [nacltoons] Add compound shapes. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nacltoons/bindings/LuaCocos2dExtensions.cpp ('k') | nacltoons/bindings/lua_level_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nacltoons/bindings/extensions.pkg
diff --git a/nacltoons/bindings/extensions.pkg b/nacltoons/bindings/extensions.pkg
index 188ad7514c0eb9f1de376375ae1327dfdcdd2186..acf46f112f49467cb578fd775201e731bfbf5ef2 100644
--- a/nacltoons/bindings/extensions.pkg
+++ b/nacltoons/bindings/extensions.pkg
@@ -1,8 +1,33 @@
$#include "LuaCocos2dExtensions.h"
$#include "physics_nodes/CCPhysicsSprite.h"
+$#include "physics_nodes/CCPhysicsNode.h"
$#include "tolua_fix.h"
$USING_NS_CC;
$USING_NS_CC_EXT;
-$pfile "CCPhysicsSprite.pkg"
+class CCPhysicsNode : public CCNode
+{
+ b2Body* getB2Body() const;
+ void setB2Body(b2Body *pBody);
+ float getPTMRatio() const;
+ void setPTMRatio(float fPTMRatio);
+
+ static CCPhysicsNode* create();
+};
+
+class CCPhysicsSprite : public CCSprite
+{
+ b2Body* getB2Body() const;
+ void setB2Body(b2Body *pBody);
+ float getPTMRatio() const;
+ void setPTMRatio(float fPTMRatio);
+
+ static CCPhysicsSprite* createWithTexture(CCTexture2D *pTexture);
+ static CCPhysicsSprite* createWithTexture(CCTexture2D *pTexture, CCRect rect);
+ static CCPhysicsSprite* createWithSpriteFrame(CCSpriteFrame *pSpriteFrame);
+ static CCPhysicsSprite* createWithSpriteFrameName(const char *pszSpriteFrameName);
+ static CCPhysicsSprite* create(const char *pszFileName, CCRect rect);
+ static CCPhysicsSprite* create(const char *pszFileName);
+ static CCPhysicsSprite* create();
+};
« no previous file with comments | « nacltoons/bindings/LuaCocos2dExtensions.cpp ('k') | nacltoons/bindings/lua_level_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698