gvr:: BufferViewport
#include <gvr.h>
Convenience C++ wrapper for the opaque gvr_buffer_viewport type.
Summary
The constructor allocates memory, so when used in tight loops, instances should be reused.
Inheritance
Inherits from: gvr::WrapperBase< gvr_buffer_viewport, gvr_buffer_viewport_destroy >Public functions
GetExternalSurfaceId
int32_t GetExternalSurfaceId() const
For more information, see gvr_buffer_viewport_get_external_surface_id().
GetReprojection
gvr_reprojection GetReprojection() const
For more information, see gvr_buffer_viewport_get_reprojection().
GetSourceBufferIndex
int32_t GetSourceBufferIndex() const
For more information, see gvr_buffer_viewport_get_source_buffer_index().
GetSourceFov
Rectf GetSourceFov() const
For more information, see gvr_buffer_viewport_get_source_fov().
GetSourceUv
Rectf GetSourceUv() const
For more information, see gvr_buffer_viewport_get_source_uv().
GetTargetEye
Eye GetTargetEye() const
For more information, see gvr_buffer_viewport_get_target_eye().
GetTransform
Mat4f GetTransform() const
For more information, see gvr_buffer_viewport_get_transform().
SetExternalSurfaceId
void SetExternalSurfaceId( const int32_t external_surface_id )
For more information, see gvr_buffer_viewport_set_external_surface_id().
SetOpacity
void SetOpacity( float opacity )
For more information, see gvr_buffer_viewport_set_opacity().
SetReprojection
void SetReprojection( gvr_reprojection reprojection )
For more information, see gvr_buffer_viewport_set_reprojection().
SetSourceBufferIndex
void SetSourceBufferIndex( int32_t buffer_index )
For more information, see gvr_buffer_viewport_set_source_buffer_index().
SetSourceFov
void SetSourceFov( const Rectf & fov )
For more information, see gvr_buffer_viewport_set_source_fov().
SetSourceLayer
void SetSourceLayer( int32_t layer_index )
For more information, see gvr_buffer_viewport_set_source_layer().
SetSourceUv
void SetSourceUv( const Rectf & uv )
For more information, see gvr_buffer_viewport_set_source_uv().
SetTargetEye
void SetTargetEye( Eye eye )
For more information, see gvr_buffer_viewport_set_target_eye().
SetTransform
void SetTransform( const Mat4f & transform )
For more information, see gvr_buffer_viewport_set_transform().
operator!=
bool operator!=( const BufferViewport & other ) const
operator==
bool operator==( const BufferViewport & other ) const
For more information, see gvr_buffer_viewport_equal().