public class JOGLWindow extends Object
| Constructor and Description |
|---|
JOGLWindow()
Constructor that does not initialise the GL window.
|
JOGLWindow(int width,
int height)
Create a JOGL Window with the given size and the default
properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the window and cleans up.
|
javax.media.opengl.GLAutoDrawable |
getDrawableSurface()
Get the drawable surface for 3D operations.
|
boolean |
isAlwaysOnTop() |
boolean |
isFullscreen() |
boolean |
isMouseConfined() |
boolean |
isMouseVisible() |
boolean |
isUndecorated() |
static void |
main(String[] args)
Simple test that opens a window, waits 2 seconds, then closes it.
|
void |
setAlwaysOnTop(boolean alwaysOnTop) |
void |
setFullscreen(boolean fullscreen) |
void |
setMouseConfined(boolean mouseConfined) |
void |
setMouseVisible(boolean mouseVisible) |
void |
setUndecorated(boolean undecorated) |
void |
showWindow(int width,
int height)
Force an initialisation of the window.
|
public JOGLWindow(int width, int height)
width - The width in pixelsheight - The height in pixelspublic JOGLWindow()
public void showWindow(int width, int height)
width - The widthheight - The heightpublic void close()
public javax.media.opengl.GLAutoDrawable getDrawableSurface()
public boolean isUndecorated()
public void setUndecorated(boolean undecorated)
undecorated - the undecorated to setpublic boolean isAlwaysOnTop()
public void setAlwaysOnTop(boolean alwaysOnTop)
alwaysOnTop - the alwaysOnTop to setpublic boolean isFullscreen()
public void setFullscreen(boolean fullscreen)
fullscreen - the fullscreen to setpublic boolean isMouseVisible()
public void setMouseVisible(boolean mouseVisible)
mouseVisible - the mouseVisible to setpublic boolean isMouseConfined()
public void setMouseConfined(boolean mouseConfined)
mouseConfined - the mouseConfined to setpublic static void main(String[] args) throws InterruptedException
args - Command-line args (not used)InterruptedException