Added mouse over

This commit is contained in:
Ziver Koc 2007-04-18 16:06:44 +00:00
parent 22965dbdd1
commit c6ba0ea532
6 changed files with 129 additions and 87 deletions

View file

@ -89,6 +89,7 @@ public class LWJGLGameWindow {
// enable textures since we're going to use these for our sprites
GL11.glEnable(GL11.GL_TEXTURE_2D);
// Enable Smooth Shading
GL11.glShadeModel(GL11.GL_SMOOTH);
// disable the OpenGL depth test since we're rendering 2D graphics
GL11.glDisable(GL11.GL_DEPTH_TEST);
@ -96,8 +97,6 @@ public class LWJGLGameWindow {
//GL11.glDepthFunc(GL11.GL_LEQUAL); // The Type Of Depth Testing To Do
// disable lights (we do not nead them)
GL11.glDisable(GL11.GL_LIGHTING);
// Enable Smooth Shading
GL11.glShadeModel(GL11.GL_SMOOTH);
// Black Background
GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
// Depth Buffer Setup