| Modifier and Type | Field and Description |
|---|---|
PJOGL |
pgl |
static com.jogamp.opengl.GLProfile |
profile
Selected GL profile
|
MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH| Constructor and Description |
|---|
PSurfaceJOGL(PGraphics graphics) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Component |
getComponent() |
java.lang.Object |
getNative()
Get the native window object associated with this drawing surface.
|
float |
getPixelScale() |
void |
hideCursor() |
void |
initFrame(PApplet sketch) |
void |
initOffscreen(PApplet sketch) |
boolean |
isStopped() |
void |
pauseThread()
On the next trip through the animation thread, things should go sleepy-bye.
|
void |
placePresent(int stopColor) |
void |
placeWindow(int[] location,
int[] editorLocation) |
void |
requestFocus() |
void |
resumeThread() |
void |
setAlwaysOnTop(boolean always)
Dumb name, but inherited from Frame and no better ideas.
|
void |
setCursor(int kind) |
void |
setCursor(PImage image,
int hotspotX,
int hotspotY) |
void |
setFrameRate(float fps) |
void |
setIcon(PImage icon) |
void |
setLocation(int x,
int y) |
void |
setResizable(boolean resizable)
Set true if we want to resize things (default is not resizable)
|
void |
setSize(int wide,
int high) |
void |
setSmooth(int level) |
void |
setTitle(java.lang.String title)
Set the window (and dock, or whatever necessary) title.
|
void |
setupExternalMessages() |
void |
setVisible(boolean visible)
Show or hide the window.
|
void |
showCursor() |
void |
startThread()
Start the animation thread
|
boolean |
stopThread()
Stop the animation thread (set it null)
|
public static com.jogamp.opengl.GLProfile profile
public PJOGL pgl
public PSurfaceJOGL(PGraphics graphics)
public void initOffscreen(PApplet sketch)
initOffscreen in interface PSurfacepublic java.lang.Object getNative()
PSurfacepublic void setTitle(java.lang.String title)
PSurfacepublic void setVisible(boolean visible)
PSurfacesetVisible in interface PSurfacepublic void setResizable(boolean resizable)
PSurfacesetResizable in interface PSurfacepublic void setAlwaysOnTop(boolean always)
PSurfacesetAlwaysOnTop in interface PSurfacepublic void placeWindow(int[] location,
int[] editorLocation)
placeWindow in interface PSurfacepublic void placePresent(int stopColor)
placePresent in interface PSurfacepublic void setupExternalMessages()
setupExternalMessages in interface PSurfacepublic void startThread()
PSurfacestartThread in interface PSurfacepublic void pauseThread()
PSurfacepauseThread in interface PSurfacepublic void resumeThread()
resumeThread in interface PSurfacepublic boolean stopThread()
PSurfacestopThread in interface PSurfacepublic void setLocation(int x,
int y)
setLocation in interface PSurfacepublic float getPixelScale()
public java.awt.Component getComponent()
public void setSmooth(int level)
public void setFrameRate(float fps)
setFrameRate in interface PSurfacepublic void requestFocus()
public void setCursor(PImage image, int hotspotX, int hotspotY)
public void showCursor()
showCursor in interface PSurfacepublic void hideCursor()
hideCursor in interface PSurface