-
OpenGL + Allegro - Lag - Trouble with VBO
Hey guys =)
I'm moving from slow software rendering to nice OpenGL for speedy hardware acceleration goodness, but I seem to be having trouble, as when I start drawing lots of items to the screen, it slows down and lags - a lot.
Coming from libraries that used X 0-Screen Width Y-Screen Height, I made my own classes to load sprites and draw them at X and Y on a 1024x768 window, but I used the glBegin()/End() calls which after a bit of research, are old, slow and soon to be removed altogether.
So I need to use a VBO, for all Sprites? Problem is, is that I cant work them out, I dunno what I'm missing. But I was hoping you guys could take a look at my sprite class, and maybe some hints of how and even IF it can be implemented into it. I like the idea of just being able to do:
Sprite Cat;
Cat.Create("Cat.bmp");
Cat.Display(etc)
But yeah, it's slow =( And ANY information is appreciated =)
Heres my Sprite class: http://pastebin.com/Kb1cgsqr
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules