Package gaia.cu9.ari.gaiaorbit.render
Class SGROpenVR
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.render.SGRAbstract
-
- gaia.cu9.ari.gaiaorbit.render.SGROpenVR
-
public class SGROpenVR extends SGRAbstract implements ISGR, IObserver
Renders to OpenVR. Renders basically two scenes, one for each eye, using the OpenVR context.
-
-
Field Summary
Fields Modifier and Type Field Description com.badlogic.gdx.utils.Array<StubModel>controllerObjectscom.badlogic.gdx.math.Matrix4eyeSpacecom.badlogic.gdx.math.Matrix4invEyeSpace-
Fields inherited from class gaia.cu9.ari.gaiaorbit.render.SGRAbstract
extendViewport, rc
-
-
Constructor Summary
Constructors Constructor Description SGROpenVR(VRContext vrContext, IntModelBatch modelBatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidnotify(Events event, java.lang.Object... data)voidrender(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, IPostProcessor.PostProcessBean ppb)Renders the scenevoidresize(int w, int h)Resizes the assets of this renderer to the given new size-
Methods inherited from class gaia.cu9.ari.gaiaorbit.render.SGRAbstract
postprocessCapture, postprocessRender
-
-
-
-
Field Detail
-
eyeSpace
public final com.badlogic.gdx.math.Matrix4 eyeSpace
-
invEyeSpace
public final com.badlogic.gdx.math.Matrix4 invEyeSpace
-
controllerObjects
public com.badlogic.gdx.utils.Array<StubModel> controllerObjects
-
-
Constructor Detail
-
SGROpenVR
public SGROpenVR(VRContext vrContext, IntModelBatch modelBatch)
-
-
Method Detail
-
render
public void render(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, IPostProcessor.PostProcessBean ppb)
Description copied from interface:ISGRRenders the scene
-
resize
public void resize(int w, int h)Description copied from interface:ISGRResizes the assets of this renderer to the given new size
-
dispose
public void dispose()
- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
-