Category Archives: Opengl with SDL

Alpha Blending using OpenGL with SDL

Alpha Blending is a convex combination of two colors allowing for transparency effects in computer graphics. Blending is used to combine the color of a given pixel that is about to be drawn with the pixel that is already on the screen. How the colors are combined is based on the alpha value of [...]
Also posted in Tutorials | Tagged , , | 1 Comment

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 [...]
Also posted in Tutorials | Tagged , , , , | 1 Comment

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 , , , , , | 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 , , , , , | 3 Comments
  • Become a GaanZa Fan

    GaanZa on Facebook