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.NativeResourceDescribes 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_tmTrackingToComponentRenderModel;HmdMatrix34_tmTrackingToComponentLocal; VRComponentProperties uProperties; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRenderModelComponentState.BufferAn array ofRenderModelComponentStatestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMTRACKINGTOCOMPONENTLOCAL
MTRACKINGTOCOMPONENTRENDERMODELThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUPROPERTIESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description RenderModelComponentState(java.nio.ByteBuffer container)Creates aRenderModelComponentStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RenderModelComponentStatecalloc()Returns a newRenderModelComponentStateinstance allocated withmemCalloc.static RenderModelComponentState.Buffercalloc(int capacity)Returns a newRenderModelComponentState.Bufferinstance allocated withmemCalloc.static RenderModelComponentStatecallocStack()Returns a newRenderModelComponentStateinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static RenderModelComponentState.BuffercallocStack(int capacity)Returns a newRenderModelComponentState.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static RenderModelComponentState.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newRenderModelComponentState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RenderModelComponentStatecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newRenderModelComponentStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RenderModelComponentStatecreate()Returns a newRenderModelComponentStateinstance allocated withBufferUtils.static RenderModelComponentState.Buffercreate(int capacity)Returns a newRenderModelComponentState.Bufferinstance allocated withBufferUtils.static RenderModelComponentStatecreate(long address)Returns a newRenderModelComponentStateinstance for the specified memory address.static RenderModelComponentState.Buffercreate(long address, int capacity)Create aRenderModelComponentState.Bufferinstance at the specified memory.static RenderModelComponentStatecreateSafe(long address)static RenderModelComponentState.BuffercreateSafe(long address, int capacity)static RenderModelComponentStatemalloc()Returns a newRenderModelComponentStateinstance allocated withmemAlloc.static RenderModelComponentState.Buffermalloc(int capacity)Returns a newRenderModelComponentState.Bufferinstance allocated withmemAlloc.static RenderModelComponentStatemallocStack()Returns a newRenderModelComponentStateinstance allocated on the thread-localMemoryStack.static RenderModelComponentState.BuffermallocStack(int capacity)Returns a newRenderModelComponentState.Bufferinstance allocated on the thread-localMemoryStack.static RenderModelComponentState.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newRenderModelComponentState.Bufferinstance allocated on the specifiedMemoryStack.static RenderModelComponentStatemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newRenderModelComponentStateinstance allocated on the specifiedMemoryStack.HmdMatrix34mTrackingToComponentLocal()Returns aHmdMatrix34view of themTrackingToComponentLocalfield.HmdMatrix34mTrackingToComponentRenderModel()Returns aHmdMatrix34view of themTrackingToComponentRenderModelfield.static HmdMatrix34nmTrackingToComponentLocal(long struct)Unsafe version ofmTrackingToComponentLocal().static HmdMatrix34nmTrackingToComponentRenderModel(long struct)Unsafe version ofmTrackingToComponentRenderModel().static intnuProperties(long struct)Unsafe version ofuProperties().intsizeof()intuProperties()Returns the value of theuPropertiesfield.
-
-
-
Constructor Detail
-
RenderModelComponentState
public RenderModelComponentState(java.nio.ByteBuffer container)
Creates aRenderModelComponentStateinstance 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
-
mTrackingToComponentRenderModel
public HmdMatrix34 mTrackingToComponentRenderModel()
Returns aHmdMatrix34view of themTrackingToComponentRenderModelfield.
-
mTrackingToComponentLocal
public HmdMatrix34 mTrackingToComponentLocal()
Returns aHmdMatrix34view of themTrackingToComponentLocalfield.
-
uProperties
public int uProperties()
Returns the value of theuPropertiesfield.
-
malloc
public static RenderModelComponentState malloc()
Returns a newRenderModelComponentStateinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static RenderModelComponentState calloc()
Returns a newRenderModelComponentStateinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static RenderModelComponentState create()
Returns a newRenderModelComponentStateinstance allocated withBufferUtils.
-
create
public static RenderModelComponentState create(long address)
Returns a newRenderModelComponentStateinstance for the specified memory address.
-
createSafe
@Nullable public static RenderModelComponentState createSafe(long address)
-
malloc
public static RenderModelComponentState.Buffer malloc(int capacity)
Returns a newRenderModelComponentState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static RenderModelComponentState.Buffer calloc(int capacity)
Returns a newRenderModelComponentState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static RenderModelComponentState.Buffer create(int capacity)
Returns a newRenderModelComponentState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static RenderModelComponentState.Buffer create(long address, int capacity)
Create aRenderModelComponentState.Bufferinstance 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 newRenderModelComponentStateinstance allocated on the thread-localMemoryStack.
-
callocStack
public static RenderModelComponentState callocStack()
Returns a newRenderModelComponentStateinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static RenderModelComponentState mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static RenderModelComponentState callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentStateinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static RenderModelComponentState.Buffer callocStack(int capacity)
Returns a newRenderModelComponentState.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-