28package com.jogamp.opengl.util.stereo;
30import com.jogamp.math.FovHVHalves;
31import com.jogamp.nativewindow.util.DimensionImmutable;
32import com.jogamp.nativewindow.util.RectangleImmutable;
33import com.jogamp.opengl.GL;
106 public static interface Eye {
Constant single eye parameter of the viewer, relative to its ViewerPose.
position and orientation of viewer.
Immutable Dimension Interface, consisting of it's read only components:
Immutable Rectangle interface, with its position on the top-left.
Interface describing one eye of the stereoscopic device, see StereoDeviceRenderer#getEye(int).
RectangleImmutable getViewport()
Returns the viewport for this eye.
EyeParameter getEyeParameter()
Returns the EyeParameter of this eye.
Stereoscopic device rendering interface.
void endFrame(final GL gl)
Notifying that the frame has been rendered completely.
int getDistortionBits()
Returns used distortion compensation bits, e.g.
DimensionImmutable[] getEyeSurfaceSize()
Returns the surface size for each eye's a single image in pixel units.
Eye getEye(final int eyeNum)
Returns the Eye instance for the denoted eyeNum.
void init(final GL gl)
Initialize OpenGL related resources.
void ppEnd(final GL gl)
End stereoscopic post-processing, see ppAvailable().
ViewerPose updateViewerPose()
Updates the ViewerPose and returns it.
static final int DISTORTION_BARREL
Distortion Bit: Barrel distortion compensating lens pincushion distortion.
static final int DISTORTION_TIMEWARP
Distortion Bit: Timewarp distortion technique to predict ViewerPose movement to reduce latency.
static final int DISTORTION_CHROMATIC
Distortion Bit: Chromatic distortion compensating lens chromatic aberration.
void beginFrame(final GL gl)
Notifying that a new frame is about to start.
boolean ppAvailable()
Returns true if stereoscopic post-processing is required and available, otherwise false.
void ppOneEye(final GL gl, final int eyeNum)
Performs stereoscopic post-processing for one eye, see ppAvailable().
void ppBegin(final GL gl)
Begin stereoscopic post-processing, see ppAvailable().
StereoDevice getDevice()
Returns the StereoDevice of this StereoDeviceRenderer instance.
int getTextureCount()
Returns the used texture-image count for post-processing, see ppAvailable().
static final int DISTORTION_VIGNETTE
Distortion Bit: Vignette distortion compensating lens chromatic aberration.
boolean usesSideBySideStereo()
Method returns true if using side-by-side (SBS) stereoscopic images, otherwise false.
void dispose(final GL gl)
Release all OpenGL related resources.
DimensionImmutable getTotalSurfaceSize()
Returns the total surface size required for the complete images in pixel units.
ViewerPose getLastViewerPose()
Returns the last ViewerPose.
int getTextureUnit()
Returns the desired texture-image unit for post-processing, see ppAvailable().
Interface describing a native stereoscopic device.