public class LWJGLOpenVRViewManager extends AbstractVRViewManager
environment, leftCamera, leftEyeDepth, leftEyeTexture, leftPostProcessor, leftViewPort, mirrorViewPort, rightCamera, rightEyeDepth, rightEyeTexture, rightPostProcessor, rightViewPort
LEFT_VIEW_NAME, RIGHT_VIEW_NAME
Constructor and Description |
---|
LWJGLOpenVRViewManager(VREnvironment environment)
Create a new VR view manager attached to the given
VR environment . |
Modifier and Type | Method and Description |
---|---|
protected int |
getLeftTexId()
Get the identifier of the left eye texture.
|
protected int |
getRightTexId()
Get the identifier of the right eye texture.
|
void |
initialize()
Initialize the VR view manager.
|
void |
postRender()
Send the rendering result as textures to the two eyes.
|
void |
render()
updatePose can be called here because appstates are always called before the main renderer.
|
void |
update(float tpf)
Update the VR view manager.
|
getHeightAdjustment, getLeftCamera, getLeftDepth, getLeftPostProcessor, getLeftTexture, getLeftViewPort, getMirrorViewPort, getResolutionMuliplier, getRightCamera, getRightDepth, getRightPostProcessor, getRightTexture, getRightViewPort, getVREnvironment, moveScreenProcessingToEyes, setHeightAdjustment, setResolutionMultiplier, syncScreenProcessing
public LWJGLOpenVRViewManager(VREnvironment environment)
VR environment
.environment
- the VR environment
to which this
view manager is attached.protected int getLeftTexId()
getRightTexId()
,
getFullTexId()
protected int getRightTexId()
getLeftTexId()
,
getFullTexId()
public void render()
VRViewManager.postRender()
public void postRender()
VRViewManager
postRender()
method of the attached app state.)VRViewManager.render()
public void initialize()
VRViewManager
VR environment
to an application.public void update(float tpf)
VRViewManager
app state
and should not be called manually.tpf
- the time per frame.