Package org.lwjgl.ovr

Class OVRTextureSwapChainDesc

    • Field Detail

      • SIZEOF

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

      • OVRTextureSwapChainDesc

        public OVRTextureSwapChainDesc(java.nio.ByteBuffer container)
        Creates a OVRTextureSwapChainDesc 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
      • Type

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

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

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

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

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

        public int MipLevels()
        Returns the value of the MipLevels field.
      • SampleCount

        public int SampleCount()
        Returns the value of the SampleCount field.
      • StaticImage

        public boolean StaticImage()
        Returns the value of the StaticImage field.
      • MiscFlags

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

        public int BindFlags()
        Returns the value of the BindFlags field.
      • ArraySize

        public OVRTextureSwapChainDesc ArraySize(int value)
        Sets the specified value to the ArraySize field.
      • MipLevels

        public OVRTextureSwapChainDesc MipLevels(int value)
        Sets the specified value to the MipLevels field.
      • SampleCount

        public OVRTextureSwapChainDesc SampleCount(int value)
        Sets the specified value to the SampleCount field.
      • StaticImage

        public OVRTextureSwapChainDesc StaticImage(boolean value)
        Sets the specified value to the StaticImage field.
      • MiscFlags

        public OVRTextureSwapChainDesc MiscFlags(int value)
        Sets the specified value to the MiscFlags field.
      • BindFlags

        public OVRTextureSwapChainDesc BindFlags(int value)
        Sets the specified value to the BindFlags field.
      • set

        public OVRTextureSwapChainDesc set(int Type,
                                           int Format,
                                           int ArraySize,
                                           int Width,
                                           int Height,
                                           int MipLevels,
                                           int SampleCount,
                                           boolean StaticImage,
                                           int MiscFlags,
                                           int BindFlags)
        Initializes this struct with the specified values.
      • mallocStack

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

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

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

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