Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrGraphicsBindingEGLMNDX

extends Struct<XrGraphicsBindingEGLMNDX>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*, org.lwjgl.egl.*

The 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 an XrGraphicsBindingEGLMNDX structure in the next chain of the XrSessionCreateInfo.

The required window system configuration define to expose this structure type is USE_PLATFORM_EGL.

Valid Usage (Implicit)
See Also

CreateSession

Layout


struct XrGraphicsBindingEGLMNDX {
    XrStructureType type;
    void const * next;
    PFN_xrEglGetProcAddressMNDX getProcAddress;
    EGLDisplay display;
    EGLConfig config;
    EGLContext context;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CONFIG

The struct member offsets.

public static final int
CONTEXT

The struct member offsets.

public static final int
DISPLAY

The struct member offsets.

public static final int
GETPROCADDRESS

The struct member offsets.

public static final int
NEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
XrGraphicsBindingEGLMNDX(long address, ByteBuffer container)

public
XrGraphicsBindingEGLMNDX(ByteBuffer container)

Creates a XrGraphicsBindingEGLMNDX instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static XrGraphicsBindingEGLMNDX
calloc()

Returns a new XrGraphicsBindingEGLMNDX instance allocated with memCalloc.

public static XrGraphicsBindingEGLMNDX.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with memCalloc.

public static XrGraphicsBindingEGLMNDX
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrGraphicsBindingEGLMNDX instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XrGraphicsBindingEGLMNDX.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public long
config()

a valid EGL EGLConfig.

public XrGraphicsBindingEGLMNDX
config(long value)

Sets the specified value to the config field.

public long
context()

a valid EGL EGLContext.

public XrGraphicsBindingEGLMNDX
context(long value)

Sets the specified value to the context field.

protected XrGraphicsBindingEGLMNDX
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XrGraphicsBindingEGLMNDX
create()

Returns a new XrGraphicsBindingEGLMNDX instance allocated with BufferUtils.

public static XrGraphicsBindingEGLMNDX
create(long address)

Returns a new XrGraphicsBindingEGLMNDX instance for the specified memory address.

public static XrGraphicsBindingEGLMNDX.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with BufferUtils.

public static XrGraphicsBindingEGLMNDX.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XrGraphicsBindingEGLMNDX.Buffer instance at the specified memory.

public static XrGraphicsBindingEGLMNDX
createSafe(long address)

Like create, but returns null if address is NULL.

public static XrGraphicsBindingEGLMNDX.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
display()

a valid EGL EGLDisplay.

public XrGraphicsBindingEGLMNDX
display(long value)

Sets the specified value to the display field.

public long
getProcAddress()

a valid function pointer to eglGetProcAddress.

public XrGraphicsBindingEGLMNDX
getProcAddress(long value)

Sets the specified value to the getProcAddress field.

public static XrGraphicsBindingEGLMNDX
malloc()

Returns a new XrGraphicsBindingEGLMNDX instance allocated with memAlloc.

public static XrGraphicsBindingEGLMNDX.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with memAlloc.

public static XrGraphicsBindingEGLMNDX
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrGraphicsBindingEGLMNDX instance allocated on the specified MemoryStack.

public static XrGraphicsBindingEGLMNDX.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated on the specified MemoryStack.

public static long
nconfig(long struct)

Unsafe version of config.

public static void
nconfig(long struct, long value)

Unsafe version of config.

public static long
ncontext(long struct)

Unsafe version of context.

public static void
ncontext(long struct, long value)

Unsafe version of context.

public static long
ndisplay(long struct)

Unsafe version of display.

public static void
ndisplay(long struct, long value)

Unsafe version of display.

public long
next()

NULL or a pointer to the next structure in a structure chain.

public XrGraphicsBindingEGLMNDX
next(long value)

Sets the specified value to the next field.

public static long
ngetProcAddress(long struct)

Unsafe version of getProcAddress.

public static void
ngetProcAddress(long struct, long value)

Unsafe version of getProcAddress.

public static long
nnext(long struct)

Unsafe version of next.

public static void
nnext(long struct, long value)

Unsafe version of next.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public XrGraphicsBindingEGLMNDX
set(int type, long next, long getProcAddress, long display, long config, long context)

Initializes this struct with the specified values.

public XrGraphicsBindingEGLMNDX

Returns:

this struct
set
(XrGraphicsBindingEGLMNDX
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
type()

the XrStructureType of this structure.

public XrGraphicsBindingEGLMNDX
type(int value)

Sets the specified value to the type field.

public XrGraphicsBindingEGLMNDX
type$Default()

Sets the TYPE_GRAPHICS_BINDING_EGL_MNDX value to the type field.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CONFIGback to summary
public static final int CONFIG

The struct member offsets.

CONTEXTback to summary
public static final int CONTEXT

The struct member offsets.

DISPLAYback to summary
public static final int DISPLAY

The struct member offsets.

GETPROCADDRESSback to summary
public static final int GETPROCADDRESS

The struct member offsets.

NEXTback to summary
public static final int NEXT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TYPEback to summary
public static final int TYPE

The struct member offsets.

Constructor Detail

XrGraphicsBindingEGLMNDXback to summary
protected XrGraphicsBindingEGLMNDX(long address, ByteBuffer container)
XrGraphicsBindingEGLMNDXback to summary
public XrGraphicsBindingEGLMNDX(ByteBuffer container)

Creates a XrGraphicsBindingEGLMNDX instance at the current position of the specified ByteBuffer container. 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

callocback to summary
public static XrGraphicsBindingEGLMNDX calloc()

Returns a new XrGraphicsBindingEGLMNDX instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static XrGraphicsBindingEGLMNDX calloc(MemoryStack stack)

Returns a new XrGraphicsBindingEGLMNDX instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity, MemoryStack stack)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

configback to summary
public long config()

a valid EGL EGLConfig.

Annotations
@NativeType:EGLConfig
configback to summary
public XrGraphicsBindingEGLMNDX config(long value)

Sets the specified value to the config field.

contextback to summary
public long context()

a valid EGL EGLContext.

Annotations
@NativeType:EGLContext
contextback to summary
public XrGraphicsBindingEGLMNDX context(long value)

Sets the specified value to the context field.

createback to summary
protected XrGraphicsBindingEGLMNDX create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static XrGraphicsBindingEGLMNDX create()

Returns a new XrGraphicsBindingEGLMNDX instance allocated with BufferUtils.

createback to summary
public static XrGraphicsBindingEGLMNDX create(long address)

Returns a new XrGraphicsBindingEGLMNDX instance for the specified memory address.

createback to summary
public static XrGraphicsBindingEGLMNDX.Buffer create(int capacity)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static XrGraphicsBindingEGLMNDX.Buffer create(long address, int capacity)

Create a XrGraphicsBindingEGLMNDX.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static XrGraphicsBindingEGLMNDX createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static XrGraphicsBindingEGLMNDX.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
displayback to summary
public long display()

a valid EGL EGLDisplay.

Annotations
@NativeType:EGLDisplay
displayback to summary
public XrGraphicsBindingEGLMNDX display(long value)

Sets the specified value to the display field.

getProcAddressback to summary
public long getProcAddress()

a valid function pointer to eglGetProcAddress.

Annotations
@NativeType:PFN_xrEglGetProcAddressMNDX
getProcAddressback to summary
public XrGraphicsBindingEGLMNDX getProcAddress(long value)

Sets the specified value to the getProcAddress field.

mallocback to summary
public static XrGraphicsBindingEGLMNDX malloc()

Returns a new XrGraphicsBindingEGLMNDX instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static XrGraphicsBindingEGLMNDX.Buffer malloc(int capacity)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static XrGraphicsBindingEGLMNDX malloc(MemoryStack stack)

Returns a new XrGraphicsBindingEGLMNDX instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static XrGraphicsBindingEGLMNDX.Buffer malloc(int capacity, MemoryStack stack)

Returns a new XrGraphicsBindingEGLMNDX.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nconfigback to summary
public static long nconfig(long struct)

Unsafe version of config.

nconfigback to summary
public static void nconfig(long struct, long value)

Unsafe version of config.

ncontextback to summary
public static long ncontext(long struct)

Unsafe version of context.

ncontextback to summary
public static void ncontext(long struct, long value)

Unsafe version of context.

ndisplayback to summary
public static long ndisplay(long struct)

Unsafe version of display.

ndisplayback to summary
public static void ndisplay(long struct, long value)

Unsafe version of display.

nextback to summary
public long next()

NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.

Annotations
@NativeType:void const *
nextback to summary
public XrGraphicsBindingEGLMNDX next(long value)

Sets the specified value to the next field.

ngetProcAddressback to summary
public static long ngetProcAddress(long struct)

Unsafe version of getProcAddress.

ngetProcAddressback to summary
public static void ngetProcAddress(long struct, long value)

Unsafe version of getProcAddress.

nnextback to summary
public static long nnext(long struct)

Unsafe version of next.

nnextback to summary
public static void nnext(long struct, long value)

Unsafe version of next.

ntypeback to summary
public static int ntype(long struct)

Unsafe version of type.

ntypeback to summary
public static void ntype(long struct, int value)

Unsafe version of type.

setback to summary
public XrGraphicsBindingEGLMNDX set(int type, long next, long getProcAddress, long display, long config, long context)

Initializes this struct with the specified values.

setback to summary
public XrGraphicsBindingEGLMNDX set(XrGraphicsBindingEGLMNDX src)

Copies the specified struct data to this struct.

Parameters
src:XrGraphicsBindingEGLMNDX

the source struct

Returns:XrGraphicsBindingEGLMNDX

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
typeback to summary
public int type()

the XrStructureType of this structure.

Annotations
@NativeType:XrStructureType
typeback to summary
public XrGraphicsBindingEGLMNDX type(int value)

Sets the specified value to the type field.

type$Defaultback to summary
public XrGraphicsBindingEGLMNDX type$Default()

Sets the TYPE_GRAPHICS_BINDING_EGL_MNDX value to the type field.

validateback to summary
public static void validate(long struct)

Validates pointer members that should not be NULL.

Parameters
struct:long

the struct to validate

org.lwjgl.openxr back to summary

public Class XrGraphicsBindingEGLMNDX.Buffer

extends StructBuffer<XrGraphicsBindingEGLMNDX, XrGraphicsBindingEGLMNDX.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of XrGraphicsBindingEGLMNDX structs.

Field Summary

Modifier and TypeField and Description
private static final XrGraphicsBindingEGLMNDX

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new XrGraphicsBindingEGLMNDX.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the value of the XrGraphicsBindingEGLMNDX#config field.
config
()

public XrGraphicsBindingEGLMNDX.Buffer
config(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#config field.

public long

Returns:

the value of the XrGraphicsBindingEGLMNDX#context field.
context
()

public XrGraphicsBindingEGLMNDX.Buffer
context(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#context field.

public long

Returns:

the value of the XrGraphicsBindingEGLMNDX#display field.
display
()

public XrGraphicsBindingEGLMNDX.Buffer
display(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#display field.

protected XrGraphicsBindingEGLMNDX
public long

Returns:

the value of the XrGraphicsBindingEGLMNDX#getProcAddress field.
getProcAddress
()

public XrGraphicsBindingEGLMNDX.Buffer
getProcAddress(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#getProcAddress field.

public long

Returns:

the value of the XrGraphicsBindingEGLMNDX#next field.
next
()

public XrGraphicsBindingEGLMNDX.Buffer
next(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#next field.

protected XrGraphicsBindingEGLMNDX.Buffer
public int

Returns:

the value of the XrGraphicsBindingEGLMNDX#type field.
type
()

public XrGraphicsBindingEGLMNDX.Buffer
type(int value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#type field.

public XrGraphicsBindingEGLMNDX.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final XrGraphicsBindingEGLMNDX ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new XrGraphicsBindingEGLMNDX.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrGraphicsBindingEGLMNDX#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

configback to summary
public long config()
Returns:long

the value of the XrGraphicsBindingEGLMNDX#config field.

Annotations
@NativeType:EGLConfig
configback to summary
public XrGraphicsBindingEGLMNDX.Buffer config(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#config field.

contextback to summary
public long context()
Returns:long

the value of the XrGraphicsBindingEGLMNDX#context field.

Annotations
@NativeType:EGLContext
contextback to summary
public XrGraphicsBindingEGLMNDX.Buffer context(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#context field.

displayback to summary
public long display()
Returns:long

the value of the XrGraphicsBindingEGLMNDX#display field.

Annotations
@NativeType:EGLDisplay
displayback to summary
public XrGraphicsBindingEGLMNDX.Buffer display(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#display field.

getElementFactoryback to summary
protected XrGraphicsBindingEGLMNDX getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
getProcAddressback to summary
public long getProcAddress()
Returns:long

the value of the XrGraphicsBindingEGLMNDX#getProcAddress field.

Annotations
@NativeType:PFN_xrEglGetProcAddressMNDX
getProcAddressback to summary
public XrGraphicsBindingEGLMNDX.Buffer getProcAddress(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#getProcAddress field.

nextback to summary
public long next()
Returns:long

the value of the XrGraphicsBindingEGLMNDX#next field.

Annotations
@NativeType:void const *
nextback to summary
public XrGraphicsBindingEGLMNDX.Buffer next(long value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#next field.

selfback to summary
protected XrGraphicsBindingEGLMNDX.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
typeback to summary
public int type()
Returns:int

the value of the XrGraphicsBindingEGLMNDX#type field.

Annotations
@NativeType:XrStructureType
typeback to summary
public XrGraphicsBindingEGLMNDX.Buffer type(int value)

Sets the specified value to the XrGraphicsBindingEGLMNDX#type field.

type$Defaultback to summary
public XrGraphicsBindingEGLMNDX.Buffer type$Default()

Sets the TYPE_GRAPHICS_BINDING_EGL_MNDX value to the XrGraphicsBindingEGLMNDX#type field.