Loader for Cocos2D v3 iphone
Posted: Thu Aug 13, 2015 12:52 pm
Hello guys,
first of all thanks for rube editor, rube is amazing tool and I've used it in most of my physics based games.
At the moment I'm trying to make another game with rube and Cocos2D v3 + Spritebuilder, but I'm faced into problem. The problem is that the scene loader you provide with rube sample codes is not suitable for cocos2D v3, as there are some changes in cocos2D and cocos2D v3 uses OpenGLES 2.0. I made some changes in BasicRubeLayer file but there is still needs some changes in draw function related to opengles.
The code is not compiling because
ccGLEnableVertexAttribs( kCCVertexAttribFlag_Position );
kmGLPushMatrix();
kmGLPopMatrix();
are not exists in Cocos2D v3.
I hope you will help me with this part.
Thanks in advance.
first of all thanks for rube editor, rube is amazing tool and I've used it in most of my physics based games.
At the moment I'm trying to make another game with rube and Cocos2D v3 + Spritebuilder, but I'm faced into problem. The problem is that the scene loader you provide with rube sample codes is not suitable for cocos2D v3, as there are some changes in cocos2D and cocos2D v3 uses OpenGLES 2.0. I made some changes in BasicRubeLayer file but there is still needs some changes in draw function related to opengles.
The code is not compiling because
ccGLEnableVertexAttribs( kCCVertexAttribFlag_Position );
kmGLPushMatrix();
kmGLPopMatrix();
are not exists in Cocos2D v3.
I hope you will help me with this part.
Thanks in advance.