| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final GenericStereoDevice | |
| private final int | |
| private final GenericStereoDeviceRenderer. | |
| private final DimensionImmutable[] | |
| private long | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private ShaderProgram | |
| private final int | |
| private final GLUniformData | texUnit0
if texUnit0 is null: no post-processing |
| private final DimensionImmutable | |
| private final ViewerPose | |
| private static final DimensionImmutable |
| Access | Constructor and Description |
|---|---|
| pack-priv | GenericStereoDeviceRenderer(final GenericStereoDevice context, final int distortionBits, final int textureCount, final float[] eyePositionOffset, final EyeParameter[] eyeParam, final float pixelsPerDisplayPixel, final int textureUnit, final DimensionImmutable[] eyeTextureSizes, final DimensionImmutable totalTextureSize, final RectangleImmutable[] eyeViewports)
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | beginFrame(final GL gl)
Implements com. |
| public final void | dispose(final GL gl)
Implements com. |
| public final void | endFrame(final GL gl)
Implements com. |
| public StereoDevice | getDevice()
Implements com. StereoDevice of this StereoDeviceRenderer instance.
|
| public final int | getDistortionBits()
Implements com. DISTORTION_BARREL,
in case the stereoscopic display requires such, i.e. in case lenses are utilized.
|
| public final StereoDeviceRenderer. | getEye(final int eyeNum)
Implements com. Eye instance for the denoted eyeNum.
|
| public final DimensionImmutable[] | getEyeSurfaceSize()
Implements com. |
| public final ViewerPose | getLastViewerPose()
Implements com. ViewerPose.
|
| public final int | getTextureCount()
Implements com. ppAvailable().
|
| public final int | getTextureUnit()
Implements com. ppAvailable().
|
| public final DimensionImmutable | getTotalSurfaceSize()
Implements com. |
| public final void | init(final GL gl)
Implements com. |
| public final boolean | ppAvailable()
Implements com. true if stereoscopic post-processing is required and available,
otherwise false.
|
| public final void | ppBegin(final GL gl)
Implements com. ppAvailable().
|
| public final void | ppEnd(final GL gl)
Implements com. ppAvailable().
|
| public final void | ppOneEye(final GL gl, final int eyeNum)
Implements com. ppAvailable().
|
| public String | |
| public final ViewerPose | updateViewerPose()
Implements com. ViewerPose and returns it.
|
| public final boolean | usesSideBySideStereo()
Implements com. true if using side-by-side (SBS)
stereoscopic images, otherwise false.
|
| device | back to summary |
|---|---|
| private final GenericStereoDevice device | |
| distortionBits | back to summary |
|---|---|
| private final int distortionBits | |
| eyes | back to summary |
|---|---|
| private final GenericStereoDeviceRenderer. | |
| eyeTextureSizes | back to summary |
|---|---|
| private final DimensionImmutable[] eyeTextureSizes | |
| frameStart | back to summary |
|---|---|
| private long frameStart | |
| shaderChromaSuffix | back to summary |
|---|---|
| private static final String shaderChromaSuffix | |
| shaderPlainSuffix | back to summary |
|---|---|
| private static final String shaderPlainSuffix | |
| shaderPrefix01 | back to summary |
|---|---|
| private static final String shaderPrefix01 | |
| shaderTimewarpSuffix | back to summary |
|---|---|
| private static final String shaderTimewarpSuffix | |
| sp | back to summary |
|---|---|
| private ShaderProgram sp | |
| textureCount | back to summary |
|---|---|
| private final int textureCount | |
| texUnit0 | back to summary |
|---|---|
| private final GLUniformData texUnit0 if texUnit0 is null: no post-processing | |
| totalTextureSize | back to summary |
|---|---|
| private final DimensionImmutable totalTextureSize | |
| viewerPose | back to summary |
|---|---|
| private final ViewerPose viewerPose | |
| zeroSize | back to summary |
|---|---|
| private static final DimensionImmutable zeroSize | |
| GenericStereoDeviceRenderer | back to summary |
|---|---|
| pack-priv GenericStereoDeviceRenderer(final GenericStereoDevice context, final int distortionBits, final int textureCount, final float[] eyePositionOffset, final EyeParameter[] eyeParam, final float pixelsPerDisplayPixel, final int textureUnit, final DimensionImmutable[] eyeTextureSizes, final DimensionImmutable totalTextureSize, final RectangleImmutable[] eyeViewports) | |
| beginFrame | back to summary |
|---|---|
| public final void beginFrame(final GL gl) Implements com. Doc from com. Notifying that a new frame is about to start.
| |
| dispose | back to summary |
|---|---|
| public final void dispose(final GL gl) Implements com. Doc from com. Release all OpenGL related resources
| |
| endFrame | back to summary |
|---|---|
| public final void endFrame(final GL gl) Implements com. Doc from com. Notifying that the frame has been rendered completely.
| |
| getDevice | back to summary |
|---|---|
| public StereoDevice getDevice() Implements com. Doc from com. Returns the
| |
| getDistortionBits | back to summary |
|---|---|
| public final int getDistortionBits() Implements com. Doc from com. Returns used distortion compensation bits, e.g.
Distortion requires
| |
| getEye | back to summary |
|---|---|
| public final StereoDeviceRenderer. Implements com. Doc from com. Returns the
| |
| getEyeSurfaceSize | back to summary |
|---|---|
| public final DimensionImmutable[] getEyeSurfaceSize() Implements com. Doc from com. Returns the surface size for each eye's a single image in pixel units.
| |
| getLastViewerPose | back to summary |
|---|---|
| public final ViewerPose getLastViewerPose() Implements com. Doc from com. Returns the last
| |
| getTextureCount | back to summary |
|---|---|
| public final int getTextureCount() Implements com. Doc from com. Returns the used texture-image count for post-processing, see
In case the renderer does not support multiple textures for post-processing,
or no post-processing at all, method returns zero despite the request
from
| |
| getTextureUnit | back to summary |
|---|---|
| public final int getTextureUnit() Implements com. Doc from com. Returns the desired texture-image unit for post-processing, see
| |
| getTotalSurfaceSize | back to summary |
|---|---|
| public final DimensionImmutable getTotalSurfaceSize() Implements com. Doc from com. Returns the total surface size required for the complete images in pixel units.
If
Otherwise the size is equal to
| |
| init | back to summary |
|---|---|
| public final void init(final GL gl) Implements com. Doc from com. Initialize OpenGL related resources
| |
| ppAvailable | back to summary |
|---|---|
| public final boolean ppAvailable() Implements com. Doc from com. Returns Stereoscopic post-processing is available if:
If stereoscopic post-processing is used
the following post-processing methods must be called to before
| |
| ppBegin | back to summary |
|---|---|
| public final void ppBegin(final GL gl) Implements com. Doc from com. Begin stereoscopic post-processing, see
| |
| ppEnd | back to summary |
|---|---|
| public final void ppEnd(final GL gl) Implements com. Doc from com. End stereoscopic post-processing, see
| |
| ppOneEye | back to summary |
|---|---|
| public final void ppOneEye(final GL gl, final int eyeNum) Implements com. Doc from com. Performs stereoscopic post-processing for one eye, see
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updateViewerPose | back to summary |
|---|---|
| public final ViewerPose updateViewerPose() Implements com. Doc from com. Updates the
| |
| usesSideBySideStereo | back to summary |
|---|---|
| public final boolean usesSideBySideStereo() Implements com. Doc from com. Method returns SBS requires that both eye's images are presented side-by-side in the final framebuffer.
Either the renderer presents the images side-by-side according to the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final EyeParameter | |
| private final GLUniformData | |
| private final GLUniformData | |
| private final GLUniformData | |
| private final GLUniformData | |
| private final int | |
| private final GLArrayDataServer | |
| private final GLArrayDataServer | iVBO
2+2+2+2+2: { vec2 position, vec2 color, vec2 texCoordR, vec2 texCoordG, vec2 texCoordB } |
| private final GLArrayData | |
| private final GLArrayData | |
| private final GLArrayData | |
| private final GLArrayData | |
| private final GLArrayData | |
| private final int | |
| private final RectangleImmutable |
| Access | Constructor and Description |
|---|---|
| pack-priv | GenericEye(final GenericStereoDevice device, final int distortionBits, final float[] eyePositionOffset, final EyeParameter eyeParam, final DimensionImmutable textureSize, final RectangleImmutable eyeViewport)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| public final EyeParameter | getEyeParameter()
Implements com. EyeParameter of this eye.
|
| public final RectangleImmutable | getViewport()
Implements com. |
| private void | |
| public String | |
| pack-priv void |
| distortionBits | back to summary |
|---|---|
| private final int distortionBits | |
| eyeName | back to summary |
|---|---|
| private final int eyeName | |
| eyeParameter | back to summary |
|---|---|
| private final EyeParameter eyeParameter | |
| eyeRotationEnd | back to summary |
|---|---|
| private final GLUniformData eyeRotationEnd | |
| eyeRotationStart | back to summary |
|---|---|
| private final GLUniformData eyeRotationStart | |
| eyeToSourceUVOffset | back to summary |
|---|---|
| private final GLUniformData eyeToSourceUVOffset | |
| eyeToSourceUVScale | back to summary |
|---|---|
| private final GLUniformData eyeToSourceUVScale | |
| indexCount | back to summary |
|---|---|
| private final int indexCount | |
| indices | back to summary |
|---|---|
| private final GLArrayDataServer indices | |
| iVBO | back to summary |
|---|---|
| private final GLArrayDataServer iVBO 2+2+2+2+2: { vec2 position, vec2 color, vec2 texCoordR, vec2 texCoordG, vec2 texCoordB } | |
| vboParams | back to summary |
|---|---|
| private final GLArrayData vboParams | |
| vboPos | back to summary |
|---|---|
| private final GLArrayData vboPos | |
| vboTexCoordsB | back to summary |
|---|---|
| private final GLArrayData vboTexCoordsB | |
| vboTexCoordsG | back to summary |
|---|---|
| private final GLArrayData vboTexCoordsG | |
| vboTexCoordsR | back to summary |
|---|---|
| private final GLArrayData vboTexCoordsR | |
| vertexCount | back to summary |
|---|---|
| private final int vertexCount | |
| viewport | back to summary |
|---|---|
| private final RectangleImmutable viewport | |
| GenericEye | back to summary |
|---|---|
| pack-priv GenericEye(final GenericStereoDevice device, final int distortionBits, final float[] eyePositionOffset, final EyeParameter eyeParam, final DimensionImmutable textureSize, final RectangleImmutable eyeViewport) | |
| dispose | back to summary |
|---|---|
| pack-priv void dispose(final GL2ES2 gl) | |
| enableVBO | back to summary |
|---|---|
| pack-priv void enableVBO(final GL2ES2 gl, final boolean enable) | |
| getEyeParameter | back to summary |
|---|---|
| public final EyeParameter getEyeParameter() Implements com. Doc from com. Returns the
| |
| getViewport | back to summary |
|---|---|
| public final RectangleImmutable getViewport() Implements com. Doc from com. Returns the viewport for this eye.
| |
| linkData | back to summary |
|---|---|
| private void linkData(final GL2ES2 gl, final ShaderProgram sp) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updateUniform | back to summary |
|---|---|
| pack-priv void updateUniform(final GL2ES2 gl, final ShaderProgram sp) | |