I have researched the internet on this topic. Several just conluded with using glOrtho with 2 dimensions. Another talked about vertexes. That's about all I found as I researched.
I understand there's easier libraries, and I used SFML that does all the OpenGL rendering all for you, but I see myself using OpenGL:ES down the road, and so I think it might be educational using OpenGL for 2D. That way it's not a big jump going to OpenGL:ES, being depenent on abstractions.
I'm more curious on the following:
1) How sprites would be loaded using "surfaces" (arrays). Would this be done in software, or is there an extension for this?
2) How to copy and draw only a portion of a sprite sheet.
3) Avoiding sprite masks. I remember I loaded a 2d sprite and I had to make a mask for it. That felt redundent. Maybe there's a way in softare to avoid making masks?
4) How to draw sprites with (0,0) being at the top-left corner of the screen, though I'm assuming glOrtho does this for you. It's been too long to remember.
Basically, I want to write my own 2D library so jumping to OpenGL:ES will be easier in the long run.
Edited by shinypixel, 26 April 2014 - 10:39 PM.