Package org.lwjgl.openvr
Class DistortionCoordinates
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<DistortionCoordinates>
org.lwjgl.openvr.DistortionCoordinates
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class DistortionCoordinates
extends org.lwjgl.system.Struct<DistortionCoordinates>
implements org.lwjgl.system.NativeResource
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDistortionCoordinates(ByteBuffer container) Creates aDistortionCoordinatesinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic DistortionCoordinatescalloc()Returns a newDistortionCoordinatesinstance allocated withmemCalloc.static DistortionCoordinates.Buffercalloc(int capacity) Returns a newDistortionCoordinates.Bufferinstance allocated withmemCalloc.static DistortionCoordinates.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newDistortionCoordinates.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DistortionCoordinatescalloc(org.lwjgl.system.MemoryStack stack) Returns a newDistortionCoordinatesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DistortionCoordinatesDeprecated.static DistortionCoordinates.BuffercallocStack(int capacity) Deprecated.static DistortionCoordinates.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static DistortionCoordinatescallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static DistortionCoordinatescreate()Returns a newDistortionCoordinatesinstance allocated withBufferUtils.static DistortionCoordinates.Buffercreate(int capacity) Returns a newDistortionCoordinates.Bufferinstance allocated withBufferUtils.static DistortionCoordinatescreate(long address) Returns a newDistortionCoordinatesinstance for the specified memory address.static DistortionCoordinates.Buffercreate(long address, int capacity) Create aDistortionCoordinates.Bufferinstance at the specified memory.static @Nullable DistortionCoordinatescreateSafe(long address) static @Nullable DistortionCoordinates.BuffercreateSafe(long address, int capacity) static DistortionCoordinatesmalloc()Returns a newDistortionCoordinatesinstance allocated withmemAlloc.static DistortionCoordinates.Buffermalloc(int capacity) Returns a newDistortionCoordinates.Bufferinstance allocated withmemAlloc.static DistortionCoordinates.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newDistortionCoordinates.Bufferinstance allocated on the specifiedMemoryStack.static DistortionCoordinatesmalloc(org.lwjgl.system.MemoryStack stack) Returns a newDistortionCoordinatesinstance allocated on the specifiedMemoryStack.static DistortionCoordinatesDeprecated.static DistortionCoordinates.BuffermallocStack(int capacity) Deprecated.static DistortionCoordinates.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static DistortionCoordinatesmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static FloatBuffernrfBlue(long struct) Unsafe version ofrfBlue().static floatnrfBlue(long struct, int index) Unsafe version ofrfBlue.static FloatBuffernrfGreen(long struct) Unsafe version ofrfGreen().static floatnrfGreen(long struct, int index) Unsafe version ofrfGreen.static FloatBuffernrfRed(long struct) Unsafe version ofrfRed().static floatnrfRed(long struct, int index) Unsafe version ofrfRed.rfBlue()the UVs for the blue channelfloatrfBlue(int index) the UVs for the blue channelrfGreen()the UVs for the green channelfloatrfGreen(int index) the UVs for the green channelrfRed()the UVs for the red channelfloatrfRed(int index) the UVs for the red channelintsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
RFRED
public static final int RFREDThe struct member offsets. -
RFGREEN
public static final int RFGREENThe struct member offsets. -
RFBLUE
public static final int RFBLUEThe struct member offsets.
-
-
Constructor Details
-
DistortionCoordinates
Creates aDistortionCoordinatesinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<DistortionCoordinates>
-
rfRed
the UVs for the red channel -
rfRed
public float rfRed(int index) the UVs for the red channel -
rfGreen
the UVs for the green channel -
rfGreen
public float rfGreen(int index) the UVs for the green channel -
rfBlue
the UVs for the blue channel -
rfBlue
public float rfBlue(int index) the UVs for the blue channel -
malloc
Returns a newDistortionCoordinatesinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newDistortionCoordinatesinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newDistortionCoordinatesinstance allocated withBufferUtils. -
create
Returns a newDistortionCoordinatesinstance for the specified memory address. -
createSafe
-
malloc
Returns a newDistortionCoordinates.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newDistortionCoordinates.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newDistortionCoordinates.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aDistortionCoordinates.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static DistortionCoordinates.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static DistortionCoordinates.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newDistortionCoordinatesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newDistortionCoordinatesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newDistortionCoordinates.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newDistortionCoordinates.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nrfRed
Unsafe version ofrfRed(). -
nrfRed
public static float nrfRed(long struct, int index) Unsafe version ofrfRed. -
nrfGreen
Unsafe version ofrfGreen(). -
nrfGreen
public static float nrfGreen(long struct, int index) Unsafe version ofrfGreen. -
nrfBlue
Unsafe version ofrfBlue(). -
nrfBlue
public static float nrfBlue(long struct, int index) Unsafe version ofrfBlue.
-