|
||||||||||
| 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.lwjgl.CanvasPeerImplBase
org.xith3d.render.lwjgl.CanvasPeerImplNative
public class CanvasPeerImplNative
The CanvasPeer implementation for the LightWeight Java Game Library (LWJGL)
| Field Summary |
|---|
| Fields inherited from class org.xith3d.render.lwjgl.CanvasPeerImplBase |
|---|
DEBUG_GL, renderingThread, vsyncSwitched |
| Fields inherited from class org.xith3d.render.CanvasPeer |
|---|
isGammaChanged, oglInfo |
| Constructor Summary | |
|---|---|
CanvasPeerImplNative(java.lang.Object owner,
DisplayMode displayMode,
DisplayMode.FullscreenMode fullscreen,
boolean vsync,
FSAA fsaa,
int depthBufferSize)
|
|
| Method Summary | |
|---|---|
protected void |
applyVSync()
|
void |
beforeThreadChanged()
This method should be executed by the Thread that starts the actual rendering Thread right before it starts it. |
void |
destroy()
Clears the screen (BLACK) and destroys the display. |
java.lang.Object |
getComponent()
|
java.lang.Object |
getDrawable()
|
int |
getHeight()
Gets the width in an implementation independant manner |
org.jagatoo.input.impl.mixed.LWJGLJInputInputDeviceFactory |
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 |
java.lang.Object |
getWindow()
|
protected void |
init()
|
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. |
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). |
protected java.lang.Thread |
makeCurrent()
|
boolean |
receivesInputEvents()
|
void |
refreshCursor(org.jagatoo.input.devices.Mouse mouse)
|
protected boolean |
setDisplayModeImpl(DisplayMode displayMode)
Sets the new DisplayMode in an implementation independant manner. |
void |
setGamma(float gamma,
float brightness,
float contrast)
Changes the gamma-, brightness- and contrast values for this CanvasPeer. |
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.lwjgl.CanvasPeerImplBase |
|---|
addDestroyableObject, beforeRenderStart, clear, createRenderPeer, doRender, getCurrentViewport, getExpectedNativeDisplayModeClass, getMaxViewport, getNativeDisplayMode, getRenderedFrames, getRenderPeer, isInitialized, updateViewport |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CanvasPeerImplNative(java.lang.Object owner,
DisplayMode displayMode,
DisplayMode.FullscreenMode fullscreen,
boolean vsync,
FSAA fsaa,
int depthBufferSize)
owner - displayMode - fullscreen - vsync - fsaa - depthBufferSize - | Method Detail |
|---|
public org.jagatoo.input.impl.mixed.LWJGLJInputInputDeviceFactory getInputDeviceFactory(org.jagatoo.input.InputSystem inputSystem)
public final java.lang.Object getDrawable()
public void refreshCursor(org.jagatoo.input.devices.Mouse mouse)
public final boolean receivesInputEvents()
protected final void init()
throws java.lang.Throwable
init in class CanvasPeerImplBasejava.lang.Throwablepublic OpenGLLayer getType()
getType in class CanvasPeerOpenGLLayerprotected void applyVSync()
applyVSync in class CanvasPeerImplBasepublic void setVSyncEnabled(boolean vsync)
setVSyncEnabled in class CanvasPeerpublic final java.lang.Object getWindow()
getWindow in class CanvasPeerpublic final java.lang.Object 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 CanvasPeer
public void setGamma(float gamma,
float brightness,
float contrast)
setGamma in class CanvasPeergamma - the gamma valuebrightness - the brightness value [-1.0, +1.0]contrast - the contrast value [0, +1.0]public final boolean isRendering()
isRendering in class CanvasPeerprotected java.lang.Thread makeCurrent()
makeCurrent in class CanvasPeerImplBasepublic 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 destroy()
destroy in class CanvasPeerImplBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||