November 6, 2019 update:
  • There's a new open source Cardboard SDK for iOS and Android NDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. A corresponding Unity package (SDK) is planned for a future release. We recommend that all developers actively building for Google Cardboard migrate (iOS, Android NDK) to the new Cardboard SDK.
October 15, 2019 update:
  • The Daydream View VR headset is no longer available for purchase. However, you can continue to use the existing Google VR SDK to update and distribute your apps to the Google Play Store, and make them available to users in the Daydream app.

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
)