Package gaiasky.render
Class SGROpenVR
java.lang.Object
gaiasky.render.SGRAbstract
gaiasky.render.SGROpenVR
Renders to OpenVR. Renders basically two scenes, one for each eye, using the
OpenVR context.
-
Field Summary
Modifier and TypeFieldDescriptioncom.badlogic.gdx.utils.Array<StubModel>
com.badlogic.gdx.math.Matrix4
com.badlogic.gdx.math.Matrix4
Fields inherited from class gaiasky.render.SGRAbstract
extendViewport, rc, resultBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
void
render(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, int tw, int th, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, IPostProcessor.PostProcessBean ppb)
Renders the scenevoid
resize(int screenWidth, int screenHeight)
Resizes the assets of this renderer to the given new sizeMethods inherited from class gaiasky.render.SGRAbstract
getRenderingContext, getResultBuffer, postProcessCapture, postProcessRender, sendOrientationUpdate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gaiasky.render.ISGR
getRenderingContext, getResultBuffer
-
Field Details
-
eyeSpace
public final com.badlogic.gdx.math.Matrix4 eyeSpace -
invEyeSpace
public final com.badlogic.gdx.math.Matrix4 invEyeSpace -
controllerObjects
-
-
Constructor Details
-
SGROpenVR
-
-
Method Details
-
render
public void render(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, int tw, int th, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, IPostProcessor.PostProcessBean ppb)Description copied from interface:ISGR
Renders the scene- Specified by:
render
in interfaceISGR
- Parameters:
sgr
- The scene graph renderer objectcamera
- The camera.t
- The time in seconds since the startrw
- The width of the bufferrh
- The height of the buffertw
- The final target width, usually of the screenth
- The final target height, usually of the screenfb
- The frame buffer, if anyppb
- The post processing bean
-
resize
public void resize(int screenWidth, int screenHeight)Description copied from interface:ISGR
Resizes the assets of this renderer to the given new size -
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
notify
-