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...
5 replies to this topic
Ad:
#5 Members - Reputation: 864
Posted 28 July 2012 - 11:33 AM
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)






