-
I still can’t get things to render properly. What is wrong with the following?
gl.disable(GL.TEXTURE_2D); gl.blendFunc(GL.ONE,GL.ZERO); board.render(gl); gl.enable(GL.TEXTURE_2D); gl.blendFunc(GL.SRC_ALPHA,GL.ONE); gl.color3f(1.0f,1.0f,0f); gl.bindTexture(GL.TEXTURE_2D,textures[0]); gl.begin(GL.QUADS); gl.texCoord2f(0,1); gl.vertex2f(mouseX,mouseY); gl.texCoord2f(0,0); gl.vertex2f(mouseX,mouseY+16); gl.texCoord2f(1,0); gl.vertex2f(mouseX+16,mouseY+16); gl.texCoord2f(1,1); gl.vertex2f(mouseX+16,mouseY); gl.end();
The cursor ends up being blended with what is already on the screen. Changing the blending mode just makes it so the black transparency shows up. What am I doing wrong?
-
I would rather have my game in a window (yes I know that it is meant to be a debug mode). Is there any way to share the Windows cursor (for lack of a better description)? I.E. when the cursor reaches the edge of the Display boundries it hops out into the Windows environment.
-
What does Sys.getTimerResolution() do? Is it measured in ticks per millisecond?
Thanks for the help :).
Hack the library about yourself!