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.Layout
struct ovrFovStencilDesc { ovrFovStencilTypeStencilType(); uint32_tStencilFlags(); 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 Deprecated 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 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 OVRFovStencilDesccallocStack()Deprecated.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 OVRFovStencilDesccreateSafe(long address)static OVRFovStencilDesc.BuffercreateSafe(long address, int capacity)intEye()OVRFovStencilDescEye(int value)Sets the specified value to theEyefield.OVRFovPortFovPort()typically FOV obtained fromGetRenderDescOVRFovStencilDescFovPort(java.util.function.Consumer<OVRFovPort> consumer)Passes theFovPort()field to the specifiedConsumer.OVRFovStencilDescFovPort(OVRFovPort value)Copies the specifiedOVRFovPortto theFovPort()field.OVRQuatfHmdToEyeRotation()typicallyHmdToEyePose.Orientationobtained fromGetRenderDesc.OVRFovStencilDescHmdToEyeRotation(java.util.function.Consumer<OVRQuatf> consumer)Passes theHmdToEyeRotation()field to the specifiedConsumer.OVRFovStencilDescHmdToEyeRotation(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 OVRFovStencilDescmallocStack()Deprecated.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.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()one or more of:FovStencilFlag_MeshOriginAtBottomLeftOVRFovStencilDescStencilFlags(int value)Sets the specified value to theStencilFlags()field.intStencilType()OVRFovStencilDescStencilType(int value)Sets the specified value to theStencilType()field.
-
-
-
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()
-
StencilFlags
public int StencilFlags()
one or more of:FovStencilFlag_MeshOriginAtBottomLeft
-
Eye
public int Eye()
- Returns:
- the value of the
Eyefield.
-
FovPort
public OVRFovPort FovPort()
typically FOV obtained fromGetRenderDesc
-
HmdToEyeRotation
public OVRQuatf HmdToEyeRotation()
typicallyHmdToEyePose.Orientationobtained fromGetRenderDesc. Note: Currently unsupported, always treated as identity.
-
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 theEyefield.
-
FovPort
public OVRFovStencilDesc FovPort(OVRFovPort value)
Copies the specifiedOVRFovPortto 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 specifiedOVRQuatfto 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 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
@Deprecated public static OVRFovStencilDesc mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRFovStencilDesc callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRFovStencilDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRFovStencilDesc callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRFovStencilDesc.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRFovStencilDesc.Buffer callocStack(int capacity)
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
public static OVRFovStencilDesc malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRFovStencilDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRFovStencilDesc calloc(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
-
malloc
public static OVRFovStencilDesc.Buffer malloc(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
-
calloc
public static OVRFovStencilDesc.Buffer calloc(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.
-
-