Package gaiasky.render
Class SGROpenVR
- java.lang.Object
-
- gaiasky.render.SGRAbstract
-
- gaiasky.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>
controllerObjects
com.badlogic.gdx.math.Matrix4
eyeSpace
com.badlogic.gdx.math.Matrix4
invEyeSpace
-
Fields inherited from class gaiasky.render.SGRAbstract
extendViewport, rc
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
notify(Events event, java.lang.Object... data)
void
render(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, IPostProcessor.PostProcessBean ppb)
Renders the scenevoid
resize(int w, int h)
Resizes the assets of this renderer to the given new size-
Methods inherited from class gaiasky.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)
-
-
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:ISGR
Renders the scene
-
resize
public void resize(int w, int h)
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
-
-