Package org.lwjgl.openxr
Class XrSwapchainImageOpenGLESKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainImageOpenGLESKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainImageOpenGLESKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceOpenGL ES-specific swapchain image structure.Description
If a given session was created with a stext:XrGraphicsBindingOpenGLES*KHR, the following conditions must apply.
- Calls to
EnumerateSwapchainImageson anXrSwapchainin that session must return an array ofXrSwapchainImageOpenGLESKHRstructures. - Whenever an OpenXR function accepts an
XrSwapchainImageBaseHeaderpointer as a parameter in that session, the runtime must also accept a pointer to anXrSwapchainImageOpenGLESKHRstructure.
The OpenXR runtime must interpret the bottom-left corner of the swapchain image as the coordinate origin unless specified otherwise by extension functionality.
The OpenXR runtime must interpret the swapchain images in a clip space of positive Y pointing up, near Z plane at -1, and far Z plane at 1.
Valid Usage (Implicit)
- The
XR_KHR_opengl_es_enableextension must be enabled prior to usingXrSwapchainImageOpenGLESKHR typemust beTYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHRnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrSwapchainImageOpenGLESKHR { XrStructureTypetype(); void *next(); uint32_timage(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainImageOpenGLESKHR.BufferAn array ofXrSwapchainImageOpenGLESKHRstructs.
-
Constructor Summary
Constructors Constructor Description XrSwapchainImageOpenGLESKHR(java.nio.ByteBuffer container)Creates aXrSwapchainImageOpenGLESKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSwapchainImageOpenGLESKHRcalloc()Returns a newXrSwapchainImageOpenGLESKHRinstance allocated withmemCalloc.static XrSwapchainImageOpenGLESKHR.Buffercalloc(int capacity)Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated withmemCalloc.static XrSwapchainImageOpenGLESKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageOpenGLESKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageOpenGLESKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageOpenGLESKHRcreate()Returns a newXrSwapchainImageOpenGLESKHRinstance allocated withBufferUtils.static XrSwapchainImageOpenGLESKHR.Buffercreate(int capacity)Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated withBufferUtils.static XrSwapchainImageOpenGLESKHRcreate(long address)Returns a newXrSwapchainImageOpenGLESKHRinstance for the specified memory address.static XrSwapchainImageOpenGLESKHR.Buffercreate(long address, int capacity)Create aXrSwapchainImageOpenGLESKHR.Bufferinstance at the specified memory.static XrSwapchainImageOpenGLESKHRcreate(XrSwapchainImageBaseHeader value)Downcasts the specifiedXrSwapchainImageBaseHeaderinstance toXrSwapchainImageOpenGLESKHR.static XrSwapchainImageOpenGLESKHR.Buffercreate(XrSwapchainImageBaseHeader.Buffer value)Downcasts the specifiedXrSwapchainImageBaseHeader.Bufferinstance toXrSwapchainImageOpenGLESKHR.Buffer.static XrSwapchainImageOpenGLESKHRcreateSafe(long address)static XrSwapchainImageOpenGLESKHR.BuffercreateSafe(long address, int capacity)intimage()an index indicating the current OpenGL ES swapchain image to use.XrSwapchainImageOpenGLESKHRimage(int value)Sets the specified value to theimage()field.static XrSwapchainImageOpenGLESKHRmalloc()Returns a newXrSwapchainImageOpenGLESKHRinstance allocated withmemAlloc.static XrSwapchainImageOpenGLESKHR.Buffermalloc(int capacity)Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated withmemAlloc.static XrSwapchainImageOpenGLESKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainImageOpenGLESKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageOpenGLESKHRinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSwapchainImageOpenGLESKHRnext(long value)Sets the specified value to thenext()field.static intnimage(long struct)Unsafe version ofimage().static voidnimage(long struct, int value)Unsafe version ofimage.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSwapchainImageOpenGLESKHRset(int type, long next, int image)Initializes this struct with the specified values.XrSwapchainImageOpenGLESKHRset(XrSwapchainImageOpenGLESKHR src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSwapchainImageOpenGLESKHRtype(int value)Sets the specified value to thetype()field.XrSwapchainImageOpenGLESKHRtype$Default()Sets theTYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHRvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSwapchainImageOpenGLESKHR
public XrSwapchainImageOpenGLESKHR(java.nio.ByteBuffer container)
Creates aXrSwapchainImageOpenGLESKHRinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
image
public int image()
an index indicating the current OpenGL ES swapchain image to use.
-
type
public XrSwapchainImageOpenGLESKHR type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSwapchainImageOpenGLESKHR type$Default()
Sets theTYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHRvalue to thetype()field.
-
next
public XrSwapchainImageOpenGLESKHR next(long value)
Sets the specified value to thenext()field.
-
image
public XrSwapchainImageOpenGLESKHR image(int value)
Sets the specified value to theimage()field.
-
set
public XrSwapchainImageOpenGLESKHR set(int type, long next, int image)
Initializes this struct with the specified values.
-
set
public XrSwapchainImageOpenGLESKHR set(XrSwapchainImageOpenGLESKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainImageOpenGLESKHR malloc()
Returns a newXrSwapchainImageOpenGLESKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainImageOpenGLESKHR calloc()
Returns a newXrSwapchainImageOpenGLESKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainImageOpenGLESKHR create()
Returns a newXrSwapchainImageOpenGLESKHRinstance allocated withBufferUtils.
-
create
public static XrSwapchainImageOpenGLESKHR create(long address)
Returns a newXrSwapchainImageOpenGLESKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainImageOpenGLESKHR createSafe(long address)
-
create
public static XrSwapchainImageOpenGLESKHR create(XrSwapchainImageBaseHeader value)
Downcasts the specifiedXrSwapchainImageBaseHeaderinstance toXrSwapchainImageOpenGLESKHR.
-
malloc
public static XrSwapchainImageOpenGLESKHR.Buffer malloc(int capacity)
Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainImageOpenGLESKHR.Buffer calloc(int capacity)
Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainImageOpenGLESKHR.Buffer create(int capacity)
Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainImageOpenGLESKHR.Buffer create(long address, int capacity)
Create aXrSwapchainImageOpenGLESKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainImageOpenGLESKHR.Buffer createSafe(long address, int capacity)
-
create
public static XrSwapchainImageOpenGLESKHR.Buffer create(XrSwapchainImageBaseHeader.Buffer value)
Downcasts the specifiedXrSwapchainImageBaseHeader.Bufferinstance toXrSwapchainImageOpenGLESKHR.Buffer.
-
malloc
public static XrSwapchainImageOpenGLESKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageOpenGLESKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainImageOpenGLESKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageOpenGLESKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainImageOpenGLESKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSwapchainImageOpenGLESKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageOpenGLESKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nimage
public static int nimage(long struct)
Unsafe version ofimage().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nimage
public static void nimage(long struct, int value)Unsafe version ofimage.
-
-