Class 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 model
    • mTrackingToComponentLocal – 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;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MTRACKINGTOCOMPONENTRENDERMODEL, MTRACKINGTOCOMPONENTLOCAL, UPROPERTIES

        The struct member offsets.
    • Constructor Detail

      • RenderModelComponentState

        public RenderModelComponentState​(java.nio.ByteBuffer container)
        Creates a RenderModelComponentState instance at the current position of the specified ByteBuffer 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 class org.lwjgl.system.Struct
      • mTrackingToComponentRenderModel

        public HmdMatrix34 mTrackingToComponentRenderModel()
        Returns a HmdMatrix34 view of the mTrackingToComponentRenderModel field.
      • mTrackingToComponentLocal

        public HmdMatrix34 mTrackingToComponentLocal()
        Returns a HmdMatrix34 view of the mTrackingToComponentLocal field.
      • uProperties

        public int uProperties()
        Returns the value of the uProperties field.
      • malloc

        public static RenderModelComponentState malloc()
        Returns a new RenderModelComponentState instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static RenderModelComponentState calloc()
        Returns a new RenderModelComponentState instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static RenderModelComponentState create()
        Returns a new RenderModelComponentState instance allocated with BufferUtils.
      • create

        public static RenderModelComponentState create​(long address)
        Returns a new RenderModelComponentState instance for the specified memory address.
      • mallocStack

        public static RenderModelComponentState mallocStack()
        Returns a new RenderModelComponentState instance allocated on the thread-local MemoryStack.
      • callocStack

        public static RenderModelComponentState callocStack()
        Returns a new RenderModelComponentState instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static RenderModelComponentState mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new RenderModelComponentState instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static RenderModelComponentState callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new RenderModelComponentState instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static RenderModelComponentState.Buffer callocStack​(int capacity,
                                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new RenderModelComponentState.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nuProperties

        public static int nuProperties​(long struct)
        Unsafe version of uProperties().