3D OpenGL Engine

BlitzPlus Forums/BlitzPlus Programming/3D OpenGL Engine

With what you gave me, does it actaully work for you?

I'm suprised that you didn't have something like this:
glEnableClientState( GL_VERTEX_ARRAY );
;glEnableClientState( GL_NORMAL_ARRAY );
;glEnableClientState( GL_COLOR_ARRAY );
;glEnableClientState( GL_TEXTURE_COORD_ARRAY );
;Render vertex arrays
glVertexPointer 3,GL_FLOAT,0,vertexarray
;glColorPointer 3,GL_UNSIGNED_BYTE,0,colorarray
glDrawElements GL_TRIANGLES,vert,GL_UNSIGNED_SHORT,trianglearray

;glDisableClientState( GL_TEXTURE_COORD_ARRAY );
;glDisableClientState( GL_COLOR_ARRAY );
;glDisableClientState( GL_NORMAL_ARRAY );
glDisableClientState( GL_VERTEX_ARRAY );


since the gl array pointers such as glVertexPointer and glColorPointer needs the specific array stats enabled via glEnableClientState;

still getting errors because of the glDrawElements function.