|
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.QuadBufferStereoProcessor
public class QuadBufferStereoProcessor
Handles the rendering for a single output device using quad-buffered stereo techniques.
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 | |
---|---|
QuadBufferStereoProcessor(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. |
protected void |
init()
Called by the drawable immediately after the OpenGL context is initialized or has changed; the GLContext has already been made current when this method is called. |
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 |
setStereoEyeSeparation(float sep)
Set the eye separation value when rendering stereo. |
protected void |
setupViewport(javax.media.opengl.GL gl,
GraphicsEnvironmentData data)
Setup the viewport environment to be drawn, but do not yet set up the viewpoint and other per-layer-specific effects. |
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 QuadBufferStereoProcessor(javax.media.opengl.GLContext context, GraphicsOutputDevice owner)
context
- The context that this processor is working onowner
- The owning device of this processorMethod Detail |
---|
protected 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
protected void setupViewport(javax.media.opengl.GL gl, GraphicsEnvironmentData data)
setupViewport
in class BaseRenderingProcessor
gl
- The gl context to draw withdata
- The view environment information to setupprotected 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 |