Fun with glDraw*Elements

Started by
9 comments, last by Kalidor 19 years, 2 months ago
Quote:Original post by mwurpts
glDrawElements(GL_QUADS, 3, GL_UNSIGNED_SHORT, &g_cubeIndicies[0]);


The second parameter to glDrawElements() is the number of indices you want to use to render. Three indices won't even make one quad, so it won't render anything. You would need to use 24.

This topic is closed to new replies.

Advertisement