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.
精彩评论