Stay organized with collections Save and categorize content based on your preferences.
Single frame acquired from the swap chain. The frame contains one or more buffers that are drawn by the application and are then composited and lens distorted by the SDK.
Public Methods void bindBuffer(int bufferIndex)
Binds a pixel buffer that is part of the frame to the OpenGL framebuffer.
void getBufferSize(int bufferIndex,
PointsizeOut)
Returns the dimensions of the pixel buffer with the specified index.
int getFramebufferObject(int bufferIndex)
Gets the name (ID) of the framebuffer object associated with the specified buffer.
void submit(
BufferViewportListviewportList, float[] headSpaceFromStartSpace)
Submits the frame for lens distortion and display on the screen.
void unbind()
Unbinds any buffers bound from this frame and binds the default OpenGL framebuffer
Inherited Methods From class java.lang.Object boolean final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
Public Methods public void bindBuffer (int bufferIndex)Binds a pixel buffer that is part of the frame to the OpenGL framebuffer.
Parameters bufferIndex Index of the GVR buffer to bind. public void getBufferSize (int bufferIndex, Point sizeOut)Returns the dimensions of the pixel buffer with the specified index.
Note: A frame that was acquired before resizing a swap chain buffer will not be resized until it is submitted to the swap chain.
Parameters bufferIndex Index of the pixel buffer to inspect. sizeOut The (output) dimensions of the specified buffer. public int getFramebufferObject (int bufferIndex)Gets the name (ID) of the framebuffer object associated with the specified buffer. The OpenGL state is not modified.
Parameters bufferIndex Index of the associated GVR buffer. ReturnsSubmits the frame for lens distortion and display on the screen.
Note: On Cardboard devices, this method makes OpenGL commands in the current thread's GL context; this can affect various GL state such as texture bindings, depth testing, backface culling, and blending.
Parameters viewportList List of mappings between regions of buffers in the frame and the viewer's field of view. headSpaceFromStartSpace the 4x4, column-major transform with which the frame was rendered, representing the transform from start space (space with head at the origin at last tracking reset) to head space (space with head at the origin and axes aligned to the view vector). This should typically be the transform returned bygetHeadSpaceFromStartSpaceTransform(float[], long)
. public void unbind ()
Unbinds any buffers bound from this frame and binds the default OpenGL framebuffer
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."],[[["`Frame` objects manage buffers used for VR rendering and display."],["These buffers can be bound to OpenGL for drawing and then submitted for lens distortion and display."],["The `Frame` class provides methods to access buffer properties, such as size and framebuffer object ID."],["Before submission, viewport mapping and head tracking information must be specified."],["After use, `Frame` objects should be unbound to restore the default OpenGL framebuffer."]]],["The `Frame` class manages buffers for drawing and display. Key actions include: `bindBuffer` to connect a buffer to the OpenGL framebuffer, `getBufferSize` to retrieve buffer dimensions, and `getFramebufferObject` to obtain the associated framebuffer ID. The `submit` method processes the frame for display, applying lens distortion. Finally, `unbind` releases any bound buffers, reverting to the default OpenGL framebuffer. The class also include inherited methods from `Object`.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4