Drawing with element array in OpenGL ES
- by FatalMojo
Hello!
I am trying to use OpenGLES to draw a x by y matrix of squares about an arbitrary point.
I have an array sideVertice[] that holds a series of vertex structs defined as such
typedef struct {
GLfloat x;
GLfloat y;
GLfloat z;
} Vertex3D;
and an element array defined as such
GLubyte elementArray[];
my draw loop is as such
…