This site has been archived and remains strictly as a historical reference for developers who actively maintain apps built using the legacy Google VR SDK, which was last updated in 2019 and is no longer receiving updates.
  • All developers actively developing experiences for Google Cardboard should use the new open source Cardboard SDKs for iOS, Android NDK, and Unity XR Plugin. These new SDKs offer streamlined APIs, improved device compatibility, and built-in viewer profile QR code scanning.
  • The Daydream View VR headset is no longer available for purchase as of October 15, 2019. Existing apps on supported devices are unaffected for users who previously installed those applications. It is no longer possible to opt-in to Daydream distribution via Google Play.
Stay organized with collections Save and categorize content based on your preferences.

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
)