Package processing.opengl
Class PSurfaceJOGL
java.lang.Object
processing.opengl.PSurfaceJOGL
- All Implemented Interfaces:
PSurface
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.jogamp.opengl.GLProfile
Selected GL profileFields inherited from interface processing.core.PSurface
MIN_WINDOW_HEIGHT, MIN_WINDOW_WIDTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the native window object associated with this drawing surface.float
void
void
void
initOffscreen
(PApplet sketch) boolean
boolean
void
On the next trip through the animation thread, things should go sleepy-bye.void
placePresent
(int stopColor) void
placeWindow
(int[] location, int[] editorLocation) void
void
void
selectFolder
(String prompt, String callbackMethod, File file, Object callbackObject) void
selectInput
(String prompt, String callbackMethod, File file, Object callbackObject) void
selectOutput
(String prompt, String callbackMethod, File file, Object callbackObject) void
setAlwaysOnTop
(boolean always) Dumb name, but inherited from Frame and no better ideas.void
setCursor
(int kind) void
void
setFrameRate
(float fps) void
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
Set the window (and dock, or whatever necessary) title.void
setVisible
(boolean visible) Show or hide the window.void
void
Start the animation threadboolean
Stop the animation thread (set it null)
-
Field Details
-
profile
public static com.jogamp.opengl.GLProfile profileSelected GL profile -
pgl
-
-
Constructor Details
-
PSurfaceJOGL
-
-
Method Details
-
initOffscreen
- Specified by:
initOffscreen
in interfacePSurface
-
initFrame
-
getNative
Description copied from interface:PSurface
Get the native window object associated with this drawing surface. For Java2D, this will be an AWT Frame object. For OpenGL, the window. The data returned here is subject to the whims of the renderer, and using this method means you're willing to deal with underlying implementation changes and that you won't throw a fit like a toddler if your code breaks sometime in the future. -
setTitle
Description copied from interface:PSurface
Set the window (and dock, or whatever necessary) title. -
setVisible
public void setVisible(boolean visible) Description copied from interface:PSurface
Show or hide the window.- Specified by:
setVisible
in interfacePSurface
-
setResizable
public void setResizable(boolean resizable) Description copied from interface:PSurface
Set true if we want to resize things (default is not resizable)- Specified by:
setResizable
in interfacePSurface
-
setIcon
-
setAlwaysOnTop
public void setAlwaysOnTop(boolean always) Description copied from interface:PSurface
Dumb name, but inherited from Frame and no better ideas.- Specified by:
setAlwaysOnTop
in interfacePSurface
-
placeWindow
public void placeWindow(int[] location, int[] editorLocation) - Specified by:
placeWindow
in interfacePSurface
-
placePresent
public void placePresent(int stopColor) - Specified by:
placePresent
in interfacePSurface
-
startThread
public void startThread()Description copied from interface:PSurface
Start the animation thread- Specified by:
startThread
in interfacePSurface
-
pauseThread
public void pauseThread()Description copied from interface:PSurface
On the next trip through the animation thread, things should go sleepy-bye. Does not pause the thread immediately because that needs to happen on the animation thread itself, so fires on the next trip through draw().- Specified by:
pauseThread
in interfacePSurface
-
resumeThread
public void resumeThread()- Specified by:
resumeThread
in interfacePSurface
-
stopThread
public boolean stopThread()Description copied from interface:PSurface
Stop the animation thread (set it null)- Specified by:
stopThread
in interfacePSurface
- Returns:
- false if already stopped
-
isStopped
public boolean isStopped() -
setLocation
public void setLocation(int x, int y) - Specified by:
setLocation
in interfacePSurface
-
setSize
public void setSize(int wide, int high) -
getPixelScale
public float getPixelScale() -
getComponent
-
setSmooth
public void setSmooth(int level) -
setFrameRate
public void setFrameRate(float fps) - Specified by:
setFrameRate
in interfacePSurface
-
requestFocus
public void requestFocus() -
setCursor
public void setCursor(int kind) -
setCursor
-
showCursor
public void showCursor()- Specified by:
showCursor
in interfacePSurface
-
hideCursor
public void hideCursor()- Specified by:
hideCursor
in interfacePSurface
-
loadImage
-
openLink
-
selectInput
- Specified by:
selectInput
in interfacePSurface
-
selectOutput
- Specified by:
selectOutput
in interfacePSurface
-
selectFolder
- Specified by:
selectFolder
in interfacePSurface
-