Classes | |
struct | VuRenderViewConfig |
configure the current view More... | |
struct | VuVideoBackgroundViewInfo |
Video background view information. More... | |
struct | VuRenderVideoBackgroundData |
Video background texture input. More... | |
Typedefs | |
typedef struct VuRenderViewConfig | VuRenderViewConfig |
configure the current view | |
typedef struct VuVideoBackgroundViewInfo | VuVideoBackgroundViewInfo |
Video background view information. | |
typedef struct VuRenderVideoBackgroundData | VuRenderVideoBackgroundData |
Video background texture input. | |
Functions | |
VuResult | vuEngineGetRenderController (const VuEngine *engine, VuController **controller) |
Retrieve Render Controller to get access to rendering-specific functionality in Engine. | |
VuResult | vuRenderControllerSetRenderViewConfig (VuController *controller, const VuRenderViewConfig *renderViewConfig) |
Set the current render view configuration. More... | |
VuResult | vuRenderControllerGetRenderViewConfig (const VuController *controller, VuRenderViewConfig *renderViewConfig) |
Get the current render view configuration. More... | |
VuResult | vuRenderControllerGetVideoBackgroundViewport (const VuController *controller, VuVector4I *vbViewport) |
Get the video background viewport (its location/size on screen) More... | |
VuResult | vuRenderControllerSetVideoBackgroundViewport (VuController *controller, const VuVector4I *vbViewport) |
Configure the video background viewport (its location/size on screen) More... | |
VuResult | vuRenderControllerSetVideoBackgroundViewportMode (VuController *controller, VuVideoBackgroundViewportMode vbMode) |
Configure the video background viewport mode. More... | |
VuResult | vuRenderControllerGetVideoBackgroundViewInfo (const VuController *controller, VuVideoBackgroundViewInfo *viewInfo) |
Get video background view information for rendering view background. More... | |
VuResult | vuRenderControllerUpdateVideoBackgroundTexture (VuController *controller, const VuState *state, const VuRenderVideoBackgroundData *renderVBData) |
Update the texture data to use for rendering the video background. | |
VuResult | vuRenderControllerSetProjectionMatrixNearFar (VuController *controller, float nearPlane, float farPlane) |
Set the values for the near and far plane used by Engine for calculating the projection matrix. More... | |
VuResult | vuRenderControllerGetProjectionMatrixNearFar (const VuController *controller, float *nearPlane, float *farPlane) |
Get the values of the near and far planes currently used by Engine for calculating the projection matrix. More... | |
This controller allows you to control the rendering functionalities of the Vuforia SDK include video background configuration.
VuResult vuRenderControllerSetRenderViewConfig | ( | VuController * | controller, |
const VuRenderViewConfig * | renderViewConfig | ||
) |
Set the current render view configuration.
VuResult vuRenderControllerGetRenderViewConfig | ( | const VuController * | controller, |
VuRenderViewConfig * | renderViewConfig | ||
) |
Get the current render view configuration.
VuResult vuRenderControllerGetVideoBackgroundViewport | ( | const VuController * | controller, |
VuVector4I * | vbViewport | ||
) |
Get the video background viewport (its location/size on screen)
Vuforia Engine will calculate a viewport internally after Vuforia Engine has been started and a render view config has been set.
If a custom viewport has NOT been set via vuRenderControllerSetVideoBackgroundViewport, Vuforia will calculate a viewport based on the render view config and the current VuVideoBackgroundViewportMode.
If a custom viewport has been set via vuRenderControllerSetVideoBackgroundViewport, Vuforia will calculate a viewport based on the render view config and the custom viewport.
The calculated viewport is only available if Engine is running. If no calculated viewport is available, Vuforia Engine will return the viewport set via vuRenderControllerSetVideoBackgroundViewport.
If no viewport is available at all because Vuforia Engine is not running and no viewport has been set via vuRenderControllerSetVideoBackgroundViewport, this call will fail.
VuResult vuRenderControllerSetVideoBackgroundViewport | ( | VuController * | controller, |
const VuVector4I * | vbViewport | ||
) |
Configure the video background viewport (its location/size on screen)
VuResult vuRenderControllerSetVideoBackgroundViewportMode | ( | VuController * | controller, |
VuVideoBackgroundViewportMode | vbMode | ||
) |
Configure the video background viewport mode.
VuResult vuRenderControllerGetVideoBackgroundViewInfo | ( | const VuController * | controller, |
VuVideoBackgroundViewInfo * | viewInfo | ||
) |
Get video background view information for rendering view background.
VuResult vuRenderControllerSetProjectionMatrixNearFar | ( | VuController * | controller, |
float | nearPlane, | ||
float | farPlane | ||
) |
Set the values for the near and far plane used by Engine for calculating the projection matrix.
VuResult vuRenderControllerGetProjectionMatrixNearFar | ( | const VuController * | controller, |
float * | nearPlane, | ||
float * | farPlane | ||
) |
Get the values of the near and far planes currently used by Engine for calculating the projection matrix.