| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final OVRStereoDevice | |
| private final int | |
| private final OVRStereoDeviceRenderer. | |
| private final DimensionImmutable[] | |
| private int | |
| private ovrFrameTiming | |
| private final ovrVector3f[] | |
| private final float[] | |
| private final float[] | |
| private final ovrPosef[] | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private ShaderProgram | |
| private final int | |
| private final GLUniformData | |
| private final DimensionImmutable | |
| private final ovrTrackingState | |
| private final ViewerPose |
| Access | Constructor and Description |
|---|---|
| pack-priv | OVRStereoDeviceRenderer(final OVRStereoDevice context, final int distortionBits, final int textureCount, final float[] eyePositionOffset, final ovrEyeRenderDesc[] eyeRenderDescs, final DimensionImmutable[] eyeTextureSizes, final DimensionImmutable totalTextureSize, final RectangleImmutable[] eyeViewports, final int textureUnit)
|
| Modifier and Type | Method and Description |
|---|---|
| public final void | beginFrame(final GL gl)
Implements com. |
| public final void | dispose(final GL gl)
Implements com. |
| private static int | |
| 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.
|
| context | back to summary |
|---|---|
| private final OVRStereoDevice context | |
| distortionBits | back to summary |
|---|---|
| private final int distortionBits | |
| eyes | back to summary |
|---|---|
| private final OVRStereoDeviceRenderer. | |
| eyeTextureSizes | back to summary |
|---|---|
| private final DimensionImmutable[] eyeTextureSizes | |
| frameCount | back to summary |
|---|---|
| private int frameCount | |
| frameTiming | back to summary |
|---|---|
| private ovrFrameTiming frameTiming | |
| hmdToEyeViewOffset | back to summary |
|---|---|
| private final ovrVector3f[] hmdToEyeViewOffset | |
| mat4Tmp1 | back to summary |
|---|---|
| private final float[] mat4Tmp1 | |
| mat4Tmp2 | back to summary |
|---|---|
| private final float[] mat4Tmp2 | |
| ovrEyePoses | back to summary |
|---|---|
| private final ovrPosef[] ovrEyePoses | |
| 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 | |
| totalTextureSize | back to summary |
|---|---|
| private final DimensionImmutable totalTextureSize | |
| trackingState | back to summary |
|---|---|
| private final ovrTrackingState trackingState | |
| viewerPose | back to summary |
|---|---|
| private final ViewerPose viewerPose | |
| OVRStereoDeviceRenderer | back to summary |
|---|---|
| pack-priv OVRStereoDeviceRenderer(final OVRStereoDevice context, final int distortionBits, final int textureCount, final float[] eyePositionOffset, final ovrEyeRenderDesc[] eyeRenderDescs, final DimensionImmutable[] eyeTextureSizes, final DimensionImmutable totalTextureSize, final RectangleImmutable[] eyeViewports, final int textureUnit) | |
| 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
| |
| distBits2OVRDistCaps | back to summary |
|---|---|
| private static int distBits2OVRDistCaps(final int distortionBits) | |
| 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 } |
| pack-priv final ovrEyeRenderDesc | |
| private final ovrFovPort | |
| private final ovrMatrix4f[] | |
| 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 | OVREye(final ovrHmdDesc hmdDesc, final int distortionBits, final float[] eyePositionOffset, final ovrEyeRenderDesc eyeDesc, final ovrSizei ovrTextureSize, 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. |
| pack-priv void | |
| public String | |
| pack-priv void | updateTimewarp(final ovrHmdDesc hmdDesc, final ovrPosef eyeRenderPose, final float[] mat4Tmp1, final float[] mat4Tmp2)
|
| 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 } | |
| ovrEyeDesc | back to summary |
|---|---|
| pack-priv final ovrEyeRenderDesc ovrEyeDesc | |
| ovrEyeFov | back to summary |
|---|---|
| private final ovrFovPort ovrEyeFov | |
| timeWarpMatrices | back to summary |
|---|---|
| private final ovrMatrix4f[] timeWarpMatrices | |
| 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 | |
| OVREye | back to summary |
|---|---|
| pack-priv OVREye(final ovrHmdDesc hmdDesc, final int distortionBits, final float[] eyePositionOffset, final ovrEyeRenderDesc eyeDesc, final ovrSizei ovrTextureSize, 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 |
|---|---|
| pack-priv 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. | |
| updateTimewarp | back to summary |
|---|---|
| pack-priv void updateTimewarp(final ovrHmdDesc hmdDesc, final ovrPosef eyeRenderPose, final float[] mat4Tmp1, final float[] mat4Tmp2) | |
| updateUniform | back to summary |
|---|---|
| pack-priv void updateUniform(final GL2ES2 gl, final ShaderProgram sp) | |