public final class NativeWindow_jogamp extends java.lang.Object implements IApplication, com.jogamp.newt.event.WindowListener
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
destroyRequest
Destroy requested
|
protected boolean |
windowFullscreeen |
| Constructor and Description |
|---|
NativeWindow_jogamp() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyListener(KeyListener l) |
void |
addMouseListener(MouseListener l) |
void |
addMouseMotionListener(MouseMotionListener l) |
protected static com.jogamp.opengl.GLCapabilities |
createGLCapabilities(JogampApi glApi,
DisplayCapabilities caps) |
void |
destroy()
Destroy this application
|
void |
display(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) |
void |
dispose(com.jogamp.opengl.GLAutoDrawable glDrawable) |
void |
exit()
Destroy this application and exit
|
void |
flushFullscreenMode() |
IApplication |
getApplication() |
Point |
getAppLocation() |
Size |
getAppSize() |
GLApiName |
getGLApiName() |
protected com.jogamp.newt.opengl.GLWindow |
getGLWindow()
IGLApplication implementation
|
void |
init(com.jogamp.opengl.GLAutoDrawable glAutoDrawable) |
void |
init(IScene scene,
DisplayCapabilities caps,
IGLApi sharedContext)
Initialize this scene target, this is usually done internally when using ApplicationSettings.
|
protected void |
init(IScene scene,
DisplayCapabilities capabilities,
JogampApi sharedContext) |
void |
init(ISceneTarget sceneTarget,
ApplicationSettings settings)
Initialize this
IApplication with the specified ISceneTarget. |
boolean |
isDisplayInThread() |
void |
onDisplay() |
void |
onEnd() |
void |
onIdle() |
void |
onStart() |
void |
reshape(com.jogamp.opengl.GLAutoDrawable glAutoDrawable,
int x,
int y,
int width,
int height) |
void |
run() |
void |
setAppLocation(Point location) |
void |
setAppSize(Size size) |
void |
setFullscreenMode(FullscreenMode fullscreenMode) |
void |
setTitle(java.lang.String title) |
void |
windowDestroyed(com.jogamp.newt.event.WindowEvent event) |
void |
windowDestroyNotify(com.jogamp.newt.event.WindowEvent event) |
void |
windowGainedFocus(com.jogamp.newt.event.WindowEvent event) |
void |
windowLostFocus(com.jogamp.newt.event.WindowEvent event) |
void |
windowMoved(com.jogamp.newt.event.WindowEvent event) |
void |
windowRepaint(com.jogamp.newt.event.WindowUpdateEvent event) |
void |
windowResized(com.jogamp.newt.event.WindowEvent event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFullscreenMode, getSceneTarget, setFullscreenModegetCapabilities, getComponent, getGLApi, getLoaderContext, getRenderLoop, getSceneprotected boolean destroyRequest
protected boolean windowFullscreeen
public void init(IScene scene, DisplayCapabilities caps, IGLApi sharedContext)
ISceneTargetinit in interface ISceneTargetscene - an IScene object to assign to this ISceneTargetcaps - OpenGL capabilities, optional (can be null)sharedContext - 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 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 final IApplication getApplication()
getApplication in interface ISceneTargetIApplication of this ISceneTargetprotected final com.jogamp.newt.opengl.GLWindow getGLWindow()
public final void run()
run in interface java.lang.Runnablepublic final void destroy()
IApplicationdestroy in interface IApplicationpublic final void exit()
IApplicationexit in interface IApplicationpublic final void setTitle(java.lang.String title)
setTitle in interface IApplicationtitle - the title (window bar title)public void windowResized(com.jogamp.newt.event.WindowEvent event)
windowResized in interface com.jogamp.newt.event.WindowListenerpublic void windowRepaint(com.jogamp.newt.event.WindowUpdateEvent event)
windowRepaint in interface com.jogamp.newt.event.WindowListenerpublic void windowMoved(com.jogamp.newt.event.WindowEvent event)
windowMoved in interface com.jogamp.newt.event.WindowListenerpublic void windowLostFocus(com.jogamp.newt.event.WindowEvent event)
windowLostFocus in interface com.jogamp.newt.event.WindowListenerpublic void windowGainedFocus(com.jogamp.newt.event.WindowEvent event)
windowGainedFocus in interface com.jogamp.newt.event.WindowListenerpublic void windowDestroyed(com.jogamp.newt.event.WindowEvent event)
windowDestroyed in interface com.jogamp.newt.event.WindowListenerpublic void windowDestroyNotify(com.jogamp.newt.event.WindowEvent event)
windowDestroyNotify in interface com.jogamp.newt.event.WindowListenerpublic 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 IApplicationprotected void init(IScene scene, DisplayCapabilities capabilities, JogampApi sharedContext)
public void reshape(com.jogamp.opengl.GLAutoDrawable glAutoDrawable,
int x,
int y,
int width,
int height)
reshape in interface com.jogamp.opengl.GLEventListenerpublic void init(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
init in interface com.jogamp.opengl.GLEventListenerpublic void display(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
display in interface com.jogamp.opengl.GLEventListenerpublic final void dispose(com.jogamp.opengl.GLAutoDrawable glDrawable)
dispose in interface com.jogamp.opengl.GLEventListenerpublic final boolean isDisplayInThread()
isDisplayInThread in interface RenderLoop.IDisplayablepublic final GLApiName getGLApiName()
getGLApiName in interface ISceneTargetpublic final void addKeyListener(KeyListener l)
public final void addMouseListener(MouseListener l)
public final void addMouseMotionListener(MouseMotionListener l)
public final void setFullscreenMode(FullscreenMode fullscreenMode)
public final void flushFullscreenMode()
protected static final com.jogamp.opengl.GLCapabilities createGLCapabilities(JogampApi glApi, DisplayCapabilities caps)
Bonzai 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