Quote:
Originally Posted by -Ramirez-
This is a bit off-topic, but oh well, it's Massokre's thread, so it's fine.
You mean you don't even create a surface for the tileset? In that case, to draw them on screen, you have to manually copy over the bytes onto the "back buffer" surface, right? Why would you do it that way? "curiosity killed the cat"...
|
Because its faster (and needed for 3d terrain anyway)? In OpenGL there is no function for copying one texture into another texture, so for drawing it into the tiles buffer(s) we copy the pixels, line by line.