public class Offscreen_jogamp extends java.lang.Object implements ISceneTarget, IComponent, IApplication, RenderLoop.IDisplayable
| Constructor and Description |
|---|
Offscreen_jogamp(Size size) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy this application
|
void |
exit()
Destroy this application and exit
|
IApplication |
getApplication() |
Point |
getAppLocation() |
Size |
getAppSize() |
java.lang.Object |
getAwtCanvas()
Cast into a java.awt.Canvas on desktop platform.
|
DisplayCapabilities |
getCapabilities() |
IComponent |
getComponent() |
FullscreenMode |
getFullscreenMode() |
GLApiName |
getGLApiName() |
Point |
getLocationOnScreen() |
ISceneTarget |
getSceneTarget() |
Size |
getSize() |
void |
init(IScene glScene,
DisplayCapabilities glCapabilities,
IGLApi sharedGLContext)
Initialize this scene target, this is usually done internally when using ApplicationSettings.
|
void |
init(ISceneTarget sceneTarget,
ApplicationSettings settings)
Initialize this
IApplication with the specified ISceneTarget. |
boolean |
isDisplayInThread() |
void |
onDisplay() |
void |
onEnd() |
void |
onIdle() |
void |
onStart() |
void |
requestFocus() |
void |
run() |
void |
setAppLocation(Point location) |
void |
setAppSize(Size size) |
void |
setFullscreenMode(FullscreenMode fullscreenMode) |
void |
setSize(int width,
int height) |
void |
setTitle(java.lang.String title) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGLApi, getLoaderContext, getRenderLoop, getSceneaddFileDropListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, fireEvent, getFileDropListeners, getFocusListeners, getKeyListeners, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, removeFileDropListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListenerpublic Offscreen_jogamp(Size size)
public final void init(IScene glScene, DisplayCapabilities glCapabilities, IGLApi sharedGLContext)
ISceneTargetinit in interface ISceneTargetglScene - an IScene object to assign to this ISceneTargetglCapabilities - OpenGL capabilities, optional (can be null)sharedGLContext - OpenGL context shared, optional (can be null)public final void init(ISceneTarget sceneTarget, ApplicationSettings settings)
IApplicationIApplication with the specified ISceneTarget.init in interface IApplicationpublic final void run()
run in interface java.lang.Runnablepublic final void onStart()
onStart in interface RenderLoop.IDisplayablepublic final void onDisplay()
onDisplay in interface RenderLoop.IDisplayablepublic final void onIdle()
onIdle in interface RenderLoop.IDisplayablepublic final void onEnd()
onEnd in interface RenderLoop.IDisplayablepublic boolean isDisplayInThread()
isDisplayInThread in interface RenderLoop.IDisplayablepublic final void destroy()
IApplicationdestroy in interface IApplicationpublic final void exit()
IApplicationexit in interface IApplicationpublic void setAppLocation(Point location)
setAppLocation in interface IApplicationlocation - the location of the application window (or applet)public Point getAppLocation()
getAppLocation in interface IApplicationpublic void setAppSize(Size size)
setAppSize in interface IApplicationsize - the size of the application window (or applet)public Size getAppSize()
getAppSize in interface IApplicationpublic void setFullscreenMode(FullscreenMode fullscreenMode)
setFullscreenMode in interface IApplicationfullscreenMode - a FullscreenMode for fullscreen or null for window'ed/applet modepublic FullscreenMode getFullscreenMode()
getFullscreenMode in interface IApplicationpublic final GLApiName getGLApiName()
getGLApiName in interface ISceneTargetpublic final ISceneTarget getSceneTarget()
getSceneTarget in interface IApplicationISceneTargetISceneTarget,
ISceneTarget.getScene()public final IComponent getComponent()
getComponent in interface ISceneTargetpublic final IApplication getApplication()
getApplication in interface ISceneTargetIApplication of this ISceneTargetpublic final void setTitle(java.lang.String title)
setTitle in interface IApplicationtitle - the title (window bar title)public final DisplayCapabilities getCapabilities()
getCapabilities in interface ISceneTargetDisplayCapabilities used to init this ISceneTarget, or nullpublic final void setSize(int width,
int height)
setSize in interface IComponentpublic final Point getLocationOnScreen()
getLocationOnScreen in interface IComponentpublic final Size getSize()
getSize in interface IComponentpublic final void requestFocus()
requestFocus in interface IComponentpublic final java.lang.Object getAwtCanvas()
IComponentgetAwtCanvas in interface IComponentBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com