Category Archives: Opengl with SDL
2D Sprite Rotation using Opengl with SDL
Rotating 2D Sprite: In my previous post i showed how to move a 2D sprite in two dimensional screen using Opengl with SDL. Now in this post i’l show how to rotate a 2D sprite using Opengl with SDL.
In Opengl, rotation can be made about x axis, y axis and z axis. In different axis [...]
Moving 2D Sprite using Opengl with SDL
Moving 2D Sprite: SO on my previous post i showed you the code to display a 2D sprite using OpenGl with SDL. Now i’ll show how to move a 2D Sprite using opengl with sdl. There will be some minor changes in the code and rest will be the same.
I’ll write the new changes in [...]
Also posted in Tutorials Tagged 2d graphics, 2d sprite, moving 2d sprite, opengl, sdl, texture mapping Leave a comment
Drawing 2D Sprite Using OpenGl with SDL
In many forums, i have seen people asking about making 2D games using OpenGl and there weren’t any satisfactory answers. So i searched the google on doing 2D graphics using Opengl. Surprisingly there were not many results on that, there were very very few info on doing 2D graphics using OpenGl.
So i did some research [...]
Also posted in Tutorials Tagged 2d graphics, 2d sprite, 2d texture, opengl, sdl, texture mapping 4 Comments




Alpha Blending using OpenGL with SDL