Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Plasmite

glVertex3f:s input

This topic is 5387 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!