public interface VRViewManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LEFT_VIEW_NAME
The name of the left view.
|
static java.lang.String |
RIGHT_VIEW_NAME
The name of the right view.
|
Modifier and Type | Method and Description |
---|---|
float |
getHeightAdjustment()
Get the height adjustment to apply to the cameras before rendering.
|
Camera |
getLeftCamera()
Get the
camera attached to the left eye. |
Texture2D |
getLeftDepth()
Get the depth texture attached to the left eye.
|
FilterPostProcessor |
getLeftPostProcessor()
Get the
filter post processor attached to the left eye. |
Texture2D |
getLeftTexture()
Get the texture attached to the left eye.
|
ViewPort |
getLeftViewPort()
Get the
viewport attached to the left eye. |
ViewPort |
getMirrorViewPort()
Get the
view port attached to the mirror display. |
float |
getResolutionMuliplier()
Get the resolution multiplier.
|
Camera |
getRightCamera()
Get the
camera attached to the right eye. |
Texture2D |
getRightDepth()
Get the depth texture attached to the right eye.
|
FilterPostProcessor |
getRightPostProcessor()
Get the
filter post processor attached to the right eye. |
Texture2D |
getRightTexture()
Get the texture attached to the right eye.
|
ViewPort |
getRightViewPort()
Get the
viewport attached to the right eye. |
VREnvironment |
getVREnvironment()
Get the
VR environment to which the view manager is attached. |
void |
initialize()
Initialize the VR view manager.
|
void |
moveScreenProcessingToEyes()
Handles moving filters from the main view to each eye.
|
void |
postRender()
Send the rendering result as textures to the two eyes.
|
void |
render()
This method contains action to be done during the rendering phase.
|
void |
setHeightAdjustment(float amount)
Set the height adjustment to apply to the cameras before rendering.
|
void |
setResolutionMultiplier(float resMult)
Set the resolution multiplier.
|
void |
update(float tpf)
Update the VR view manager.
|
static final java.lang.String LEFT_VIEW_NAME
static final java.lang.String RIGHT_VIEW_NAME
Camera getLeftCamera()
camera
attached to the left eye.camera
attached to the left eye.getRightCamera()
Camera getRightCamera()
camera
attached to the right eye.camera
attached to the right eye.getLeftCamera()
ViewPort getLeftViewPort()
viewport
attached to the left eye.viewport
attached to the left eye.getRightViewPort()
ViewPort getRightViewPort()
viewport
attached to the right eye.viewport
attached to the right eye.getLeftViewPort()
ViewPort getMirrorViewPort()
view port
attached to the mirror display.getLeftViewPort()
,
getRightViewPort()
Texture2D getLeftTexture()
getRightTexture()
Texture2D getRightTexture()
getLeftTexture()
Texture2D getLeftDepth()
getRightTexture()
Texture2D getRightDepth()
getLeftTexture()
FilterPostProcessor getLeftPostProcessor()
filter post processor
attached to the left eye.filter post processor
attached to the left eye.getRightPostProcessor()
FilterPostProcessor getRightPostProcessor()
filter post processor
attached to the right eye.filter post processor
attached to the right eye.getLeftPostProcessor()
float getResolutionMuliplier()
setResolutionMultiplier(float)
void setResolutionMultiplier(float resMult)
resMult
- the resolution multiplier.getResolutionMuliplier()
float getHeightAdjustment()
setHeightAdjustment(float)
void setHeightAdjustment(float amount)
amount
- the height adjustment to apply to the cameras before rendering.getHeightAdjustment()
VREnvironment getVREnvironment()
VR environment
to which the view manager is attached.VR environment
to which the view manager is attached.void initialize()
VR environment
to an application.void update(float tpf)
app state
and should not be called manually.tpf
- the time per frame.void render()
render
method of an app state
.postRender()
void postRender()
postRender()
method of the attached app state.)render()
void moveScreenProcessingToEyes()