Package org.lwjgl.openvr
Class HiddenAreaMesh
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<HiddenAreaMesh>
org.lwjgl.openvr.HiddenAreaMesh
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class HiddenAreaMesh
extends org.lwjgl.system.Struct<HiddenAreaMesh>
implements org.lwjgl.system.NativeResource
The mesh to draw into the stencil (or depth) buffer to perform early stencil (or depth) kills of pixels that will never appear on the HMD. This mesh draws
on all the pixels that will be hidden after distortion.
If the HMD does not provide a visible area mesh pVertexData will be NULL and unTriangleCount will be 0.
Layout
struct HiddenAreaMesh_t {
HmdVector2_t * pVertexData;
uint32_t unTriangleCount;
}-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionHiddenAreaMesh(ByteBuffer container) Creates aHiddenAreaMeshinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic HiddenAreaMeshcalloc()Returns a newHiddenAreaMeshinstance allocated withmemCalloc.static HiddenAreaMesh.Buffercalloc(int capacity) Returns a newHiddenAreaMesh.Bufferinstance allocated withmemCalloc.static HiddenAreaMesh.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newHiddenAreaMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HiddenAreaMeshcalloc(org.lwjgl.system.MemoryStack stack) Returns a newHiddenAreaMeshinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HiddenAreaMeshDeprecated.static HiddenAreaMesh.BuffercallocStack(int capacity) Deprecated.static HiddenAreaMesh.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static HiddenAreaMeshcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static HiddenAreaMeshcreate()Returns a newHiddenAreaMeshinstance allocated withBufferUtils.static HiddenAreaMesh.Buffercreate(int capacity) Returns a newHiddenAreaMesh.Bufferinstance allocated withBufferUtils.static HiddenAreaMeshcreate(long address) Returns a newHiddenAreaMeshinstance for the specified memory address.static HiddenAreaMesh.Buffercreate(long address, int capacity) Create aHiddenAreaMesh.Bufferinstance at the specified memory.static @Nullable HiddenAreaMeshcreateSafe(long address) static @Nullable HiddenAreaMesh.BuffercreateSafe(long address, int capacity) static HiddenAreaMeshmalloc()Returns a newHiddenAreaMeshinstance allocated withmemAlloc.static HiddenAreaMesh.Buffermalloc(int capacity) Returns a newHiddenAreaMesh.Bufferinstance allocated withmemAlloc.static HiddenAreaMesh.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newHiddenAreaMesh.Bufferinstance allocated on the specifiedMemoryStack.static HiddenAreaMeshmalloc(org.lwjgl.system.MemoryStack stack) Returns a newHiddenAreaMeshinstance allocated on the specifiedMemoryStack.static HiddenAreaMeshDeprecated.static HiddenAreaMesh.BuffermallocStack(int capacity) Deprecated.static HiddenAreaMesh.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static HiddenAreaMeshmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static @Nullable HmdVector2.BuffernpVertexData(long struct) Unsafe version ofpVertexData().static intnunTriangleCount(long struct) Unsafe version ofunTriangleCount().@Nullable HmdVector2.Bufferintsizeof()intMethods 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. -
PVERTEXDATA
public static final int PVERTEXDATAThe struct member offsets. -
UNTRIANGLECOUNT
public static final int UNTRIANGLECOUNTThe struct member offsets.
-
-
Constructor Details
-
HiddenAreaMesh
Creates aHiddenAreaMeshinstance 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<HiddenAreaMesh>
-
pVertexData
- Returns:
- a
HmdVector2.Bufferview of the struct array pointed to by thepVertexDatafield.
-
unTriangleCount
public int unTriangleCount()- Returns:
- the value of the
unTriangleCountfield.
-
malloc
Returns a newHiddenAreaMeshinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newHiddenAreaMeshinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newHiddenAreaMeshinstance allocated withBufferUtils. -
create
Returns a newHiddenAreaMeshinstance for the specified memory address. -
createSafe
-
malloc
Returns a newHiddenAreaMesh.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newHiddenAreaMesh.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newHiddenAreaMesh.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aHiddenAreaMesh.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 HiddenAreaMesh.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 HiddenAreaMesh.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newHiddenAreaMeshinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newHiddenAreaMeshinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newHiddenAreaMesh.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newHiddenAreaMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npVertexData
Unsafe version ofpVertexData(). -
nunTriangleCount
public static int nunTriangleCount(long struct) Unsafe version ofunTriangleCount().
-