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.NativeResourceFov-stencil mesh descriptor passed into the functionGetFovStencil.Member documentation
StencilType– one of:FovStencil_HiddenAreaFovStencil_VisibleAreaFovStencil_BorderLineFovStencil_VisibleRectangleStencilFlags– one or more of:FovStencilFlag_MeshOriginAtBottomLeftFovPort– typically FOV obtained fromGetRenderDescHmdToEyeRotation– typicallyHmdToEyePose.Orientationobtained fromGetRenderDesc. Note: Currently unsupported, always treated as identity.
Layout
struct ovrFovStencilDesc { ovrFovStencilType StencilType; uint32_t StencilFlags; ovrEyeType Eye;ovrFovPortFovPort;ovrQuatfHmdToEyeRotation; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRFovStencilDesc.BufferAn array ofOVRFovStencilDescstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEYE
FOVPORT
HMDTOEYEROTATIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTENCILFLAGS
STENCILTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRFovStencilDesc(java.nio.ByteBuffer container)Creates aOVRFovStencilDescinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRFovStencilDesccalloc()Returns a newOVRFovStencilDescinstance allocated withmemCalloc.static OVRFovStencilDesc.Buffercalloc(int capacity)Returns a newOVRFovStencilDesc.Bufferinstance allocated withmemCalloc.static OVRFovStencilDesccallocStack()Returns a newOVRFovStencilDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRFovStencilDesc.BuffercallocStack(int capacity)Returns a newOVRFovStencilDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRFovStencilDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRFovStencilDesccallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 OVRFovStencilDesccreateSafe(long address)static OVRFovStencilDesc.BuffercreateSafe(long address, int capacity)intEye()Returns the value of theEyefield.OVRFovStencilDescEye(int value)Sets the specified value to theEyefield.OVRFovPortFovPort()Returns aOVRFovPortview of theFovPortfield.OVRFovStencilDescFovPort(java.util.function.Consumer<OVRFovPort> consumer)Passes theFovPortfield to the specifiedConsumer.OVRFovStencilDescFovPort(OVRFovPort value)Copies the specifiedOVRFovPortto theFovPortfield.OVRQuatfHmdToEyeRotation()Returns aOVRQuatfview of theHmdToEyeRotationfield.OVRFovStencilDescHmdToEyeRotation(java.util.function.Consumer<OVRQuatf> consumer)Passes theHmdToEyeRotationfield to the specifiedConsumer.OVRFovStencilDescHmdToEyeRotation(OVRQuatf value)Copies the specifiedOVRQuatfto theHmdToEyeRotationfield.static OVRFovStencilDescmalloc()Returns a newOVRFovStencilDescinstance allocated withmemAlloc.static OVRFovStencilDesc.Buffermalloc(int capacity)Returns a newOVRFovStencilDesc.Bufferinstance allocated withmemAlloc.static OVRFovStencilDescmallocStack()Returns a newOVRFovStencilDescinstance allocated on the thread-localMemoryStack.static OVRFovStencilDesc.BuffermallocStack(int capacity)Returns a newOVRFovStencilDesc.Bufferinstance allocated on the thread-localMemoryStack.static OVRFovStencilDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRFovStencilDescmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStack.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.OVRFovStencilDescset(int StencilType, int StencilFlags, int Eye, OVRFovPort FovPort, OVRQuatf HmdToEyeRotation)Initializes this struct with the specified values.OVRFovStencilDescset(OVRFovStencilDesc src)Copies the specified struct data to this struct.intsizeof()intStencilFlags()Returns the value of theStencilFlagsfield.OVRFovStencilDescStencilFlags(int value)Sets the specified value to theStencilFlagsfield.intStencilType()Returns the value of theStencilTypefield.OVRFovStencilDescStencilType(int value)Sets the specified value to theStencilTypefield.
-
-
-
Constructor Detail
-
OVRFovStencilDesc
public OVRFovStencilDesc(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
StencilType
public int StencilType()
Returns the value of theStencilTypefield.
-
StencilFlags
public int StencilFlags()
Returns the value of theStencilFlagsfield.
-
Eye
public int Eye()
Returns the value of theEyefield.
-
FovPort
public OVRFovPort FovPort()
Returns aOVRFovPortview of theFovPortfield.
-
HmdToEyeRotation
public OVRQuatf HmdToEyeRotation()
Returns aOVRQuatfview of theHmdToEyeRotationfield.
-
StencilType
public OVRFovStencilDesc StencilType(int value)
Sets the specified value to theStencilTypefield.
-
StencilFlags
public OVRFovStencilDesc StencilFlags(int value)
Sets the specified value to theStencilFlagsfield.
-
Eye
public OVRFovStencilDesc Eye(int value)
Sets the specified value to theEyefield.
-
FovPort
public OVRFovStencilDesc FovPort(OVRFovPort value)
Copies the specifiedOVRFovPortto theFovPortfield.
-
FovPort
public OVRFovStencilDesc FovPort(java.util.function.Consumer<OVRFovPort> consumer)
Passes theFovPortfield to the specifiedConsumer.
-
HmdToEyeRotation
public OVRFovStencilDesc HmdToEyeRotation(OVRQuatf value)
Copies the specifiedOVRQuatfto theHmdToEyeRotationfield.
-
HmdToEyeRotation
public OVRFovStencilDesc HmdToEyeRotation(java.util.function.Consumer<OVRQuatf> consumer)
Passes theHmdToEyeRotationfield 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 newOVRFovStencilDescinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRFovStencilDesc calloc()
Returns a newOVRFovStencilDescinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRFovStencilDesc create()
Returns a newOVRFovStencilDescinstance allocated withBufferUtils.
-
create
public static OVRFovStencilDesc create(long address)
Returns a newOVRFovStencilDescinstance for the specified memory address.
-
createSafe
@Nullable public static OVRFovStencilDesc createSafe(long address)
-
malloc
public static OVRFovStencilDesc.Buffer malloc(int capacity)
Returns a newOVRFovStencilDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRFovStencilDesc.Buffer calloc(int capacity)
Returns a newOVRFovStencilDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRFovStencilDesc.Buffer create(int capacity)
Returns a newOVRFovStencilDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRFovStencilDesc.Buffer create(long address, int capacity)
Create aOVRFovStencilDesc.Bufferinstance 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 newOVRFovStencilDescinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRFovStencilDesc callocStack()
Returns a newOVRFovStencilDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRFovStencilDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRFovStencilDesc callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRFovStencilDesc.Buffer callocStack(int capacity)
Returns a newOVRFovStencilDesc.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-