True HW acceleration for Alien Blaster - it now runs 45 FPS on ADP1,

and 30 FPS on HTC Evo (it could run faster but they limited max FPS in GL renderer).
See file SdlForwardCompat.h to have an idea how to make your SDL 1.2 app HW accelerated with SDL 1.3 -
it's a compilation of hacks but whatever.
This commit is contained in:
pelya
2010-07-06 13:57:58 +03:00
parent 616cc0b5fd
commit 99698187cf
61 changed files with 401 additions and 230 deletions

View File

@@ -62,7 +62,7 @@ void Items::update( int dT ) {
}
}
void Items::draw(SDL_Surface *screen) {
void Items::draw(SdlCompat_AcceleratedSurface *screen) {
vector<Item *>::iterator i;
for (i = items.begin(); i != items.end(); ++i) {
(*i)->draw(screen);