Package org.lwjgl.openxr
Class XrSwapchainStateSamplerOpenGLESFB
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSwapchainStateSamplerOpenGLESFB>
org.lwjgl.openxr.XrSwapchainStateSamplerOpenGLESFB
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class XrSwapchainStateSamplerOpenGLESFB
extends Struct<XrSwapchainStateSamplerOpenGLESFB>
implements NativeResource
struct XrSwapchainStateSamplerOpenGLESFB {
XrStructureType type;
void * next;
EGLenum minFilter;
EGLenum magFilter;
EGLenum wrapModeS;
EGLenum wrapModeT;
EGLenum swizzleRed;
EGLenum swizzleGreen;
EGLenum swizzleBlue;
EGLenum swizzleAlpha;
float maxAnisotropy;
{@link XrColor4f XrColor4f} borderColor;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofXrSwapchainStateSamplerOpenGLESFB
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrSwapchainStateSamplerOpenGLESFB
(ByteBuffer container) Creates aXrSwapchainStateSamplerOpenGLESFB
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionborderColor
(Consumer<XrColor4f> consumer) Passes theborderColor
field to the specifiedConsumer
.borderColor
(XrColor4f value) Copies the specifiedXrColor4f
to theborderColor
field.calloc()
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newXrSwapchainStateSamplerOpenGLESFB
instance for the specified memory address.create
(long address, int capacity) Create aXrSwapchainStateSamplerOpenGLESFB.Buffer
instance at the specified memory.Downcasts the specifiedXrSwapchainStateBaseHeaderFB
instance toXrSwapchainStateSamplerOpenGLESFB
.Downcasts the specifiedXrSwapchainStateBaseHeaderFB.Buffer
instance toXrSwapchainStateSamplerOpenGLESFB.Buffer
.static @Nullable XrSwapchainStateSamplerOpenGLESFB
createSafe
(long address) static @Nullable XrSwapchainStateSamplerOpenGLESFB.Buffer
createSafe
(long address, int capacity) int
magFilter
(int value) Sets the specified value to themagFilter
field.malloc()
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated on the specifiedMemoryStack
.float
maxAnisotropy
(float value) Sets the specified value to themaxAnisotropy
field.int
minFilter
(int value) Sets the specified value to theminFilter
field.static XrColor4f
nborderColor
(long struct) Unsafe version ofborderColor()
.static void
nborderColor
(long struct, XrColor4f value) Unsafe version ofborderColor
.long
next()
next
(long value) Sets the specified value to thenext
field.static int
nmagFilter
(long struct) Unsafe version ofmagFilter()
.static void
nmagFilter
(long struct, int value) Unsafe version ofmagFilter
.static float
nmaxAnisotropy
(long struct) Unsafe version ofmaxAnisotropy()
.static void
nmaxAnisotropy
(long struct, float value) Unsafe version ofmaxAnisotropy
.static int
nminFilter
(long struct) Unsafe version ofminFilter()
.static void
nminFilter
(long struct, int value) Unsafe version ofminFilter
.static long
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, long value) Unsafe version ofnext
.static int
nswizzleAlpha
(long struct) Unsafe version ofswizzleAlpha()
.static void
nswizzleAlpha
(long struct, int value) Unsafe version ofswizzleAlpha
.static int
nswizzleBlue
(long struct) Unsafe version ofswizzleBlue()
.static void
nswizzleBlue
(long struct, int value) Unsafe version ofswizzleBlue
.static int
nswizzleGreen
(long struct) Unsafe version ofswizzleGreen()
.static void
nswizzleGreen
(long struct, int value) Unsafe version ofswizzleGreen
.static int
nswizzleRed
(long struct) Unsafe version ofswizzleRed()
.static void
nswizzleRed
(long struct, int value) Unsafe version ofswizzleRed
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.static int
nwrapModeS
(long struct) Unsafe version ofwrapModeS()
.static void
nwrapModeS
(long struct, int value) Unsafe version ofwrapModeS
.static int
nwrapModeT
(long struct) Unsafe version ofwrapModeT()
.static void
nwrapModeT
(long struct, int value) Unsafe version ofwrapModeT
.set
(int type, long next, int minFilter, int magFilter, int wrapModeS, int wrapModeT, int swizzleRed, int swizzleGreen, int swizzleBlue, int swizzleAlpha, float maxAnisotropy, XrColor4f borderColor) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
swizzleAlpha
(int value) Sets the specified value to theswizzleAlpha
field.int
swizzleBlue
(int value) Sets the specified value to theswizzleBlue
field.int
swizzleGreen
(int value) Sets the specified value to theswizzleGreen
field.int
swizzleRed
(int value) Sets the specified value to theswizzleRed
field.int
type()
type
(int value) Sets the specified value to thetype
field.Sets theTYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB
value to thetype
field.int
wrapModeS
(int value) Sets the specified value to thewrapModeS
field.int
wrapModeT
(int value) Sets the specified value to thewrapModeT
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
MINFILTER
public static final int MINFILTERThe struct member offsets. -
MAGFILTER
public static final int MAGFILTERThe struct member offsets. -
WRAPMODES
public static final int WRAPMODESThe struct member offsets. -
WRAPMODET
public static final int WRAPMODETThe struct member offsets. -
SWIZZLERED
public static final int SWIZZLEREDThe struct member offsets. -
SWIZZLEGREEN
public static final int SWIZZLEGREENThe struct member offsets. -
SWIZZLEBLUE
public static final int SWIZZLEBLUEThe struct member offsets. -
SWIZZLEALPHA
public static final int SWIZZLEALPHAThe struct member offsets. -
MAXANISOTROPY
public static final int MAXANISOTROPYThe struct member offsets. -
BORDERCOLOR
public static final int BORDERCOLORThe struct member offsets.
-
-
Constructor Details
-
XrSwapchainStateSamplerOpenGLESFB
Creates aXrSwapchainStateSamplerOpenGLESFB
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrSwapchainStateSamplerOpenGLESFB>
-
type
public int type()- Returns:
- the value of the
type
field.
-
next
public long next()- Returns:
- the value of the
next
field.
-
minFilter
public int minFilter()- Returns:
- the value of the
minFilter
field.
-
magFilter
public int magFilter()- Returns:
- the value of the
magFilter
field.
-
wrapModeS
public int wrapModeS()- Returns:
- the value of the
wrapModeS
field.
-
wrapModeT
public int wrapModeT()- Returns:
- the value of the
wrapModeT
field.
-
swizzleRed
public int swizzleRed()- Returns:
- the value of the
swizzleRed
field.
-
swizzleGreen
public int swizzleGreen()- Returns:
- the value of the
swizzleGreen
field.
-
swizzleBlue
public int swizzleBlue()- Returns:
- the value of the
swizzleBlue
field.
-
swizzleAlpha
public int swizzleAlpha()- Returns:
- the value of the
swizzleAlpha
field.
-
maxAnisotropy
public float maxAnisotropy()- Returns:
- the value of the
maxAnisotropy
field.
-
borderColor
- Returns:
- a
XrColor4f
view of theborderColor
field.
-
type
Sets the specified value to thetype
field. -
type$Default
Sets theTYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB
value to thetype
field. -
next
Sets the specified value to thenext
field. -
minFilter
Sets the specified value to theminFilter
field. -
magFilter
Sets the specified value to themagFilter
field. -
wrapModeS
Sets the specified value to thewrapModeS
field. -
wrapModeT
Sets the specified value to thewrapModeT
field. -
swizzleRed
Sets the specified value to theswizzleRed
field. -
swizzleGreen
Sets the specified value to theswizzleGreen
field. -
swizzleBlue
Sets the specified value to theswizzleBlue
field. -
swizzleAlpha
Sets the specified value to theswizzleAlpha
field. -
maxAnisotropy
Sets the specified value to themaxAnisotropy
field. -
borderColor
Copies the specifiedXrColor4f
to theborderColor
field. -
borderColor
Passes theborderColor
field to the specifiedConsumer
. -
set
public XrSwapchainStateSamplerOpenGLESFB set(int type, long next, int minFilter, int magFilter, int wrapModeS, int wrapModeT, int swizzleRed, int swizzleGreen, int swizzleBlue, int swizzleAlpha, float maxAnisotropy, XrColor4f borderColor) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated withBufferUtils
. -
create
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance for the specified memory address. -
createSafe
-
create
Downcasts the specifiedXrSwapchainStateBaseHeaderFB
instance toXrSwapchainStateSamplerOpenGLESFB
. -
malloc
Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrSwapchainStateSamplerOpenGLESFB.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable XrSwapchainStateSamplerOpenGLESFB.Buffer createSafe(long address, int capacity) -
create
public static XrSwapchainStateSamplerOpenGLESFB.Buffer create(XrSwapchainStateBaseHeaderFB.Buffer value) Downcasts the specifiedXrSwapchainStateBaseHeaderFB.Buffer
instance toXrSwapchainStateSamplerOpenGLESFB.Buffer
. -
malloc
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrSwapchainStateSamplerOpenGLESFB
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrSwapchainStateSamplerOpenGLESFB.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nnext
public static long nnext(long struct) Unsafe version ofnext()
. -
nminFilter
public static int nminFilter(long struct) Unsafe version ofminFilter()
. -
nmagFilter
public static int nmagFilter(long struct) Unsafe version ofmagFilter()
. -
nwrapModeS
public static int nwrapModeS(long struct) Unsafe version ofwrapModeS()
. -
nwrapModeT
public static int nwrapModeT(long struct) Unsafe version ofwrapModeT()
. -
nswizzleRed
public static int nswizzleRed(long struct) Unsafe version ofswizzleRed()
. -
nswizzleGreen
public static int nswizzleGreen(long struct) Unsafe version ofswizzleGreen()
. -
nswizzleBlue
public static int nswizzleBlue(long struct) Unsafe version ofswizzleBlue()
. -
nswizzleAlpha
public static int nswizzleAlpha(long struct) Unsafe version ofswizzleAlpha()
. -
nmaxAnisotropy
public static float nmaxAnisotropy(long struct) Unsafe version ofmaxAnisotropy()
. -
nborderColor
Unsafe version ofborderColor()
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext
. -
nminFilter
public static void nminFilter(long struct, int value) Unsafe version ofminFilter
. -
nmagFilter
public static void nmagFilter(long struct, int value) Unsafe version ofmagFilter
. -
nwrapModeS
public static void nwrapModeS(long struct, int value) Unsafe version ofwrapModeS
. -
nwrapModeT
public static void nwrapModeT(long struct, int value) Unsafe version ofwrapModeT
. -
nswizzleRed
public static void nswizzleRed(long struct, int value) Unsafe version ofswizzleRed
. -
nswizzleGreen
public static void nswizzleGreen(long struct, int value) Unsafe version ofswizzleGreen
. -
nswizzleBlue
public static void nswizzleBlue(long struct, int value) Unsafe version ofswizzleBlue
. -
nswizzleAlpha
public static void nswizzleAlpha(long struct, int value) Unsafe version ofswizzleAlpha
. -
nmaxAnisotropy
public static void nmaxAnisotropy(long struct, float value) Unsafe version ofmaxAnisotropy
. -
nborderColor
Unsafe version ofborderColor
.
-