|
FPLBase
An open source project by
FPL.
|
Renderer class and methods, along with Android and Head Mounted Display rendering functions. More...
Renderer class and methods, along with Android and Head Mounted Display rendering functions.
Classes | |
| class | fplbase::RendererBase |
| Manages the rendering system, handling the window and resources. More... | |
| class | fplbase::Renderer |
| Renderer is the main API class for rendering commands. More... | |
| struct | fplbase::HeadMountedDisplayViewSettings |
| Dimensions and transforms for viewport when using stereoscopic rendering. More... | |
Functions | |
| void | fplbase::AndroidPreCreateWindow () |
| Create the Android window surface. | |
| void | fplbase::AndroidSetScalerResolution (const mathfu::vec2i &resolution) |
Scalar settings can occasionally fail on fail on some Android devices. In failure cases, the caller can check for success by verifying AndroidGetScalerResolution() returns the expected resolution. If AndroidGetScalarResolution() returns a diffrent resolution than what was set in AndroidSetScaleResolution(), the application can assume failure and attempt to restart the app to try configuration again. More... | |
| const mathfu::vec2i & | fplbase::AndroidGetScalerResolution () |
| Get the Android scaler resolution. More... | |
| int | fplbase::AndroidGetContextClientVersion () |
| Gets the GLES client version of the current EGL context. More... | |
| void | fplbase::AndroidInitGl3Functions () |
| Gets all the GL3 function pointers. Using this rather than GLES3/gl3.h directly means we can still compile on older SDKs and run on older devices too. | |
| void | fplbase::InitializeUndistortFramebuffer (int width, int height) |
| Initializes the framebuffer needed for Head Mounted Display undistortion. More... | |
| void | fplbase::BeginUndistortFramebuffer () |
| Called before rendering for HMD to set up the framebuffer. | |
| void | fplbase::FinishUndistortFramebuffer () |
| Called when finished with rendering for HMD, to undistort and render the result. | |
| void | fplbase::SetCardboardButtonEnabled (bool enabled) |
| Called to set whether the Cardboard settings button (gear icon) is enabled and rendering. More... | |
| int fplbase::AndroidGetContextClientVersion | ( | ) |
Gets the GLES client version of the current EGL context.
| const mathfu::vec2i& fplbase::AndroidGetScalerResolution | ( | ) |
Get the Android scaler resolution.
mathfu::vec2i reference. | void fplbase::AndroidSetScalerResolution | ( | const mathfu::vec2i & | resolution | ) |
Scalar settings can occasionally fail on fail on some Android devices. In failure cases, the caller can check for success by verifying AndroidGetScalerResolution() returns the expected resolution. If AndroidGetScalarResolution() returns a diffrent resolution than what was set in AndroidSetScaleResolution(), the application can assume failure and attempt to restart the app to try configuration again.
| [in] | resolution | A const mathfu::vec2i reference to the scaler resolution to set for the Android device. |
| void fplbase::InitializeUndistortFramebuffer | ( | int | width, |
| int | height | ||
| ) |
Initializes the framebuffer needed for Head Mounted Display undistortion.
| width | The width of the framebuffer. |
| height | The height of the framebuffer. |
| void fplbase::SetCardboardButtonEnabled | ( | bool | enabled | ) |
Called to set whether the Cardboard settings button (gear icon) is enabled and rendering.
| enabled | If the settings button should be enabled. |