Jump to content
  • Advertisement
Sign in to follow this  
Sybalos

OpenGL Loading and generate texture object at run time

This topic is 4237 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

Hi all, I want to code an MFC gui that map texture on poly's. Is there a way to load and generate texture object at run time in an application in OpenGL. It seem that i have to do the glGentextures stuff only at initialization. Does anybody have a solutions on this? thx!

Share this post


Link to post
Share on other sites
Advertisement
You can do generation anytime you like in the program as long as you have a valid opengl context to use.

Generation tends to be done on startup/level load because it's easier to deal with it then, however there is no restriction on when you do it.

Share this post


Link to post
Share on other sites
thanks... it works. I think i just don't understand when i need a context and when i don't need it ex. glBegin/glEnd etc.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!