You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your answer but I don't see any CCDrawPrimitives in the ZhouWeikuan source files (I dont' use the jar but the source files). Where can I find this class ? Thanks.
I have got the following code in my Cocos2D-iOS program:
CGPoint corners[10];
for(int i = 0; i < 10; i++)
{
corners[i] = CGPointMake(0, 0);
}
glVertexPointer(2, GL_FLOAT, 0, corners);
that I would like to "translate" like this in Cocos2D-Android:
CGPoint[] corners = new CGPoint[4];
for(int i = 0; i < 10; i++)
{
corners[i] = CGPoint.make(0, 0);
}
(CCDirector.gl).glVertexPointer(2, GL10.GL_FLOAT, 0, corners);
but corners should be a "Buffer" according to GL10.glVertexPointer definition.
How to create such a buffer with my CGPoints ?
Thanks !
PS: I am new on Cocos2D-Android, sorry for my potentially trivial questions...
The text was updated successfully, but these errors were encountered: