SDL / OpenGL texturing

Started by
4 comments, last by doyleman77 11 years, 8 months ago
I am trying to move from standard software SDL to OpenGL 2D using SDL to place in textures; but unfortunately I havent come across any detailed example using SDL to place say, 2 or more textures. Sure, I can follow maybe NeHe or the Lazyfoo article to a bit, but those are for one texture. Are there any OOP designs / tricks / techniques to loading up a SDL_Surface and planting it on a 2D Quad to display right away?
I appreciate any help...
Advertisement
bump
Your question is confusing, what "using SDL to place in textures" means?

Stellar Monarch (4X, turn based, released): GDN forum topic - Twitter - Facebook - YouTube

sorry. reword: load up images, and then convert them to opengl textures.
http://content.gpwiki.org/index.php/SDL:Tutorials:Using_SDL_with_OpenGL (also, don't forget to flip the image data, BMPs have weird byte order)

Stellar Monarch (4X, turn based, released): GDN forum topic - Twitter - Facebook - YouTube

Thanks. I want to be using SDL_Image for .PNGs; though I imagine it works much like the example provided there. Though, I am still confused on encapsulating all of this into an object. the whole GL_Begin and GL_End just.... confuses me.

This topic is closed to new replies.

Advertisement