Package org.lwjgl.ovr
Class OVRLayerUnion
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Union that combines
ovrLayer
types in a way that allows them to be used in a polymorphic way.
Layout
union ovrLayer_Union {
ovrLayerHeader
Header()
;
ovrLayerEyeFov
EyeFov;
ovrLayerEyeFovDepth
EyeFovDepth;
ovrLayerEyeMatrix
EyeMatrix;
ovrLayerEyeFovMultires
Multires;
ovrLayerCylinder
Cylinder;
ovrLayerCube
Cube;
ovrLayerQuad
Quad;
}
-
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 member offsets.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 member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVRLayerUnion
(ByteBuffer container) Creates aOVRLayerUnion
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRLayerUnion
calloc()
Returns a newOVRLayerUnion
instance allocated withmemCalloc
.static OVRLayerUnion.Buffer
calloc
(int capacity) Returns a newOVRLayerUnion.Buffer
instance allocated withmemCalloc
.static OVRLayerUnion.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRLayerUnion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerUnion
calloc
(MemoryStack stack) Returns a newOVRLayerUnion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRLayerUnion
Deprecated.static OVRLayerUnion.Buffer
callocStack
(int capacity) Deprecated.static OVRLayerUnion.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRLayerUnion
callocStack
(MemoryStack stack) Deprecated.static OVRLayerUnion
create()
Returns a newOVRLayerUnion
instance allocated withBufferUtils
.static OVRLayerUnion.Buffer
create
(int capacity) Returns a newOVRLayerUnion.Buffer
instance allocated withBufferUtils
.static OVRLayerUnion
create
(long address) Returns a newOVRLayerUnion
instance for the specified memory address.static OVRLayerUnion.Buffer
create
(long address, int capacity) Create aOVRLayerUnion.Buffer
instance at the specified memory.static OVRLayerUnion
createSafe
(long address) static OVRLayerUnion.Buffer
createSafe
(long address, int capacity) Cube()
Cube
(Consumer<OVRLayerCube> consumer) Passes theCube
field to the specifiedConsumer
.Cube
(OVRLayerCube value) Copies the specifiedOVRLayerCube
to theCube
field.Cylinder()
Cylinder
(Consumer<OVRLayerCylinder> consumer) Passes theCylinder
field to the specifiedConsumer
.Cylinder
(OVRLayerCylinder value) Copies the specifiedOVRLayerCylinder
to theCylinder
field.EyeFov()
EyeFov
(Consumer<OVRLayerEyeFov> consumer) Passes theEyeFov
field to the specifiedConsumer
.EyeFov
(OVRLayerEyeFov value) Copies the specifiedOVRLayerEyeFov
to theEyeFov
field.EyeFovDepth
(Consumer<OVRLayerEyeFovDepth> consumer) Passes theEyeFovDepth
field to the specifiedConsumer
.EyeFovDepth
(OVRLayerEyeFovDepth value) Copies the specifiedOVRLayerEyeFovDepth
to theEyeFovDepth
field.EyeMatrix
(Consumer<OVRLayerEyeMatrix> consumer) Passes theEyeMatrix
field to the specifiedConsumer
.EyeMatrix
(OVRLayerEyeMatrix value) Copies the specifiedOVRLayerEyeMatrix
to theEyeMatrix
field.Header()
the layer headerHeader
(Consumer<OVRLayerHeader> consumer) Header
(OVRLayerHeader value) Copies the specifiedOVRLayerHeader
to theHeader()
field.static OVRLayerUnion
malloc()
Returns a newOVRLayerUnion
instance allocated withmemAlloc
.static OVRLayerUnion.Buffer
malloc
(int capacity) Returns a newOVRLayerUnion.Buffer
instance allocated withmemAlloc
.static OVRLayerUnion.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRLayerUnion.Buffer
instance allocated on the specifiedMemoryStack
.static OVRLayerUnion
malloc
(MemoryStack stack) Returns a newOVRLayerUnion
instance allocated on the specifiedMemoryStack
.static OVRLayerUnion
Deprecated.static OVRLayerUnion.Buffer
mallocStack
(int capacity) Deprecated.static OVRLayerUnion.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRLayerUnion
mallocStack
(MemoryStack stack) Deprecated.Multires()
Multires
(Consumer<OVRLayerEyeFovMultires> consumer) Passes theMultires
field to the specifiedConsumer
.Multires
(OVRLayerEyeFovMultires value) Copies the specifiedOVRLayerEyeFovMultires
to theMultires
field.static OVRLayerCube
nCube
(long struct) Unsafe version ofCube()
.static void
nCube
(long struct, OVRLayerCube value) Unsafe version ofCube
.static OVRLayerCylinder
nCylinder
(long struct) Unsafe version ofCylinder()
.static void
nCylinder
(long struct, OVRLayerCylinder value) Unsafe version ofCylinder
.static OVRLayerEyeFov
nEyeFov
(long struct) Unsafe version ofEyeFov()
.static void
nEyeFov
(long struct, OVRLayerEyeFov value) Unsafe version ofEyeFov
.static OVRLayerEyeFovDepth
nEyeFovDepth
(long struct) Unsafe version ofEyeFovDepth()
.static void
nEyeFovDepth
(long struct, OVRLayerEyeFovDepth value) Unsafe version ofEyeFovDepth
.static OVRLayerEyeMatrix
nEyeMatrix
(long struct) Unsafe version ofEyeMatrix()
.static void
nEyeMatrix
(long struct, OVRLayerEyeMatrix value) Unsafe version ofEyeMatrix
.static OVRLayerHeader
nHeader
(long struct) Unsafe version ofHeader()
.static void
nHeader
(long struct, OVRLayerHeader value) Unsafe version ofHeader
.static OVRLayerEyeFovMultires
nMultires
(long struct) Unsafe version ofMultires()
.static void
nMultires
(long struct, OVRLayerEyeFovMultires value) Unsafe version ofMultires
.static OVRLayerQuad
nQuad
(long struct) Unsafe version ofQuad()
.static void
nQuad
(long struct, OVRLayerQuad value) Unsafe version ofQuad
.Quad()
Quad
(Consumer<OVRLayerQuad> consumer) Passes theQuad
field to the specifiedConsumer
.Quad
(OVRLayerQuad value) Copies the specifiedOVRLayerQuad
to theQuad
field.set
(OVRLayerUnion src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
HEADER
public static final int HEADERThe struct member offsets. -
EYEFOV
public static final int EYEFOVThe struct member offsets. -
EYEFOVDEPTH
public static final int EYEFOVDEPTHThe struct member offsets. -
EYEMATRIX
public static final int EYEMATRIXThe struct member offsets. -
MULTIRES
public static final int MULTIRESThe struct member offsets. -
CYLINDER
public static final int CYLINDERThe struct member offsets. -
CUBE
public static final int CUBEThe struct member offsets. -
QUAD
public static final int QUADThe struct member offsets.
-
-
Constructor Details
-
OVRLayerUnion
Creates aOVRLayerUnion
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<OVRLayerUnion>
-
Header
the layer header -
EyeFov
- Returns:
- a
OVRLayerEyeFov
view of theEyeFov
field.
-
EyeFovDepth
- Returns:
- a
OVRLayerEyeFovDepth
view of theEyeFovDepth
field.
-
EyeMatrix
- Returns:
- a
OVRLayerEyeMatrix
view of theEyeMatrix
field.
-
Multires
- Returns:
- a
OVRLayerEyeFovMultires
view of theMultires
field.
-
Cylinder
- Returns:
- a
OVRLayerCylinder
view of theCylinder
field.
-
Cube
- Returns:
- a
OVRLayerCube
view of theCube
field.
-
Quad
- Returns:
- a
OVRLayerQuad
view of theQuad
field.
-
Header
Copies the specifiedOVRLayerHeader
to theHeader()
field. -
Header
-
EyeFov
Copies the specifiedOVRLayerEyeFov
to theEyeFov
field. -
EyeFov
Passes theEyeFov
field to the specifiedConsumer
. -
EyeFovDepth
Copies the specifiedOVRLayerEyeFovDepth
to theEyeFovDepth
field. -
EyeFovDepth
Passes theEyeFovDepth
field to the specifiedConsumer
. -
EyeMatrix
Copies the specifiedOVRLayerEyeMatrix
to theEyeMatrix
field. -
EyeMatrix
Passes theEyeMatrix
field to the specifiedConsumer
. -
Multires
Copies the specifiedOVRLayerEyeFovMultires
to theMultires
field. -
Multires
Passes theMultires
field to the specifiedConsumer
. -
Cylinder
Copies the specifiedOVRLayerCylinder
to theCylinder
field. -
Cylinder
Passes theCylinder
field to the specifiedConsumer
. -
Cube
Copies the specifiedOVRLayerCube
to theCube
field. -
Cube
Passes theCube
field to the specifiedConsumer
. -
Quad
Copies the specifiedOVRLayerQuad
to theQuad
field. -
Quad
Passes theQuad
field to the specifiedConsumer
. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRLayerUnion
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRLayerUnion
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRLayerUnion
instance allocated withBufferUtils
. -
create
Returns a newOVRLayerUnion
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRLayerUnion.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRLayerUnion.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRLayerUnion.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRLayerUnion.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 newOVRLayerUnion
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRLayerUnion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRLayerUnion.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRLayerUnion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nHeader
Unsafe version ofHeader()
. -
nEyeFov
Unsafe version ofEyeFov()
. -
nEyeFovDepth
Unsafe version ofEyeFovDepth()
. -
nEyeMatrix
Unsafe version ofEyeMatrix()
. -
nMultires
Unsafe version ofMultires()
. -
nCylinder
Unsafe version ofCylinder()
. -
nCube
Unsafe version ofCube()
. -
nQuad
Unsafe version ofQuad()
. -
nHeader
Unsafe version ofHeader
. -
nEyeFov
Unsafe version ofEyeFov
. -
nEyeFovDepth
Unsafe version ofEyeFovDepth
. -
nEyeMatrix
Unsafe version ofEyeMatrix
. -
nMultires
Unsafe version ofMultires
. -
nCylinder
Unsafe version ofCylinder
. -
nCube
Unsafe version ofCube
. -
nQuad
Unsafe version ofQuad
.
-