Package gaiasky.render.process
Class RenderModeOpenXR
java.lang.Object
gaiasky.render.process.RenderModeAbstract
gaiasky.render.process.RenderModeOpenXR
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IRenderMode
,XrRenderer
-
Field Summary
Modifier and TypeFieldDescriptioncom.badlogic.gdx.utils.Array
<com.badlogic.ashley.core.Entity> Fields inherited from class gaiasky.render.process.RenderModeAbstract
extendViewport, rc, resultBuffer
-
Constructor Summary
ConstructorDescriptionRenderModeOpenXR
(Scene scene, XrDriver xrDriver, ExtSpriteBatch spriteBatch) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Map
<XrControllerDevice, com.badlogic.ashley.core.Entity> void
render
(ISceneRenderer 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 scene.void
renderOpenXRView
(org.lwjgl.openxr.XrCompositionLayerProjectionView layerView, org.lwjgl.openxr.XrSwapchainImageOpenGLKHR swapchainImage, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer, int viewIndex) Executed for each eye every cycle.void
resize
(int rw, int rh, int tw, int th) Resizes the assets of this renderer to the given new sizeMethods inherited from class gaiasky.render.process.RenderModeAbstract
getRenderingContext, getResultBuffer, postProcessCancel, 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.api.IRenderMode
getRenderingContext, getResultBuffer
-
Field Details
-
controllerObjects
public com.badlogic.gdx.utils.Array<com.badlogic.ashley.core.Entity> controllerObjects
-
-
Constructor Details
-
RenderModeOpenXR
-
-
Method Details
-
render
public void render(ISceneRenderer 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:IRenderMode
Renders the scene.- Specified by:
render
in interfaceIRenderMode
- Parameters:
sgr
- The scene renderer object.camera
- The camera.t
- The time in seconds since the start.rw
- The width of the buffer.rh
- The height of the buffer.tw
- The final target width, usually of the screen.th
- The final target height, usually of the screen.fb
- The frame buffer, if any.ppb
- The post process bean.
-
renderOpenXRView
public void renderOpenXRView(org.lwjgl.openxr.XrCompositionLayerProjectionView layerView, org.lwjgl.openxr.XrSwapchainImageOpenGLKHR swapchainImage, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer, int viewIndex) Description copied from interface:XrRenderer
Executed for each eye every cycle.- Specified by:
renderOpenXRView
in interfaceXrRenderer
- Parameters:
layerView
- The layer view.swapchainImage
- The swap-chain image.frameBuffer
- The frame buffer to draw to.viewIndex
- The view index.
-
resize
public void resize(int rw, int rh, int tw, int th) Description copied from interface:IRenderMode
Resizes the assets of this renderer to the given new size- Specified by:
resize
in interfaceIRenderMode
- Parameters:
rw
- New render buffer width.rh
- New render buffer height.tw
- New target (screen) width.th
- New target (screen) height.
-
getXRControllerToModel
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-