Skip to content

Instantly share code, notes, and snippets.

@mousebird
Created August 6, 2013 18:48
Show Gist options
  • Save mousebird/6167401 to your computer and use it in GitHub Desktop.
Save mousebird/6167401 to your computer and use it in GitHub Desktop.
/* A wrapper around the data we need to draw a single
OpenGL ES related object.
*/
@interface SimpleGLObject : NSObject
// The buffer in OpenGL driver space containing the vertices
@property GLuint vertexBuffer;
// Vertex arrays contain the state to draw our object
@property GLuint vertexArray;
// The number of vertices we'll be drawing (3 * numTriangles)
@property GLuint numVertices;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment