开发者

iPhone OpenGL : Data Type Question

I want to store an array of floats that's also an array.

So I want to store an array of float[3] (this contains x,y,sizex,sizey) to use with OpenGL

What's the best way of doing this as using standard ObjectiveC arrays feels开发者_开发技巧 like a slow solution.

I am going through the array on every draw call to check for collision with objects.


I would use an array of GLfloats in standard C, that will probably be your best bet performance wise.


GLfloat is the best way to go on IOS when you are using opengl.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜