Drawing multiple Textures as tilemap
- by DocJones
I am trying to draw a 2d game map and the objects on the map in a single pass.
Here is my OpenGL initialization code
// Turn off unnecessary operations
glDisable(GL_DEPTH_TEST);
glDisable(GL_LIGHTING);
glDisable(GL_CULL_FACE);
glDisable(GL_STENCIL_TEST);
glDisable(GL_DITHER);
glEnable(GL_BLEND);
glEnable(GL_TEXTURE_2D);
// activate pointer to…