|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.output.graphics.BaseRenderingProcessor org.j3d.aviatrix3d.output.graphics.SingleEyeStereoProcessor
public class SingleEyeStereoProcessor
Handles the rendering for a single output device, generating stereo by using alternate frame renders to render left and right views to a single buffer.
The code expects that everything is set up before each call of the display() callback. It does not handle any recursive rendering requests as that is assumed to have been sorted out before calling this renderer.
Field Summary |
---|
Fields inherited from class org.j3d.aviatrix3d.output.graphics.BaseRenderingProcessor |
---|
addedBuffers, addedProcessors, alphaCutoff, alwaysLocalClear, availableClips, availableLights, childBuffers, clearColor, clipIdMap, currentShaderProgramId, currentViewport, environmentList, errorReporter, eyePoint, initComplete, INVALID_SHADER, lastClipIdx, lastLightIdx, lightIdMap, localContext, numRenderables, operationList, otherDataRequests, ownerDevice, ownerRenderable, parentContext, removedBuffers, renderableList, resetColor, singleThreaded, surfaceMatrix, terminate, updatedBuffers, useTwoPassTransparent |
Constructor Summary | |
---|---|
SingleEyeStereoProcessor(javax.media.opengl.GLContext context,
GraphicsOutputDevice owner)
Construct handler for rendering objects to the main screen. |
Method Summary | |
---|---|
void |
display(GraphicsProfilingData profilingData)
Called by the drawable to perform rendering by the client. |
float |
getStereoEyeSeparation()
Get the current eye separation value - always returns 0. |
void |
init()
Called by the drawable when the surface resizes itself. |
boolean |
isStereoAvailable()
Check to see whether this surface supports stereo rendering. |
protected void |
preLayerEnvironmentDraw(javax.media.opengl.GL gl,
GraphicsEnvironmentData data,
boolean left)
Setup the view environment data for drawing now. |
void |
setEyeToRender(boolean leftEye)
Set which eye should be rendered by this renderer. |
void |
setStereoEyeSeparation(float sep)
Set the eye separation value when rendering stereo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.j3d.aviatrix3d.output.graphics.RenderingProcessor |
---|
addChildBuffer, addSurfaceInfoListener, disposeSingleThreadResources, enableSingleThreaded, enableTwoPassTransparentRendering, getAlphaTestCutoff, getCenterEyeInSurface, getPixelLocationInSurface, getSurfaceToVWorld, halt, isTwoPassTransparentEnabled, prepareData, reinitialize, removeChildBuffer, removeSurfaceInfoListener, render, setAlphaTestCutoff, setClearColor, setColorClearNeeded, setDrawableObjects, setErrorReporter, setOwnerBuffer, swapBuffers, updateChildBuffer |
Constructor Detail |
---|
public SingleEyeStereoProcessor(javax.media.opengl.GLContext context, GraphicsOutputDevice owner)
context
- The context that this processor is working onowner
- The owning device of this processorMethod Detail |
---|
public void init()
init
in class BaseRenderingProcessor
public void display(GraphicsProfilingData profilingData)
display
in class BaseRenderingProcessor
profilingData
- The timing and load datapublic boolean isStereoAvailable()
isStereoAvailable
in interface StereoRenderingProcessor
public void setStereoEyeSeparation(float sep)
setStereoEyeSeparation
in interface StereoRenderingProcessor
sep
- The amount of eye separationpublic float getStereoEyeSeparation()
getStereoEyeSeparation
in interface StereoRenderingProcessor
public void setEyeToRender(boolean leftEye)
leftEye
- true to render the left eye, false for rightprotected void preLayerEnvironmentDraw(javax.media.opengl.GL gl, GraphicsEnvironmentData data, boolean left)
gl
- The gl context to draw withdata
- The view environment information to setupleft
- true if this is the left eye
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |