Package org.lwjgl.ovr
Class OVRFovStencilDesc
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRFovStencilDesc>
org.lwjgl.ovr.OVRFovStencilDesc
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRFovStencilDesc
extends org.lwjgl.system.Struct<OVRFovStencilDesc>
implements org.lwjgl.system.NativeResource
Fov-stencil mesh descriptor passed into the function
GetFovStencil.
Layout
struct ovrFovStencilDesc {
ovrFovStencilType StencilType();
uint32_t StencilFlags();
ovrEyeType Eye;
ovrFovPort FovPort();
ovrQuatf HmdToEyeRotation();
}-
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.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRFovStencilDesc(ByteBuffer container) Creates aOVRFovStencilDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRFovStencilDesccalloc()Returns a newOVRFovStencilDescinstance allocated withmemCalloc.static OVRFovStencilDesc.Buffercalloc(int capacity) Returns a newOVRFovStencilDesc.Bufferinstance allocated withmemCalloc.static OVRFovStencilDesc.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRFovStencilDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovStencilDesccalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovStencilDescDeprecated.static OVRFovStencilDesc.BuffercallocStack(int capacity) Deprecated.static OVRFovStencilDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRFovStencilDesccallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRFovStencilDesccreate()Returns a newOVRFovStencilDescinstance allocated withBufferUtils.static OVRFovStencilDesc.Buffercreate(int capacity) Returns a newOVRFovStencilDesc.Bufferinstance allocated withBufferUtils.static OVRFovStencilDesccreate(long address) Returns a newOVRFovStencilDescinstance for the specified memory address.static OVRFovStencilDesc.Buffercreate(long address, int capacity) Create aOVRFovStencilDesc.Bufferinstance at the specified memory.static @Nullable OVRFovStencilDesccreateSafe(long address) static @Nullable OVRFovStencilDesc.BuffercreateSafe(long address, int capacity) intEye()Eye(int value) Sets the specified value to theEyefield.FovPort()typically FOV obtained fromGetRenderDescFovPort(Consumer<OVRFovPort> consumer) FovPort(OVRFovPort value) Copies the specifiedOVRFovPortto theFovPort()field.typicallyHmdToEyePose.Orientationobtained fromGetRenderDesc.HmdToEyeRotation(Consumer<OVRQuatf> consumer) Passes theHmdToEyeRotation()field to the specifiedConsumer.HmdToEyeRotation(OVRQuatf value) Copies the specifiedOVRQuatfto theHmdToEyeRotation()field.static OVRFovStencilDescmalloc()Returns a newOVRFovStencilDescinstance allocated withmemAlloc.static OVRFovStencilDesc.Buffermalloc(int capacity) Returns a newOVRFovStencilDesc.Bufferinstance allocated withmemAlloc.static OVRFovStencilDesc.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRFovStencilDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRFovStencilDescmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStack.static OVRFovStencilDescDeprecated.static OVRFovStencilDesc.BuffermallocStack(int capacity) Deprecated.static OVRFovStencilDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRFovStencilDescmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnEye(long struct) Unsafe version ofEye().static voidnEye(long struct, int value) Unsafe version ofEye.static OVRFovPortnFovPort(long struct) Unsafe version ofFovPort().static voidnFovPort(long struct, OVRFovPort value) Unsafe version ofFovPort.static OVRQuatfnHmdToEyeRotation(long struct) Unsafe version ofHmdToEyeRotation().static voidnHmdToEyeRotation(long struct, OVRQuatf value) Unsafe version ofHmdToEyeRotation.static intnStencilFlags(long struct) Unsafe version ofStencilFlags().static voidnStencilFlags(long struct, int value) Unsafe version ofStencilFlags.static intnStencilType(long struct) Unsafe version ofStencilType().static voidnStencilType(long struct, int value) Unsafe version ofStencilType.set(int StencilType, int StencilFlags, int Eye, OVRFovPort FovPort, OVRQuatf HmdToEyeRotation) Initializes this struct with the specified values.set(OVRFovStencilDesc src) Copies the specified struct data to this struct.intsizeof()intone or more of:FovStencilFlag_MeshOriginAtBottomLeftStencilFlags(int value) Sets the specified value to theStencilFlags()field.intStencilType(int value) Sets the specified value to theStencilType()field.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. -
STENCILTYPE
public static final int STENCILTYPEThe struct member offsets. -
STENCILFLAGS
public static final int STENCILFLAGSThe struct member offsets. -
EYE
public static final int EYEThe struct member offsets. -
FOVPORT
public static final int FOVPORTThe struct member offsets. -
HMDTOEYEROTATION
public static final int HMDTOEYEROTATIONThe struct member offsets.
-
-
Constructor Details
-
OVRFovStencilDesc
Creates aOVRFovStencilDescinstance 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<OVRFovStencilDesc>
-
StencilType
public int StencilType() -
StencilFlags
public int StencilFlags()one or more of:FovStencilFlag_MeshOriginAtBottomLeft -
Eye
public int Eye()- Returns:
- the value of the
Eyefield.
-
FovPort
typically FOV obtained fromGetRenderDesc -
HmdToEyeRotation
typicallyHmdToEyePose.Orientationobtained fromGetRenderDesc. Note: Currently unsupported, always treated as identity. -
StencilType
Sets the specified value to theStencilType()field. -
StencilFlags
Sets the specified value to theStencilFlags()field. -
Eye
Sets the specified value to theEyefield. -
FovPort
Copies the specifiedOVRFovPortto theFovPort()field. -
FovPort
-
HmdToEyeRotation
Copies the specifiedOVRQuatfto theHmdToEyeRotation()field. -
HmdToEyeRotation
Passes theHmdToEyeRotation()field to the specifiedConsumer. -
set
public OVRFovStencilDesc set(int StencilType, int StencilFlags, int Eye, OVRFovPort FovPort, OVRQuatf HmdToEyeRotation) 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 newOVRFovStencilDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRFovStencilDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRFovStencilDescinstance allocated withBufferUtils. -
create
Returns a newOVRFovStencilDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRFovStencilDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRFovStencilDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRFovStencilDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRFovStencilDesc.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 OVRFovStencilDesc.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 OVRFovStencilDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRFovStencilDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRFovStencilDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nStencilType
public static int nStencilType(long struct) Unsafe version ofStencilType(). -
nStencilFlags
public static int nStencilFlags(long struct) Unsafe version ofStencilFlags(). -
nEye
public static int nEye(long struct) Unsafe version ofEye(). -
nFovPort
Unsafe version ofFovPort(). -
nHmdToEyeRotation
Unsafe version ofHmdToEyeRotation(). -
nStencilType
public static void nStencilType(long struct, int value) Unsafe version ofStencilType. -
nStencilFlags
public static void nStencilFlags(long struct, int value) Unsafe version ofStencilFlags. -
nEye
public static void nEye(long struct, int value) Unsafe version ofEye. -
nFovPort
Unsafe version ofFovPort. -
nHmdToEyeRotation
Unsafe version ofHmdToEyeRotation.
-