Modifier and Type | Field and Description |
---|---|
PJOGL |
pgl |
static GLProfile |
profile
Selected GL profile
|
MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH
Constructor and Description |
---|
PSurfaceJOGL(PGraphics graphics) |
Modifier and Type | Method and Description |
---|---|
Component |
getComponent() |
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(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 GLProfile profile
public PJOGL pgl
public PSurfaceJOGL(PGraphics graphics)
public void initOffscreen(PApplet sketch)
initOffscreen
in interface PSurface
public Object getNative()
PSurface
public void setTitle(String title)
PSurface
public void setVisible(boolean visible)
PSurface
setVisible
in interface PSurface
public void setResizable(boolean resizable)
PSurface
setResizable
in interface PSurface
public void setAlwaysOnTop(boolean always)
PSurface
setAlwaysOnTop
in interface PSurface
public void placeWindow(int[] location, int[] editorLocation)
placeWindow
in interface PSurface
public void placePresent(int stopColor)
placePresent
in interface PSurface
public void setupExternalMessages()
setupExternalMessages
in interface PSurface
public void startThread()
PSurface
startThread
in interface PSurface
public void pauseThread()
PSurface
pauseThread
in interface PSurface
public void resumeThread()
resumeThread
in interface PSurface
public boolean stopThread()
PSurface
stopThread
in interface PSurface
public void setLocation(int x, int y)
setLocation
in interface PSurface
public float getPixelScale()
public Component getComponent()
public void setSmooth(int level)
public void setFrameRate(float fps)
setFrameRate
in interface PSurface
public void requestFocus()
public void setCursor(PImage image, int hotspotX, int hotspotY)
public void showCursor()
showCursor
in interface PSurface
public void hideCursor()
hideCursor
in interface PSurface