Package org.lwjgl.ovr
Class OVRViewportStencilDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRViewportStencilDesc
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRViewportStencilDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
FovPort– typically Fov obtained fromGetRenderDescHmdToEyeRotation– typicallyHmdToEyePose.Orientationobtained fromGetRenderDesc
Layout
struct ovrViewportStencilDesc { ovrViewportStencilType StencilType; ovrEyeType Eye;ovrFovPortFovPort;ovrQuatfHmdToEyeRotation; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRViewportStencilDesc.BufferAn array ofOVRViewportStencilDescstructs.
-
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 intSTENCILTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description OVRViewportStencilDesc(java.nio.ByteBuffer container)Creates aOVRViewportStencilDescinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRViewportStencilDesccalloc()Returns a newOVRViewportStencilDescinstance allocated withmemCalloc.static OVRViewportStencilDesc.Buffercalloc(int capacity)Returns a newOVRViewportStencilDesc.Bufferinstance allocated withmemCalloc.static OVRViewportStencilDesccallocStack()Returns a newOVRViewportStencilDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRViewportStencilDesc.BuffercallocStack(int capacity)Returns a newOVRViewportStencilDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRViewportStencilDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRViewportStencilDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRViewportStencilDesccallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRViewportStencilDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRViewportStencilDesccreate()Returns a newOVRViewportStencilDescinstance allocated withBufferUtils.static OVRViewportStencilDesc.Buffercreate(int capacity)Returns a newOVRViewportStencilDesc.Bufferinstance allocated withBufferUtils.static OVRViewportStencilDesccreate(long address)Returns a newOVRViewportStencilDescinstance for the specified memory address.static OVRViewportStencilDesc.Buffercreate(long address, int capacity)Create aOVRViewportStencilDesc.Bufferinstance at the specified memory.static OVRViewportStencilDesccreateSafe(long address)static OVRViewportStencilDesc.BuffercreateSafe(long address, int capacity)intEye()Returns the value of theEyefield.OVRViewportStencilDescEye(int value)Sets the specified value to theEyefield.OVRFovPortFovPort()Returns aOVRFovPortview of theFovPortfield.OVRViewportStencilDescFovPort(java.util.function.Consumer<OVRFovPort> consumer)Passes theFovPortfield to the specifiedConsumer.OVRViewportStencilDescFovPort(OVRFovPort value)Copies the specifiedOVRFovPortto theFovPortfield.OVRQuatfHmdToEyeRotation()Returns aOVRQuatfview of theHmdToEyeRotationfield.OVRViewportStencilDescHmdToEyeRotation(java.util.function.Consumer<OVRQuatf> consumer)Passes theHmdToEyeRotationfield to the specifiedConsumer.OVRViewportStencilDescHmdToEyeRotation(OVRQuatf value)Copies the specifiedOVRQuatfto theHmdToEyeRotationfield.static OVRViewportStencilDescmalloc()Returns a newOVRViewportStencilDescinstance allocated withmemAlloc.static OVRViewportStencilDesc.Buffermalloc(int capacity)Returns a newOVRViewportStencilDesc.Bufferinstance allocated withmemAlloc.static OVRViewportStencilDescmallocStack()Returns a newOVRViewportStencilDescinstance allocated on the thread-localMemoryStack.static OVRViewportStencilDesc.BuffermallocStack(int capacity)Returns a newOVRViewportStencilDesc.Bufferinstance allocated on the thread-localMemoryStack.static OVRViewportStencilDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRViewportStencilDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRViewportStencilDescmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRViewportStencilDescinstance 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 intnStencilType(long struct)Unsafe version ofStencilType().static voidnStencilType(long struct, int value)Unsafe version ofStencilType.OVRViewportStencilDescset(int StencilType, int Eye, OVRFovPort FovPort, OVRQuatf HmdToEyeRotation)Initializes this struct with the specified values.OVRViewportStencilDescset(OVRViewportStencilDesc src)Copies the specified struct data to this struct.intsizeof()intStencilType()Returns the value of theStencilTypefield.OVRViewportStencilDescStencilType(int value)Sets the specified value to theStencilTypefield.
-
-
-
Constructor Detail
-
OVRViewportStencilDesc
public OVRViewportStencilDesc(java.nio.ByteBuffer container)
Creates aOVRViewportStencilDescinstance 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.
-
Eye
public int Eye()
Returns the value of theEyefield.
-
FovPort
public OVRFovPort FovPort()
Returns aOVRFovPortview of theFovPortfield.
-
FovPort
public OVRViewportStencilDesc FovPort(java.util.function.Consumer<OVRFovPort> consumer)
Passes theFovPortfield to the specifiedConsumer.
-
HmdToEyeRotation
public OVRQuatf HmdToEyeRotation()
Returns aOVRQuatfview of theHmdToEyeRotationfield.
-
HmdToEyeRotation
public OVRViewportStencilDesc HmdToEyeRotation(java.util.function.Consumer<OVRQuatf> consumer)
Passes theHmdToEyeRotationfield to the specifiedConsumer.
-
StencilType
public OVRViewportStencilDesc StencilType(int value)
Sets the specified value to theStencilTypefield.
-
Eye
public OVRViewportStencilDesc Eye(int value)
Sets the specified value to theEyefield.
-
FovPort
public OVRViewportStencilDesc FovPort(OVRFovPort value)
Copies the specifiedOVRFovPortto theFovPortfield.
-
HmdToEyeRotation
public OVRViewportStencilDesc HmdToEyeRotation(OVRQuatf value)
Copies the specifiedOVRQuatfto theHmdToEyeRotationfield.
-
set
public OVRViewportStencilDesc set(int StencilType, int Eye, OVRFovPort FovPort, OVRQuatf HmdToEyeRotation)
Initializes this struct with the specified values.
-
set
public OVRViewportStencilDesc set(OVRViewportStencilDesc src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRViewportStencilDesc malloc()
Returns a newOVRViewportStencilDescinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRViewportStencilDesc calloc()
Returns a newOVRViewportStencilDescinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRViewportStencilDesc create()
Returns a newOVRViewportStencilDescinstance allocated withBufferUtils.
-
create
public static OVRViewportStencilDesc create(long address)
Returns a newOVRViewportStencilDescinstance for the specified memory address.
-
createSafe
@Nullable public static OVRViewportStencilDesc createSafe(long address)
-
malloc
public static OVRViewportStencilDesc.Buffer malloc(int capacity)
Returns a newOVRViewportStencilDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRViewportStencilDesc.Buffer calloc(int capacity)
Returns a newOVRViewportStencilDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRViewportStencilDesc.Buffer create(int capacity)
Returns a newOVRViewportStencilDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRViewportStencilDesc.Buffer create(long address, int capacity)
Create aOVRViewportStencilDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRViewportStencilDesc.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRViewportStencilDesc mallocStack()
Returns a newOVRViewportStencilDescinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRViewportStencilDesc callocStack()
Returns a newOVRViewportStencilDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRViewportStencilDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRViewportStencilDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRViewportStencilDesc callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRViewportStencilDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRViewportStencilDesc.Buffer mallocStack(int capacity)
Returns a newOVRViewportStencilDesc.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRViewportStencilDesc.Buffer callocStack(int capacity)
Returns a newOVRViewportStencilDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRViewportStencilDesc.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRViewportStencilDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRViewportStencilDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRViewportStencilDesc.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().
-
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.
-
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.
-
-