glVertex3f:s input

Started by
1 comment, last by Plasmite 20 years, 6 months ago
I can get nice stuff on screen with glVertex3f calls, but what should I do, if I have an array and I have allocated lots of memory for it, and I would then like to use this array as an input-array for gl-functions? Kind of redirecting the input. Or in other words, I have memory for an image, and I want to draw stuff into it with gl-functions. Any ways to do this?
Advertisement
Uhm, google up glDrawElements, glDrawArrays, and glArrayElement.

Also, glColorPointer, glVertexPointer, and glTexCoordPointer.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opengl/apxb4_82lh.asp
Waramp.Before you insult a man, walk a mile in his shoes.That way, when you do insult him, you'll be a mile away, and you'll have his shoes.
Moved to the OpenGL forum.

This topic is closed to new replies.

Advertisement