Package org.lwjgl.openvr
Class RenderModelComponentState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.RenderModelComponentState
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class RenderModelComponentState extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Describes state information about a render-model component, including transforms and other dynamic properties.Member documentation
mTrackingToComponentRenderModel
– Transform required when drawing the component render modelmTrackingToComponentLocal
– Transform available for attaching to a local component coordinate system (-Z out from surface )
Layout
struct RenderModel_ComponentState_t {
HmdMatrix34_t
mTrackingToComponentRenderModel;HmdMatrix34_t
mTrackingToComponentLocal; VRComponentProperties uProperties; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RenderModelComponentState.Buffer
An array ofRenderModelComponentState
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MTRACKINGTOCOMPONENTLOCAL
MTRACKINGTOCOMPONENTRENDERMODELThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
UPROPERTIES
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description RenderModelComponentState(java.nio.ByteBuffer container)
Creates aRenderModelComponentState
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RenderModelComponentState
calloc()
Returns a newRenderModelComponentState
instance allocated withmemCalloc
.static RenderModelComponentState.Buffer
calloc(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated withmemCalloc
.static RenderModelComponentState
callocStack()
Returns a newRenderModelComponentState
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static RenderModelComponentState.Buffer
callocStack(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static RenderModelComponentState.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RenderModelComponentState
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static RenderModelComponentState
create()
Returns a newRenderModelComponentState
instance allocated withBufferUtils
.static RenderModelComponentState.Buffer
create(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated withBufferUtils
.static RenderModelComponentState
create(long address)
Returns a newRenderModelComponentState
instance for the specified memory address.static RenderModelComponentState.Buffer
create(long address, int capacity)
Create aRenderModelComponentState.Buffer
instance at the specified memory.static RenderModelComponentState
createSafe(long address)
static RenderModelComponentState.Buffer
createSafe(long address, int capacity)
static RenderModelComponentState
malloc()
Returns a newRenderModelComponentState
instance allocated withmemAlloc
.static RenderModelComponentState.Buffer
malloc(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated withmemAlloc
.static RenderModelComponentState
mallocStack()
Returns a newRenderModelComponentState
instance allocated on the thread-localMemoryStack
.static RenderModelComponentState.Buffer
mallocStack(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated on the thread-localMemoryStack
.static RenderModelComponentState.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentState.Buffer
instance allocated on the specifiedMemoryStack
.static RenderModelComponentState
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentState
instance allocated on the specifiedMemoryStack
.HmdMatrix34
mTrackingToComponentLocal()
Returns aHmdMatrix34
view of themTrackingToComponentLocal
field.HmdMatrix34
mTrackingToComponentRenderModel()
Returns aHmdMatrix34
view of themTrackingToComponentRenderModel
field.static HmdMatrix34
nmTrackingToComponentLocal(long struct)
Unsafe version ofmTrackingToComponentLocal()
.static HmdMatrix34
nmTrackingToComponentRenderModel(long struct)
Unsafe version ofmTrackingToComponentRenderModel()
.static int
nuProperties(long struct)
Unsafe version ofuProperties()
.int
sizeof()
int
uProperties()
Returns the value of theuProperties
field.
-
-
-
Constructor Detail
-
RenderModelComponentState
public RenderModelComponentState(java.nio.ByteBuffer container)
Creates aRenderModelComponentState
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
mTrackingToComponentRenderModel
public HmdMatrix34 mTrackingToComponentRenderModel()
Returns aHmdMatrix34
view of themTrackingToComponentRenderModel
field.
-
mTrackingToComponentLocal
public HmdMatrix34 mTrackingToComponentLocal()
Returns aHmdMatrix34
view of themTrackingToComponentLocal
field.
-
uProperties
public int uProperties()
Returns the value of theuProperties
field.
-
malloc
public static RenderModelComponentState malloc()
Returns a newRenderModelComponentState
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static RenderModelComponentState calloc()
Returns a newRenderModelComponentState
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static RenderModelComponentState create()
Returns a newRenderModelComponentState
instance allocated withBufferUtils
.
-
create
public static RenderModelComponentState create(long address)
Returns a newRenderModelComponentState
instance for the specified memory address.
-
createSafe
@Nullable public static RenderModelComponentState createSafe(long address)
-
malloc
public static RenderModelComponentState.Buffer malloc(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static RenderModelComponentState.Buffer calloc(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static RenderModelComponentState.Buffer create(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static RenderModelComponentState.Buffer create(long address, int capacity)
Create aRenderModelComponentState.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static RenderModelComponentState.Buffer createSafe(long address, int capacity)
-
mallocStack
public static RenderModelComponentState mallocStack()
Returns a newRenderModelComponentState
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static RenderModelComponentState callocStack()
Returns a newRenderModelComponentState
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static RenderModelComponentState mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentState
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static RenderModelComponentState callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentState
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static RenderModelComponentState.Buffer mallocStack(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static RenderModelComponentState.Buffer callocStack(int capacity)
Returns a newRenderModelComponentState.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static RenderModelComponentState.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentState.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static RenderModelComponentState.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentState.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nmTrackingToComponentRenderModel
public static HmdMatrix34 nmTrackingToComponentRenderModel(long struct)
Unsafe version ofmTrackingToComponentRenderModel()
.
-
nmTrackingToComponentLocal
public static HmdMatrix34 nmTrackingToComponentLocal(long struct)
Unsafe version ofmTrackingToComponentLocal()
.
-
nuProperties
public static int nuProperties(long struct)
Unsafe version ofuProperties()
.
-
-