Interface TextureData

    • Method Detail

      • isPrepared

        boolean isPrepared()
        Returns:
        whether the TextureData is prepared or not.
      • prepare

        void prepare()
        Prepares the TextureData for a call to consumePixmap() or consumeCustomData(int). This method can be called from a non OpenGL thread and should thus not interact with OpenGL.
      • consumePixmap

        Pixmap consumePixmap()
        Returns the Pixmap for upload by Texture. A call to prepare() must precede a call to this method. Any internal data structures created in prepare() should be disposed of here.
        Returns:
        the pixmap.
      • consumeCustomData

        void consumeCustomData​(int target)
        Uploads the pixel data to the OpenGL ES texture. The caller must bind an OpenGL ES texture. A call to prepare() must preceed a call to this method. Any internal data structures created in prepare() should be disposed of here.
      • getWidth

        int getWidth()
        Returns:
        the width of the pixel data
      • getHeight

        int getHeight()
        Returns:
        the height of the pixel data
      • useMipMaps

        boolean useMipMaps()
        Returns:
        whether to generate mipmaps or not.
      • isManaged

        boolean isManaged()
        Returns:
        whether this implementation can cope with a EGL context loss.