Sign in to follow this  
doyleman77

SDL / OpenGL texturing

Recommended Posts

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...

Share this post


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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this