Package org.lwjgl.ovr
Class OVRFovStencilDesc
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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 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
Modifier 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 size in bytes.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
ConstructorDescriptionOVRFovStencilDesc
(ByteBuffer container) Creates aOVRFovStencilDesc
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRFovStencilDesc
calloc()
Returns a newOVRFovStencilDesc
instance allocated withmemCalloc
.static OVRFovStencilDesc.Buffer
calloc
(int capacity) Returns a newOVRFovStencilDesc.Buffer
instance allocated withmemCalloc
.static OVRFovStencilDesc.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRFovStencilDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRFovStencilDesc
calloc
(MemoryStack stack) Returns a newOVRFovStencilDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRFovStencilDesc
Deprecated.static OVRFovStencilDesc.Buffer
callocStack
(int capacity) Deprecated.static OVRFovStencilDesc.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRFovStencilDesc
callocStack
(MemoryStack stack) Deprecated.static OVRFovStencilDesc
create()
Returns a newOVRFovStencilDesc
instance allocated withBufferUtils
.static OVRFovStencilDesc.Buffer
create
(int capacity) Returns a newOVRFovStencilDesc.Buffer
instance allocated withBufferUtils
.static OVRFovStencilDesc
create
(long address) Returns a newOVRFovStencilDesc
instance for the specified memory address.static OVRFovStencilDesc.Buffer
create
(long address, int capacity) Create aOVRFovStencilDesc.Buffer
instance at the specified memory.static OVRFovStencilDesc
createSafe
(long address) static OVRFovStencilDesc.Buffer
createSafe
(long address, int capacity) int
Eye()
Eye
(int value) Sets the specified value to theEye
field.FovPort()
typically FOV obtained fromGetRenderDesc
FovPort
(Consumer<OVRFovPort> consumer) FovPort
(OVRFovPort value) Copies the specifiedOVRFovPort
to theFovPort()
field.typicallyHmdToEyePose.Orientation
obtained fromGetRenderDesc
.HmdToEyeRotation
(Consumer<OVRQuatf> consumer) Passes theHmdToEyeRotation()
field to the specifiedConsumer
.HmdToEyeRotation
(OVRQuatf value) Copies the specifiedOVRQuatf
to theHmdToEyeRotation()
field.static OVRFovStencilDesc
malloc()
Returns a newOVRFovStencilDesc
instance allocated withmemAlloc
.static OVRFovStencilDesc.Buffer
malloc
(int capacity) Returns a newOVRFovStencilDesc.Buffer
instance allocated withmemAlloc
.static OVRFovStencilDesc.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRFovStencilDesc.Buffer
instance allocated on the specifiedMemoryStack
.static OVRFovStencilDesc
malloc
(MemoryStack stack) Returns a newOVRFovStencilDesc
instance allocated on the specifiedMemoryStack
.static OVRFovStencilDesc
Deprecated.static OVRFovStencilDesc.Buffer
mallocStack
(int capacity) Deprecated.static OVRFovStencilDesc.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRFovStencilDesc
mallocStack
(MemoryStack stack) Deprecated.static int
nEye
(long struct) Unsafe version ofEye()
.static void
nEye
(long struct, int value) Unsafe version ofEye
.static OVRFovPort
nFovPort
(long struct) Unsafe version ofFovPort()
.static void
nFovPort
(long struct, OVRFovPort value) Unsafe version ofFovPort
.static OVRQuatf
nHmdToEyeRotation
(long struct) Unsafe version ofHmdToEyeRotation()
.static void
nHmdToEyeRotation
(long struct, OVRQuatf value) Unsafe version ofHmdToEyeRotation
.static int
nStencilFlags
(long struct) Unsafe version ofStencilFlags()
.static void
nStencilFlags
(long struct, int value) Unsafe version ofStencilFlags
.static int
nStencilType
(long struct) Unsafe version ofStencilType()
.static void
nStencilType
(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.int
sizeof()
Returnssizeof(struct)
.int
one or more of:FovStencilFlag_MeshOriginAtBottomLeft
StencilFlags
(int value) Sets the specified value to theStencilFlags()
field.int
StencilType
(int value) Sets the specified value to theStencilType()
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. -
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 aOVRFovStencilDesc
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<OVRFovStencilDesc>
-
StencilType
public int StencilType() -
StencilFlags
public int StencilFlags()one or more of:FovStencilFlag_MeshOriginAtBottomLeft
-
Eye
public int Eye()- Returns:
- the value of the
Eye
field.
-
FovPort
typically FOV obtained fromGetRenderDesc
-
HmdToEyeRotation
typicallyHmdToEyePose.Orientation
obtained 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 theEye
field. -
FovPort
Copies the specifiedOVRFovPort
to theFovPort()
field. -
FovPort
-
HmdToEyeRotation
Copies the specifiedOVRQuatf
to 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 newOVRFovStencilDesc
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRFovStencilDesc
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRFovStencilDesc
instance allocated withBufferUtils
. -
create
Returns a newOVRFovStencilDesc
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRFovStencilDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRFovStencilDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRFovStencilDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRFovStencilDesc.Buffer
instance 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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVRFovStencilDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRFovStencilDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-