Home arrow Multimedia arrow Using OpenGL with SDL for Game Programming

Using OpenGL with SDL for Game Programming

In the world of gaming, SDL provides the entire necessary infrastructure. This would have become clear from previous articles in this series. Infrastructure is to a game what a skeleton is to a human body. But without muscles, no locomotion is possible. So working with the body analogy, SDL provides the skeletal structure to build the game whereas the flesh, blood and skin are provided by 2D and 3D graphics libraries.

TABLE OF CONTENTS:
  1. Using OpenGL with SDL for Game Programming
  2. OpenGL: What is it?
  3. Initialization: Bringing OpenGL into the Picture
  4. OpenGL with SDL in Action
By: A.P.Rajshekhar
Rating: starstarstarstarstar / 9
May 16, 2007

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

In the current plethora of 3D libraries, OpenGL stands out for various reasons. The most significant of these is its compatibility with almost all platforms and graphics cards. This is reflected even in the architecture of SDL as SDL can create and use OpenGL contexts on several platforms. Such architecture helps the game programmer to use all the sub-systems of SDL seamlessly in conjunction with OpenGL to provide the most effective games and gaming environments.

In this article I will discuss how to use SDL and OpenGL together, with the gaming infrastructure provided by SDL, and animation as well as rendering being handled by OpenGL. The first section will detail the whys and wherefores of OpenGL. The second section will discuss the steps required to integrate OpenGL with SDL. The third section will utilize the pointers provided in the second section to create an application having some basic animation using OpenGL. That is the agenda for the current discussion.

If you wish to refresh your memory with previous articles in the series, they can be found at the following links:

Part 1: Game Programming using SDL: Getting Started

Part 2: Game Programming using SDL: Raw Graphics and Event Handling

Part 3: Learning Sound for Game Programming using SDL



 
 
>>> More Multimedia Articles          >>> More By A.P.Rajshekhar
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

MULTIMEDIA ARTICLES

- Basic Lighting in OpenGL and SDL Game Progra...
- Working with Colors in OpenGL for Game Progr...
- Animation in OpenGL for Game Programming usi...
- Game Programming with SDL: Getting Started w...
- Using OpenGL with SDL for Game Programming
- Learning Sound for Game Programming using SDL
- Game Programming using SDL: Raw Graphics and...
- Game Programming using SDL: Getting Started
- Network Radio With Icecast
- Learning To SMILe

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: