This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
gvr::Frame
#include <gvr.h>
Convenience C++ wrapper for gvr_frame, which represents a single frame acquired for rendering from the swap chain.
Summary
Inheritance
Inherits from:
gvr::WrapperBase< gvr_frame >Public functions
BindBuffer
void BindBuffer(
int32_t index
)
GetBufferSize
Sizei GetBufferSize(
int32_t index
) const
GetFramebufferObject
int32_t GetFramebufferObject(
int32_t index
) const
GetHardwareBuffer
void * GetHardwareBuffer(
int32_t index
) const
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003egvr::Frame\u003c/code\u003e is a C++ wrapper for \u003ccode\u003egvr_frame\u003c/code\u003e, providing a convenient way to interact with a single frame acquired for VR rendering.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003egvr::WrapperBase<gvr_frame>\u003c/code\u003e, offering basic wrapper functionalities.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize functions like \u003ccode\u003eBindBuffer\u003c/code\u003e, \u003ccode\u003eGetBufferSize\u003c/code\u003e, and \u003ccode\u003eSubmit\u003c/code\u003e to manage and manipulate frame data for VR rendering.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egvr::Frame\u003c/code\u003e integrates with the swap chain, allowing for efficient frame acquisition and presentation in VR applications.\u003c/p\u003e\n"]]],["The `gvr::Frame` class provides a C++ interface for managing a single rendering frame from a swap chain. Key actions include: `BindBuffer` to prepare a buffer for rendering, `GetBufferSize` to retrieve the buffer's dimensions, `GetFramebufferObject` to obtain the associated framebuffer, and `GetHardwareBuffer` to get a pointer to the hardware buffer. `Submit` is used to finalize and send the frame for display, with a view port and location. Finally, `Unbind` releases the buffer. All functions take an index and operate on that index.\n"],null,["gvr::Frame`#include \u003cgvr.h\u003e`\n\nConvenience C++ wrapper for gvr_frame, which represents a single frame acquired for rendering from the swap chain.\n\nSummary\n\nInheritanceInherits from: [gvr::WrapperBase\\\u003c gvr_frame \\\u003e](/vr/reference/ios-ndk/class/gvr/wrapper-base)\n\n| Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BindBuffer](#classgvr_1_1_frame_1aa41c96f4d48473872297d40f75d7da37)`(int32_t index)` | `void` For more information, see [gvr_frame_bind_buffer()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1ga2b4c3bcbafd91f8ffec65d8d0f2b6164). |\n| [GetBufferSize](#classgvr_1_1_frame_1abca8ed215676db354495e3edcf67d41e)`(int32_t index) const ` | [Sizei](/vr/reference/ios-ndk/struct/gvr-sizei#structgvr__sizei) For more information, see [gvr_frame_get_buffer_size()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1ga9c9c1429032421a66eb1aa5cdd6f3e84). |\n| [GetFramebufferObject](#classgvr_1_1_frame_1aa7035edab6359aa95c407fcbf21c000a)`(int32_t index) const ` | `int32_t` For more information, see [gvr_frame_get_framebuffer_object()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1gaed7412f1ec9f3ef887d8ce08c7940f23). |\n| [GetHardwareBuffer](#classgvr_1_1_frame_1a1d8e4c4a8bb3a1b8c51e77a88b0fe7eb)`(int32_t index) const ` | `void *` For more information, see [gvr_frame_get_hardware_buffer()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1gaf878e168841607c080e8f41bc39b4e82). |\n| [Submit](#classgvr_1_1_frame_1ad8126bad1830d06af5741b8773871ca5)`(const `[BufferViewportList](/vr/reference/ios-ndk/class/gvr/buffer-viewport-list#classgvr_1_1_buffer_viewport_list)` & viewport_list, const `[Mat4f](/vr/reference/ios-ndk/struct/gvr-mat4f#structgvr__mat4f)` & head_space_from_start_space)` | `void` For more information, see [gvr_frame_submit()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1ga5dc0908bf831ecfb22d8393bff87b690). |\n| [Unbind](#classgvr_1_1_frame_1a8b3ff9ef03186b87b614784c5cbe3639)`()` | `void` For more information, see [gvr_frame_unbind()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1gabe21d16b332a8f8a1f2219d0c5e535ce). |\n\nPublic functions \n\nBindBuffer \n\n```scdoc\nvoid BindBuffer(\n int32_t index\n)\n``` \nFor more information, see [gvr_frame_bind_buffer()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1ga2b4c3bcbafd91f8ffec65d8d0f2b6164). \n\nGetBufferSize \n\n```gdscript\nSizei GetBufferSize(\n int32_t index\n) const \n``` \nFor more information, see [gvr_frame_get_buffer_size()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1ga9c9c1429032421a66eb1aa5cdd6f3e84). \n\nGetFramebufferObject \n\n```gdscript\nint32_t GetFramebufferObject(\n int32_t index\n) const \n``` \nFor more information, see [gvr_frame_get_framebuffer_object()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1gaed7412f1ec9f3ef887d8ce08c7940f23). \n\nGetHardwareBuffer \n\n```gdscript\nvoid * GetHardwareBuffer(\n int32_t index\n) const \n``` \nFor more information, see [gvr_frame_get_hardware_buffer()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1gaf878e168841607c080e8f41bc39b4e82). \n\nSubmit \n\n```gdscript\nvoid Submit(\n const BufferViewportList & viewport_list,\n const Mat4f & head_space_from_start_space\n)\n``` \nFor more information, see [gvr_frame_submit()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1ga5dc0908bf831ecfb22d8393bff87b690). \n\nUnbind \n\n```text\nvoid Unbind()\n``` \nFor more information, see [gvr_frame_unbind()](/vr/reference/ios-ndk/group/swap-chain#group__swap__chain_1gabe21d16b332a8f8a1f2219d0c5e535ce)."]]