Package org.lwjgl.ovr
Class OVRLayerCube
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRLayerCube>
org.lwjgl.ovr.OVRLayerCube
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRLayerCube
extends org.lwjgl.system.Struct<OVRLayerCube>
implements org.lwjgl.system.NativeResource
Describes a layer of type
LayerType_Cube which is a single timewarped cubemap at infinity. When looking down the recentered origin's -Z axis, +X face
is left and +Y face is up. Similarly, if headlocked the +X face is left, +Y face is up and -Z face is forward. Note that the coordinate system is
left-handed.
LayerFlag_TextureOriginAtBottomLeft flag is not supported by ovrLayerCube.
Layout
struct ovrLayerCube {
ovrLayerHeader Header();
ovrQuatf Orientation();
ovrTextureSwapChain CubeMapTexture();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRLayerCube(ByteBuffer container) Creates aOVRLayerCubeinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRLayerCubecalloc()Returns a newOVRLayerCubeinstance allocated withmemCalloc.static OVRLayerCube.Buffercalloc(int capacity) Returns a newOVRLayerCube.Bufferinstance allocated withmemCalloc.static OVRLayerCube.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerCube.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerCubecalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerCubeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRLayerCubeDeprecated.static OVRLayerCube.BuffercallocStack(int capacity) Deprecated.static OVRLayerCube.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerCubecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerCubecreate()Returns a newOVRLayerCubeinstance allocated withBufferUtils.static OVRLayerCube.Buffercreate(int capacity) Returns a newOVRLayerCube.Bufferinstance allocated withBufferUtils.static OVRLayerCubecreate(long address) Returns a newOVRLayerCubeinstance for the specified memory address.static OVRLayerCube.Buffercreate(long address, int capacity) Create aOVRLayerCube.Bufferinstance at the specified memory.static @Nullable OVRLayerCubecreateSafe(long address) static @Nullable OVRLayerCube.BuffercreateSafe(long address, int capacity) longcontains a single cubemap swapchain (not a stereo pair of swapchains)CubeMapTexture(long value) Sets the specified value to theCubeMapTexture()field.Header()Header.Typemust beLayerType_CubeHeader(Consumer<OVRLayerHeader> consumer) Header(OVRLayerHeader value) Copies the specifiedOVRLayerHeaderto theHeader()field.static OVRLayerCubemalloc()Returns a newOVRLayerCubeinstance allocated withmemAlloc.static OVRLayerCube.Buffermalloc(int capacity) Returns a newOVRLayerCube.Bufferinstance allocated withmemAlloc.static OVRLayerCube.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerCube.Bufferinstance allocated on the specifiedMemoryStack.static OVRLayerCubemalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRLayerCubeinstance allocated on the specifiedMemoryStack.static OVRLayerCubeDeprecated.static OVRLayerCube.BuffermallocStack(int capacity) Deprecated.static OVRLayerCube.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRLayerCubemallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static longnCubeMapTexture(long struct) Unsafe version ofCubeMapTexture().static voidnCubeMapTexture(long struct, long value) Unsafe version ofCubeMapTexture.static OVRLayerHeadernHeader(long struct) Unsafe version ofHeader().static voidnHeader(long struct, OVRLayerHeader value) Unsafe version ofHeader.static OVRQuatfnOrientation(long struct) Unsafe version ofOrientation().static voidnOrientation(long struct, OVRQuatf value) Unsafe version ofOrientation.orientation of the cubeOrientation(Consumer<OVRQuatf> consumer) Passes theOrientation()field to the specifiedConsumer.Orientation(OVRQuatf value) Copies the specifiedOVRQuatfto theOrientation()field.set(OVRLayerCube src) Copies the specified struct data to this struct.set(OVRLayerHeader Header, OVRQuatf Orientation, long CubeMapTexture) Initializes this struct with the specified values.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
ORIENTATION
public static final int ORIENTATIONThe struct member offsets. -
CUBEMAPTEXTURE
public static final int CUBEMAPTEXTUREThe struct member offsets.
-
-
Constructor Details
-
OVRLayerCube
Creates aOVRLayerCubeinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<OVRLayerCube>
-
Header
Header.Typemust beLayerType_Cube -
Orientation
orientation of the cube -
CubeMapTexture
public long CubeMapTexture()contains a single cubemap swapchain (not a stereo pair of swapchains) -
Header
Copies the specifiedOVRLayerHeaderto theHeader()field. -
Header
-
Orientation
Copies the specifiedOVRQuatfto theOrientation()field. -
Orientation
Passes theOrientation()field to the specifiedConsumer. -
CubeMapTexture
Sets the specified value to theCubeMapTexture()field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRLayerCubeinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRLayerCubeinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRLayerCubeinstance allocated withBufferUtils. -
create
Returns a newOVRLayerCubeinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRLayerCube.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRLayerCube.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRLayerCube.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRLayerCube.Bufferinstance 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 public static OVRLayerCube.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 OVRLayerCube.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRLayerCubeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRLayerCubeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRLayerCube.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRLayerCube.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nHeader
Unsafe version ofHeader(). -
nOrientation
Unsafe version ofOrientation(). -
nCubeMapTexture
public static long nCubeMapTexture(long struct) Unsafe version ofCubeMapTexture(). -
nHeader
Unsafe version ofHeader. -
nOrientation
Unsafe version ofOrientation. -
nCubeMapTexture
public static void nCubeMapTexture(long struct, long value) Unsafe version ofCubeMapTexture. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-