i drew a table using 5 cubes that i just scaled.. i also used devil to bind textures to it.
however, when i move the camera up, i could see the table legs through the table. does anybody know how to undo that? :)
do this when setting up opengl
GL11.glEnable(GL11.GL_DEPTH_TEST); // Enables Depth Testing
GL11.glDepthFunc(GL11.GL_LEQUAL);