ok i am trying to make a 2d game in OpenGL and SDL, i have a working system but i have 1 animated sprite and 2 static sprites but that alone is enought to make the game lag badly i dont know why its doing this.
Here is the souce code
http://www.fileupyours.com/view/228309/Source.rarso my questions are
1) dose any one know whats wrong with the method i am using
and
2) dose any one know of some good ways to do 2d graphics.
thanks and here is some info about the source code
App.h and App.cpp is the main program code, Main is just there for the Main Function.
GameObject.h has all the different classes for game objects(the three are Graphic object, Animated Graphic object, and Animation)
Animation object is just for animation
Animated Graphic Object has an Animated object in it and has other object properties.