Package org.lwjgl.ovr
Class OVRFovStencilDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRFovStencilDesc
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class OVRFovStencilDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Fov-stencil mesh descriptor passed into the functionGetFovStencil
.Member documentation
StencilType
– one of:FovStencil_HiddenArea
FovStencil_VisibleArea
FovStencil_BorderLine
FovStencil_VisibleRectangle
StencilFlags
– one or more of:FovStencilFlag_MeshOriginAtBottomLeft
FovPort
– typically FOV obtained fromGetRenderDesc
HmdToEyeRotation
– typicallyHmdToEyePose.Orientation
obtained fromGetRenderDesc
. Note: Currently unsupported, always treated as identity.
Layout
struct ovrFovStencilDesc { ovrFovStencilType StencilType; uint32_t StencilFlags; ovrEyeType Eye;
ovrFovPort
FovPort;ovrQuatf
HmdToEyeRotation; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRFovStencilDesc.Buffer
An array ofOVRFovStencilDesc
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
EYE
FOVPORT
HMDTOEYEROTATIONThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STENCILFLAGS
STENCILTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRFovStencilDesc(java.nio.ByteBuffer container)
Creates aOVRFovStencilDesc
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRFovStencilDesc
calloc()
Returns a newOVRFovStencilDesc
instance allocated withmemCalloc
.static OVRFovStencilDesc.Buffer
calloc(int capacity)
Returns a newOVRFovStencilDesc.Buffer
instance allocated withmemCalloc
.static OVRFovStencilDesc
callocStack()
Returns a newOVRFovStencilDesc
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRFovStencilDesc.Buffer
callocStack(int capacity)
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRFovStencilDesc.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRFovStencilDesc
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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()
Returns the value of theEye
field.OVRFovStencilDesc
Eye(int value)
Sets the specified value to theEye
field.OVRFovPort
FovPort()
Returns aOVRFovPort
view of theFovPort
field.OVRFovStencilDesc
FovPort(java.util.function.Consumer<OVRFovPort> consumer)
Passes theFovPort
field to the specifiedConsumer
.OVRFovStencilDesc
FovPort(OVRFovPort value)
Copies the specifiedOVRFovPort
to theFovPort
field.OVRQuatf
HmdToEyeRotation()
Returns aOVRQuatf
view of theHmdToEyeRotation
field.OVRFovStencilDesc
HmdToEyeRotation(java.util.function.Consumer<OVRQuatf> consumer)
Passes theHmdToEyeRotation
field to the specifiedConsumer
.OVRFovStencilDesc
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
mallocStack()
Returns a newOVRFovStencilDesc
instance allocated on the thread-localMemoryStack
.static OVRFovStencilDesc.Buffer
mallocStack(int capacity)
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the thread-localMemoryStack
.static OVRFovStencilDesc.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the specifiedMemoryStack
.static OVRFovStencilDesc
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDesc
instance allocated on the specifiedMemoryStack
.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
.OVRFovStencilDesc
set(int StencilType, int StencilFlags, int Eye, OVRFovPort FovPort, OVRQuatf HmdToEyeRotation)
Initializes this struct with the specified values.OVRFovStencilDesc
set(OVRFovStencilDesc src)
Copies the specified struct data to this struct.int
sizeof()
int
StencilFlags()
Returns the value of theStencilFlags
field.OVRFovStencilDesc
StencilFlags(int value)
Sets the specified value to theStencilFlags
field.int
StencilType()
Returns the value of theStencilType
field.OVRFovStencilDesc
StencilType(int value)
Sets the specified value to theStencilType
field.
-
-
-
Constructor Detail
-
OVRFovStencilDesc
public OVRFovStencilDesc(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
StencilType
public int StencilType()
Returns the value of theStencilType
field.
-
StencilFlags
public int StencilFlags()
Returns the value of theStencilFlags
field.
-
Eye
public int Eye()
Returns the value of theEye
field.
-
FovPort
public OVRFovPort FovPort()
Returns aOVRFovPort
view of theFovPort
field.
-
HmdToEyeRotation
public OVRQuatf HmdToEyeRotation()
Returns aOVRQuatf
view of theHmdToEyeRotation
field.
-
StencilType
public OVRFovStencilDesc StencilType(int value)
Sets the specified value to theStencilType
field.
-
StencilFlags
public OVRFovStencilDesc StencilFlags(int value)
Sets the specified value to theStencilFlags
field.
-
Eye
public OVRFovStencilDesc Eye(int value)
Sets the specified value to theEye
field.
-
FovPort
public OVRFovStencilDesc FovPort(OVRFovPort value)
Copies the specifiedOVRFovPort
to theFovPort
field.
-
FovPort
public OVRFovStencilDesc FovPort(java.util.function.Consumer<OVRFovPort> consumer)
Passes theFovPort
field to the specifiedConsumer
.
-
HmdToEyeRotation
public OVRFovStencilDesc HmdToEyeRotation(OVRQuatf value)
Copies the specifiedOVRQuatf
to theHmdToEyeRotation
field.
-
HmdToEyeRotation
public OVRFovStencilDesc HmdToEyeRotation(java.util.function.Consumer<OVRQuatf> consumer)
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
public OVRFovStencilDesc set(OVRFovStencilDesc src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static OVRFovStencilDesc malloc()
Returns a newOVRFovStencilDesc
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRFovStencilDesc calloc()
Returns a newOVRFovStencilDesc
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRFovStencilDesc create()
Returns a newOVRFovStencilDesc
instance allocated withBufferUtils
.
-
create
public static OVRFovStencilDesc create(long address)
Returns a newOVRFovStencilDesc
instance for the specified memory address.
-
createSafe
@Nullable public static OVRFovStencilDesc createSafe(long address)
-
malloc
public static OVRFovStencilDesc.Buffer malloc(int capacity)
Returns a newOVRFovStencilDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRFovStencilDesc.Buffer calloc(int capacity)
Returns a newOVRFovStencilDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRFovStencilDesc.Buffer create(int capacity)
Returns a newOVRFovStencilDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRFovStencilDesc.Buffer create(long address, int capacity)
Create aOVRFovStencilDesc.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static OVRFovStencilDesc.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRFovStencilDesc mallocStack()
Returns a newOVRFovStencilDesc
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRFovStencilDesc callocStack()
Returns a newOVRFovStencilDesc
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRFovStencilDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRFovStencilDesc callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static OVRFovStencilDesc.Buffer mallocStack(int capacity)
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRFovStencilDesc.Buffer callocStack(int capacity)
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRFovStencilDesc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static OVRFovStencilDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
public static OVRFovPort nFovPort(long struct)
Unsafe version ofFovPort()
.
-
nHmdToEyeRotation
public static OVRQuatf nHmdToEyeRotation(long struct)
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
public static void nFovPort(long struct, OVRFovPort value)
Unsafe version ofFovPort
.
-
nHmdToEyeRotation
public static void nHmdToEyeRotation(long struct, OVRQuatf value)
Unsafe version ofHmdToEyeRotation
.
-
-