Package org.lwjgl.openxr
Class XrGraphicsRequirementsOpenGLESKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrGraphicsRequirementsOpenGLESKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrGraphicsRequirementsOpenGLESKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceOpenGL ES API version requirements.Description
XrGraphicsRequirementsOpenGLESKHRis populated byGetOpenGLESGraphicsRequirementsKHRwith the runtime’s OpenGL ES API version requirements.Valid Usage (Implicit)
- The
XR_KHR_opengl_es_enableextension must be enabled prior to usingXrGraphicsRequirementsOpenGLESKHR typemust beTYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHRnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
GetOpenGLESGraphicsRequirementsKHRLayout
struct XrGraphicsRequirementsOpenGLESKHR { XrStructureTypetype(); void *next(); XrVersionminApiVersionSupported(); XrVersionmaxApiVersionSupported(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrGraphicsRequirementsOpenGLESKHR.BufferAn array ofXrGraphicsRequirementsOpenGLESKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXAPIVERSIONSUPPORTED
MINAPIVERSIONSUPPORTED
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrGraphicsRequirementsOpenGLESKHR(java.nio.ByteBuffer container)Creates aXrGraphicsRequirementsOpenGLESKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrGraphicsRequirementsOpenGLESKHRcalloc()Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated withmemCalloc.static XrGraphicsRequirementsOpenGLESKHR.Buffercalloc(int capacity)Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated withmemCalloc.static XrGraphicsRequirementsOpenGLESKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsRequirementsOpenGLESKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsRequirementsOpenGLESKHRcreate()Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated withBufferUtils.static XrGraphicsRequirementsOpenGLESKHR.Buffercreate(int capacity)Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated withBufferUtils.static XrGraphicsRequirementsOpenGLESKHRcreate(long address)Returns a newXrGraphicsRequirementsOpenGLESKHRinstance for the specified memory address.static XrGraphicsRequirementsOpenGLESKHR.Buffercreate(long address, int capacity)Create aXrGraphicsRequirementsOpenGLESKHR.Bufferinstance at the specified memory.static XrGraphicsRequirementsOpenGLESKHRcreateSafe(long address)static XrGraphicsRequirementsOpenGLESKHR.BuffercreateSafe(long address, int capacity)static XrGraphicsRequirementsOpenGLESKHRmalloc()Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated withmemAlloc.static XrGraphicsRequirementsOpenGLESKHR.Buffermalloc(int capacity)Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated withmemAlloc.static XrGraphicsRequirementsOpenGLESKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrGraphicsRequirementsOpenGLESKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated on the specifiedMemoryStack.longmaxApiVersionSupported()the maximum version of OpenGL ES that the runtime has been tested on and is known to support.XrGraphicsRequirementsOpenGLESKHRmaxApiVersionSupported(long value)Sets the specified value to themaxApiVersionSupported()field.longminApiVersionSupported()the minimum version of OpenGL ES that the runtime supports.XrGraphicsRequirementsOpenGLESKHRminApiVersionSupported(long value)Sets the specified value to theminApiVersionSupported()field.longnext()NULLor a pointer to the next structure in a structure chain.XrGraphicsRequirementsOpenGLESKHRnext(long value)Sets the specified value to thenext()field.static longnmaxApiVersionSupported(long struct)Unsafe version ofmaxApiVersionSupported().static voidnmaxApiVersionSupported(long struct, long value)Unsafe version ofmaxApiVersionSupported.static longnminApiVersionSupported(long struct)Unsafe version ofminApiVersionSupported().static voidnminApiVersionSupported(long struct, long value)Unsafe version ofminApiVersionSupported.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.XrGraphicsRequirementsOpenGLESKHRset(int type, long next, long minApiVersionSupported, long maxApiVersionSupported)Initializes this struct with the specified values.XrGraphicsRequirementsOpenGLESKHRset(XrGraphicsRequirementsOpenGLESKHR src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrGraphicsRequirementsOpenGLESKHRtype(int value)Sets the specified value to thetype()field.XrGraphicsRequirementsOpenGLESKHRtype$Default()Sets theTYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHRvalue to thetype()field.
-
-
-
Constructor Detail
-
XrGraphicsRequirementsOpenGLESKHR
public XrGraphicsRequirementsOpenGLESKHR(java.nio.ByteBuffer container)
Creates aXrGraphicsRequirementsOpenGLESKHRinstance 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.
-
minApiVersionSupported
public long minApiVersionSupported()
the minimum version of OpenGL ES that the runtime supports. UsesXR10.XR_MAKE_VERSION(int, int, int)on major and minor API version, ignoring any patch version component.
-
maxApiVersionSupported
public long maxApiVersionSupported()
the maximum version of OpenGL ES that the runtime has been tested on and is known to support. Newer OpenGL ES versions might work if they are compatible. UsesXR10.XR_MAKE_VERSION(int, int, int)on major and minor API version, ignoring any patch version component.
-
type
public XrGraphicsRequirementsOpenGLESKHR type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrGraphicsRequirementsOpenGLESKHR type$Default()
Sets theTYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHRvalue to thetype()field.
-
next
public XrGraphicsRequirementsOpenGLESKHR next(long value)
Sets the specified value to thenext()field.
-
minApiVersionSupported
public XrGraphicsRequirementsOpenGLESKHR minApiVersionSupported(long value)
Sets the specified value to theminApiVersionSupported()field.
-
maxApiVersionSupported
public XrGraphicsRequirementsOpenGLESKHR maxApiVersionSupported(long value)
Sets the specified value to themaxApiVersionSupported()field.
-
set
public XrGraphicsRequirementsOpenGLESKHR set(int type, long next, long minApiVersionSupported, long maxApiVersionSupported)
Initializes this struct with the specified values.
-
set
public XrGraphicsRequirementsOpenGLESKHR set(XrGraphicsRequirementsOpenGLESKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrGraphicsRequirementsOpenGLESKHR malloc()
Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrGraphicsRequirementsOpenGLESKHR calloc()
Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrGraphicsRequirementsOpenGLESKHR create()
Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated withBufferUtils.
-
create
public static XrGraphicsRequirementsOpenGLESKHR create(long address)
Returns a newXrGraphicsRequirementsOpenGLESKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrGraphicsRequirementsOpenGLESKHR createSafe(long address)
-
malloc
public static XrGraphicsRequirementsOpenGLESKHR.Buffer malloc(int capacity)
Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrGraphicsRequirementsOpenGLESKHR.Buffer calloc(int capacity)
Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrGraphicsRequirementsOpenGLESKHR.Buffer create(int capacity)
Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrGraphicsRequirementsOpenGLESKHR.Buffer create(long address, int capacity)
Create aXrGraphicsRequirementsOpenGLESKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrGraphicsRequirementsOpenGLESKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static XrGraphicsRequirementsOpenGLESKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrGraphicsRequirementsOpenGLESKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsRequirementsOpenGLESKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrGraphicsRequirementsOpenGLESKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsRequirementsOpenGLESKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrGraphicsRequirementsOpenGLESKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsRequirementsOpenGLESKHR.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().
-
nminApiVersionSupported
public static long nminApiVersionSupported(long struct)
Unsafe version ofminApiVersionSupported().
-
nmaxApiVersionSupported
public static long nmaxApiVersionSupported(long struct)
Unsafe version ofmaxApiVersionSupported().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nminApiVersionSupported
public static void nminApiVersionSupported(long struct, long value)Unsafe version ofminApiVersionSupported.
-
nmaxApiVersionSupported
public static void nmaxApiVersionSupported(long struct, long value)Unsafe version ofmaxApiVersionSupported.
-
-