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.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 Deprecated 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 RenderModelComponentState.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newRenderModelComponentState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RenderModelComponentStatecalloc(org.lwjgl.system.MemoryStack stack)Returns a newRenderModelComponentStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RenderModelComponentStatecallocStack()Deprecated.static RenderModelComponentState.BuffercallocStack(int capacity)Deprecated.static RenderModelComponentState.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static RenderModelComponentStatecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 RenderModelComponentState.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newRenderModelComponentState.Bufferinstance allocated on the specifiedMemoryStack.static RenderModelComponentStatemalloc(org.lwjgl.system.MemoryStack stack)Returns a newRenderModelComponentStateinstance allocated on the specifiedMemoryStack.static RenderModelComponentStatemallocStack()Deprecated.static RenderModelComponentState.BuffermallocStack(int capacity)Deprecated.static RenderModelComponentState.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static RenderModelComponentStatemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.HmdMatrix34mTrackingToComponentLocal()Transform available for attaching to a local component coordinate system (-Z out from surface )HmdMatrix34mTrackingToComponentRenderModel()Transform required when drawing the component render modelstatic HmdMatrix34nmTrackingToComponentLocal(long struct)Unsafe version ofmTrackingToComponentLocal().static HmdMatrix34nmTrackingToComponentRenderModel(long struct)Unsafe version ofmTrackingToComponentRenderModel().static intnuProperties(long struct)Unsafe version ofuProperties().intsizeof()intuProperties()
-
-
-
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()
Transform required when drawing the component render model
-
mTrackingToComponentLocal
public HmdMatrix34 mTrackingToComponentLocal()
Transform available for attaching to a local component coordinate system (-Z out from surface )
-
uProperties
public int uProperties()
- Returns:
- the value of the
uPropertiesfield.
-
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
@Deprecated public static RenderModelComponentState mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static RenderModelComponentState callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static RenderModelComponentState mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static RenderModelComponentState callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static RenderModelComponentState.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static RenderModelComponentState.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static RenderModelComponentState.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 RenderModelComponentState.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static RenderModelComponentState malloc(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelComponentStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static RenderModelComponentState calloc(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
-
malloc
public static RenderModelComponentState.Buffer malloc(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
-
calloc
public static RenderModelComponentState.Buffer calloc(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().
-
-