Searching for OpenGL/SDL 2D examples..
I'm trying to find code (or a simple tutorial) for doing 2D animated textured quads using SDL/OpenGL. Basically, I just want a really simple program that displays a quad moving smoothly across the screen. I'd like it to be pretty simple so that I can add to it. Does anyone know where I could find something like this?
NeonHelium Productions
Most of his tutorials have SDL ports. Learn about quads, then learn about textures.
Most of his tutorials have SDL ports. Learn about quads, then learn about textures.
HxRender | Cornerstone SDL TutorialsCurrently picking on: Hedos, Programmer One
Thanks, I'd actually looked at his examples when I was learning OpenGL, I was hoping for something more oriented towards 2d.
If you have the textured quad part down, then you should have no trouble. Just remember to use gluOrtho2D.
It sounds to me like you already have down everything you need to know.
It sounds to me like you already have down everything you need to know.
HxRender | Cornerstone SDL TutorialsCurrently picking on: Hedos, Programmer One
Quote: Original post by PnP Bios
It sounds to me like you already have down everything you need to know.
Yeah, I actually made a program that does what I want, problem is, it's really jerky, even after I used a timer to even out the animation. I've tried pretty much everything, so I wanted to try and find a demo that I could look at, and either modify to what I want, or at least be able to tell what they're doing that I'm not.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement