|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.CanvasPeer
org.xith3d.render.jsr231.CanvasPeerImplBase
org.xith3d.render.jsr231.CanvasPeerImplSWT
public class CanvasPeerImplSWT
The CanvasPeer implementation for the official Java OpenGL Bindings (JOGL) and SWT.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.render.jsr231.CanvasPeerImplBase |
|---|
swapIntervalChanged |
| Fields inherited from class org.xith3d.render.CanvasPeer |
|---|
isGammaChanged, oglInfo |
| Constructor Summary | |
|---|---|
CanvasPeerImplSWT(java.lang.Object owner,
DisplayMode displayMode,
DisplayMode.FullscreenMode fullscreen,
boolean vsync,
FSAA fsaa,
int depthBufferSize)
|
|
| Method Summary | |
|---|---|
void |
beforeThreadChanged()
This method should be executed by the Thread that starts the actual rendering Thread right before it starts it. |
void |
clear()
Clears the screen to BLACK. |
void |
destroy()
Clears the screen (BLACK) and destroys the display. |
protected void |
ensureSWT()
|
org.eclipse.swt.opengl.GLCanvas |
getComponent()
|
org.eclipse.swt.opengl.GLCanvas |
getDrawable()
|
javax.media.opengl.GL |
getGL()
|
int |
getHeight()
Gets the width in an implementation independant manner |
org.jagatoo.input.impl.swt.SWTInputDeviceFactory |
getInputDeviceFactory(org.jagatoo.input.InputSystem inputSystem)
|
int |
getLeft()
Gets the left-location in an implementation independant manner |
java.lang.String |
getTitle()
Gets the title in an implementation independant manner |
int |
getTop()
Gets the top-location in an implementation independant manner |
OpenGLLayer |
getType()
|
int |
getWidth()
Gets the width in an implementation independant manner |
org.eclipse.swt.widgets.Composite |
getWindow()
|
protected java.lang.Object |
initRenderingImpl(View view,
java.util.List<RenderPass> renderPasses,
boolean layeredMode,
long frameId,
long nanoTime,
long nanoStep,
PickRequest pickRequest)
Initializes the rendering. |
protected void |
initSWT()
|
boolean |
isRendering()
This flag is set by the Rendering system triggered by xith or by the CanvasPeer implementation itself (e.g when the CanvasPeer is auto-redrawn). |
boolean |
receivesInputEvents()
|
void |
refreshCursor(org.jagatoo.input.devices.Mouse mouse)
|
protected void |
setAutoSwapBufferMode(boolean mode)
|
protected boolean |
setDisplayModeImpl(DisplayMode displayMode)
Sets the new DisplayMode in an implementation independant manner. |
void |
setIcon(java.net.URL iconResource)
Changes the window icon. |
boolean |
setLocation(int x,
int y)
Sets the location in an implementation independant manner. |
boolean |
setSize(int width,
int height)
Sets the size in an implementation independant manner. |
void |
setTitle(java.lang.String title)
Sets the title in an implementation independant manner. |
void |
setVSyncEnabled(boolean vsync)
Enables or disables V-Sync. |
| Methods inherited from class org.xith3d.render.jsr231.CanvasPeerImplBase |
|---|
addDestroyableObject, beforeRenderStart, createRenderPeer, doRender, getCurrentViewport, getExpectedNativeDisplayModeClass, getMaxViewport, getRenderedFrames, getRenderPeer, getSwapInterval, init, isInitialized, setSwapInterval, updateViewport |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CanvasPeerImplSWT(java.lang.Object owner,
DisplayMode displayMode,
DisplayMode.FullscreenMode fullscreen,
boolean vsync,
FSAA fsaa,
int depthBufferSize)
| Method Detail |
|---|
public org.jagatoo.input.impl.swt.SWTInputDeviceFactory getInputDeviceFactory(org.jagatoo.input.InputSystem inputSystem)
public final org.eclipse.swt.opengl.GLCanvas getDrawable()
public void refreshCursor(org.jagatoo.input.devices.Mouse mouse)
public final boolean receivesInputEvents()
protected void initSWT()
protected final void ensureSWT()
public OpenGLLayer getType()
getType in class CanvasPeerOpenGLLayerpublic void setVSyncEnabled(boolean vsync)
setVSyncEnabled in class CanvasPeerpublic final javax.media.opengl.GL getGL()
getGL in class CanvasPeerImplBasepublic final org.eclipse.swt.widgets.Composite getWindow()
getWindow in class CanvasPeerpublic final org.eclipse.swt.opengl.GLCanvas getComponent()
getComponent in class CanvasPeer
public void setIcon(java.net.URL iconResource)
throws java.io.IOException
setIcon in class CanvasPeericonResource - the resource of the image for the new icon
java.io.IOExceptionpublic final void setTitle(java.lang.String title)
setTitle in class CanvasPeerpublic final java.lang.String getTitle()
getTitle in class CanvasPeer
public final boolean setLocation(int x,
int y)
setLocation in class CanvasPeerpublic final int getLeft()
getLeft in class CanvasPeerpublic final int getTop()
getTop in class CanvasPeer
public final boolean setSize(int width,
int height)
setSize in class CanvasPeerpublic final int getWidth()
getWidth in interface org.jagatoo.input.render.InputSourceWindowgetWidth in class CanvasPeerpublic final int getHeight()
getHeight in interface org.jagatoo.input.render.InputSourceWindowgetHeight in class CanvasPeerprotected boolean setDisplayModeImpl(DisplayMode displayMode)
setDisplayModeImpl in class CanvasPeerprotected void setAutoSwapBufferMode(boolean mode)
setAutoSwapBufferMode in class CanvasPeerImplBasepublic final boolean isRendering()
isRendering in class CanvasPeerpublic void beforeThreadChanged()
beforeThreadChanged in class CanvasPeer
protected java.lang.Object initRenderingImpl(View view,
java.util.List<RenderPass> renderPasses,
boolean layeredMode,
long frameId,
long nanoTime,
long nanoStep,
PickRequest pickRequest)
initRenderingImpl in class CanvasPeerview - the View used to renderrenderPasses - the List of RenderPasses to iterate and renderlayeredMode - if true, the RenderPasses are handled in layered modeframeId - the current frame's idpickRequest - null for normal renderingpublic void clear()
clear in class CanvasPeerImplBasepublic void destroy()
destroy in class CanvasPeer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||