LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: middy on April 13, 2004, 20:56:08

Title: 0.9 questions
Post by: middy on April 13, 2004, 20:56:08
A few qustions

What happened to

window.paint  eg whats the equalivant ?

GLU.gluPickMatrix wants an int[] instead of an intbuffer.. whats that about..
GL11.glGetInteger(GL11.GL_VIEWPORT, viewPort); still wants an intBuffer....


Keyboard.read();.. what do I need todo now?.. I see something called Keyboard.create(); ??
Title: Re: 0.9 questions
Post by: Matzon on April 13, 2004, 21:38:23
Quote from: "middy"
window.paint  eg whats the equalivant ?

Rolled into Window.update();

Quote from: "middy"
Keyboard.read();.. what do I need todo now?.. I see something called Keyboard.create(); ??

Rolled into Window.update();

All input devices are automatically created (unless told not to using secret switches :twisted:

Just call Window.update, and it will poll for you too

Quote from: "middy"
GLU.gluPickMatrix wants an int[] instead of an intbuffer.. whats that about..

It was determined that one would typically access GLU using arrays rather than buffers, and as such, GLU now uses arrays.

Quote from: "middy"

GL11.glGetInteger(GL11.GL_VIEWPORT, viewPort); still wants an intBuffer....
yes... why wouldn't it ??

/me posting quickly - cable modem f*ckED
Title: oki
Post by: middy on April 13, 2004, 21:44:39
well I read the view port from gfx card before I did my pickmatrix to make sure I got the correct viewport. I could just  pass it onwards.. oh well I guess I can do that smarter