Class Texture

    • Constructor Detail

      • Texture

        public Texture​(android.graphics.Bitmap bitmap)
      • Texture

        public Texture​(int width,
                       int height,
                       int format,
                       int type)
    • Method Detail

      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • getByteCount

        public int getByteCount()
      • getTexCoordTransform

        public Matrix3 getTexCoordTransform()
      • getTexParameter

        public int getTexParameter​(int name)
      • setTexParameter

        public void setTexParameter​(int name,
                                    int param)
      • release

        public void release​(DrawContext dc)
        Description copied from interface: RenderResource
        Frees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.
        Specified by:
        release in interface RenderResource
        Parameters:
        dc - the current draw context
      • getTextureName

        public int getTextureName​(DrawContext dc)
      • bindTexture

        public boolean bindTexture​(DrawContext dc)