Some new LWJGL just committed

Started by princec, April 03, 2004, 23:07:05

Previous topic - Next topic

princec

Window now has the following new API:
int getX();
int getY();
void setLocation(int x, int y);
void setSize(int width, int height);
void setBounds(int x, int y, int width, int height);


And there is now a new (optional) boolean in the advanced create(...) methods that specifies you want an undecorated window if possible. See the new BouncingWindowTest.

Four more LWJGL properties are now used for those using LWJGL in strange ways:

  • org.lwjgl.opengl.Window.noinput=true prevents the Window from creating any input devices
  • org.lwjgl.opengl.Window.nomouse=true simply stops Nouse creation
  • org.lwjgl.opengl.Window.nokeyboard=true simply stops Keyboard creation
  • org.lwjgl.opengl.Window.nocontroller=true simply stops Controller creation
Cas :)

cfmdobbie

Groovy - those'll be handy for the Xith3D binding.

Is there an isWindowResized() test or similar, or is window resizing purely a programmatic thing for now?
ellomynameis Charlie Dobbie.

princec

Window sizing is purely programmatically controlled. It's just an advanced hack for some specialist purposes.

Cas :)

elias

Thing is that beyond simple windowed use, we want to encourage the use of the SWT or swing/awt binding. At the documentation phase (post 0.9) we'll probably add a howto-use-foreign-bindings-with-lwjgl.

- elias

pokkelipoo

Hey, how about adding a method to set the icon of a window(?).