Package org.lwjgl.ovr

Class OVRMirrorTextureDesc

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • Constructor Detail

      • OVRMirrorTextureDesc

        public OVRMirrorTextureDesc(java.nio.ByteBuffer container)
        Creates a OVRMirrorTextureDesc 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()
        Description copied from class: org.lwjgl.system.Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • Format

        public int Format()
        Returns the value of the Format field.
      • Width

        public int Width()
        Returns the value of the Width field.
      • Height

        public int Height()
        Returns the value of the Height field.
      • MiscFlags

        public int MiscFlags()
        Returns the value of the MiscFlags field.
      • Format

        public OVRMirrorTextureDesc Format(int value)
        Sets the specified value to the Format field.
      • Width

        public OVRMirrorTextureDesc Width(int value)
        Sets the specified value to the Width field.
      • Height

        public OVRMirrorTextureDesc Height(int value)
        Sets the specified value to the Height field.
      • MiscFlags

        public OVRMirrorTextureDesc MiscFlags(int value)
        Sets the specified value to the MiscFlags field.
      • set

        public OVRMirrorTextureDesc set(int Format,
                                        int Width,
                                        int Height,
                                        int MiscFlags)
        Initializes this struct with the specified values.
      • mallocStack

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

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

        public static OVRMirrorTextureDesc.Buffer mallocStack(int capacity,
                                                              org.lwjgl.system.MemoryStack stack)
        Returns a new OVRMirrorTextureDesc.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static OVRMirrorTextureDesc.Buffer callocStack(int capacity,
                                                              org.lwjgl.system.MemoryStack stack)
        Returns a new OVRMirrorTextureDesc.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