Package org.lwjgl.openxr
Class XrGraphicsBindingEGLMNDX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrGraphicsBindingEGLMNDX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrGraphicsBindingEGLMNDX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe graphics binding structure to be passed at session creation to EGL.Description
When creating an EGL based
XrSession, the application will provide a pointer to anXrGraphicsBindingEGLMNDXstructure in thenextchain of theXrSessionCreateInfo.The required window system configuration define to expose this structure type is
USE_PLATFORM_EGL.Valid Usage (Implicit)
- The
XR_MNDX_egl_enableextension must be enabled prior to usingXrGraphicsBindingEGLMNDX typemust beTYPE_GRAPHICS_BINDING_EGL_MNDXnextmust beNULLor a valid pointer to the next structure in a structure chaingetProcAddressmust be a validPFNEGLGETPROCADDRESSPROCvaluedisplaymust be a validEGLDisplayvalueconfigmust be a validEGLConfigvaluecontextmust be a validEGLContextvalue
See Also
Layout
struct XrGraphicsBindingEGLMNDX { XrStructureTypetype(); void const *next(); PFNEGLGETPROCADDRESSPROCgetProcAddress(); EGLDisplaydisplay(); EGLConfigconfig(); EGLContextcontext(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrGraphicsBindingEGLMNDX.BufferAn array ofXrGraphicsBindingEGLMNDXstructs.
-
Constructor Summary
Constructors Constructor Description XrGraphicsBindingEGLMNDX(java.nio.ByteBuffer container)Creates aXrGraphicsBindingEGLMNDXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrGraphicsBindingEGLMNDXcalloc()Returns a newXrGraphicsBindingEGLMNDXinstance allocated withmemCalloc.static XrGraphicsBindingEGLMNDX.Buffercalloc(int capacity)Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated withmemCalloc.static XrGraphicsBindingEGLMNDX.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsBindingEGLMNDXcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsBindingEGLMNDXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longconfig()a valid EGLEGLConfig.XrGraphicsBindingEGLMNDXconfig(long value)Sets the specified value to theconfig()field.longcontext()a valid EGLEGLContext.XrGraphicsBindingEGLMNDXcontext(long value)Sets the specified value to thecontext()field.static XrGraphicsBindingEGLMNDXcreate()Returns a newXrGraphicsBindingEGLMNDXinstance allocated withBufferUtils.static XrGraphicsBindingEGLMNDX.Buffercreate(int capacity)Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated withBufferUtils.static XrGraphicsBindingEGLMNDXcreate(long address)Returns a newXrGraphicsBindingEGLMNDXinstance for the specified memory address.static XrGraphicsBindingEGLMNDX.Buffercreate(long address, int capacity)Create aXrGraphicsBindingEGLMNDX.Bufferinstance at the specified memory.static XrGraphicsBindingEGLMNDXcreateSafe(long address)static XrGraphicsBindingEGLMNDX.BuffercreateSafe(long address, int capacity)longdisplay()a valid EGLEGLDisplay.XrGraphicsBindingEGLMNDXdisplay(long value)Sets the specified value to thedisplay()field.longgetProcAddress()a valid function pointer toeglGetProcAddress.XrGraphicsBindingEGLMNDXgetProcAddress(long value)Sets the specified value to thegetProcAddress()field.static XrGraphicsBindingEGLMNDXmalloc()Returns a newXrGraphicsBindingEGLMNDXinstance allocated withmemAlloc.static XrGraphicsBindingEGLMNDX.Buffermalloc(int capacity)Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated withmemAlloc.static XrGraphicsBindingEGLMNDX.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated on the specifiedMemoryStack.static XrGraphicsBindingEGLMNDXmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsBindingEGLMNDXinstance allocated on the specifiedMemoryStack.static longnconfig(long struct)Unsafe version ofconfig().static voidnconfig(long struct, long value)Unsafe version ofconfig.static longncontext(long struct)Unsafe version ofcontext().static voidncontext(long struct, long value)Unsafe version ofcontext.static longndisplay(long struct)Unsafe version ofdisplay().static voidndisplay(long struct, long value)Unsafe version ofdisplay.longnext()NULLor a pointer to the next structure in a structure chain.XrGraphicsBindingEGLMNDXnext(long value)Sets the specified value to thenext()field.static longngetProcAddress(long struct)Unsafe version ofgetProcAddress().static voidngetProcAddress(long struct, long value)Unsafe version ofgetProcAddress.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.XrGraphicsBindingEGLMNDXset(int type, long next, long getProcAddress, long display, long config, long context)Initializes this struct with the specified values.XrGraphicsBindingEGLMNDXset(XrGraphicsBindingEGLMNDX src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrGraphicsBindingEGLMNDXtype(int value)Sets the specified value to thetype()field.XrGraphicsBindingEGLMNDXtype$Default()Sets theTYPE_GRAPHICS_BINDING_EGL_MNDXvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrGraphicsBindingEGLMNDX
public XrGraphicsBindingEGLMNDX(java.nio.ByteBuffer container)
Creates aXrGraphicsBindingEGLMNDXinstance 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.
-
getProcAddress
public long getProcAddress()
a valid function pointer toeglGetProcAddress.
-
display
public long display()
a valid EGLEGLDisplay.
-
config
public long config()
a valid EGLEGLConfig.
-
context
public long context()
a valid EGLEGLContext.
-
type
public XrGraphicsBindingEGLMNDX type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrGraphicsBindingEGLMNDX type$Default()
Sets theTYPE_GRAPHICS_BINDING_EGL_MNDXvalue to thetype()field.
-
next
public XrGraphicsBindingEGLMNDX next(long value)
Sets the specified value to thenext()field.
-
getProcAddress
public XrGraphicsBindingEGLMNDX getProcAddress(long value)
Sets the specified value to thegetProcAddress()field.
-
display
public XrGraphicsBindingEGLMNDX display(long value)
Sets the specified value to thedisplay()field.
-
config
public XrGraphicsBindingEGLMNDX config(long value)
Sets the specified value to theconfig()field.
-
context
public XrGraphicsBindingEGLMNDX context(long value)
Sets the specified value to thecontext()field.
-
set
public XrGraphicsBindingEGLMNDX set(int type, long next, long getProcAddress, long display, long config, long context)
Initializes this struct with the specified values.
-
set
public XrGraphicsBindingEGLMNDX set(XrGraphicsBindingEGLMNDX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrGraphicsBindingEGLMNDX malloc()
Returns a newXrGraphicsBindingEGLMNDXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrGraphicsBindingEGLMNDX calloc()
Returns a newXrGraphicsBindingEGLMNDXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrGraphicsBindingEGLMNDX create()
Returns a newXrGraphicsBindingEGLMNDXinstance allocated withBufferUtils.
-
create
public static XrGraphicsBindingEGLMNDX create(long address)
Returns a newXrGraphicsBindingEGLMNDXinstance for the specified memory address.
-
createSafe
@Nullable public static XrGraphicsBindingEGLMNDX createSafe(long address)
-
malloc
public static XrGraphicsBindingEGLMNDX.Buffer malloc(int capacity)
Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity)
Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrGraphicsBindingEGLMNDX.Buffer create(int capacity)
Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrGraphicsBindingEGLMNDX.Buffer create(long address, int capacity)
Create aXrGraphicsBindingEGLMNDX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrGraphicsBindingEGLMNDX.Buffer createSafe(long address, int capacity)
-
malloc
public static XrGraphicsBindingEGLMNDX malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsBindingEGLMNDXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrGraphicsBindingEGLMNDX calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsBindingEGLMNDXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrGraphicsBindingEGLMNDX.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsBindingEGLMNDX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsBindingEGLMNDX.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().
-
ngetProcAddress
public static long ngetProcAddress(long struct)
Unsafe version ofgetProcAddress().
-
ndisplay
public static long ndisplay(long struct)
Unsafe version ofdisplay().
-
nconfig
public static long nconfig(long struct)
Unsafe version ofconfig().
-
ncontext
public static long ncontext(long struct)
Unsafe version ofcontext().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ngetProcAddress
public static void ngetProcAddress(long struct, long value)Unsafe version ofgetProcAddress.
-
ndisplay
public static void ndisplay(long struct, long value)Unsafe version ofdisplay.
-
nconfig
public static void nconfig(long struct, long value)Unsafe version ofconfig.
-
ncontext
public static void ncontext(long struct, long value)Unsafe version ofcontext.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-