gvr::BufferViewportList

#include <gvr.h>

Convenience C++ wrapper for the opaque gvr_buffer_viewport_list type.

Summary

This class will automatically release the wrapped gvr_buffer_viewport_list upon destruction. It can only be created via a GvrApi instance, and its validity is tied to the lifetime of that instance.

Inheritance

Inherits from: gvr::WrapperBase< gvr_buffer_viewport_list, gvr_buffer_viewport_list_destroy >

Constructors and Destructors

BufferViewportList()
BufferViewportList(BufferViewportList && other)

Wrapper manipulation

BufferViewportList(gvr_buffer_viewport_list *viewport_list, gvr_context *context)

Public functions

GetBufferViewport(size_t index, BufferViewport *viewport) const
void
For more information, see gvr_buffer_viewport_list_get_item().
GetSize() const
size_t
For more information, see gvr_buffer_viewport_list_get_size().
SetBufferViewport(size_t index, const BufferViewport & viewport)
void
For more information, see gvr_buffer_viewport_list_set_item().
SetToRecommendedBufferViewports()
void
For more information, see gvr_get_recommended_buffer_viewports().
SetToScreenBufferViewports()
void
For more information, see gvr_get_screen_buffer_viewports().
operator=(BufferViewportList && other)

Wrapper manipulation

BufferViewportList

 BufferViewportList(
  gvr_buffer_viewport_list *viewport_list,
  gvr_context *context
)

Public functions

BufferViewportList

 BufferViewportList()

BufferViewportList

 BufferViewportList(
  BufferViewportList && other
)

GetBufferViewport

void GetBufferViewport(
  size_t index,
  BufferViewport *viewport
) const 

For more information, see gvr_buffer_viewport_list_get_item().

N.B. If *viewport is an empty BufferViewport object, this function will initialize it.

GetSize

size_t GetSize() const 

For more information, see gvr_buffer_viewport_list_get_size().

SetBufferViewport

void SetBufferViewport(
  size_t index,
  const BufferViewport & viewport
)

For more information, see gvr_buffer_viewport_list_set_item().

SetToRecommendedBufferViewports

void SetToRecommendedBufferViewports()

For more information, see gvr_get_recommended_buffer_viewports().

SetToScreenBufferViewports

void SetToScreenBufferViewports()

For more information, see gvr_get_screen_buffer_viewports().

operator=

BufferViewportList & operator=(
  BufferViewportList && other
)