Class Texture


  • public class Texture
    extends java.lang.Object
    Texture Class
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int height
      Texture height.
      int id
      ID for this texture, usually resource id.
      int width
      Texture width.
    • Constructor Summary

      Constructors 
      Constructor Description
      Texture​(int id, int handle, int width, int height)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind()
      Binds the texture for use.
      void unbind()
      Unbinds the texture.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        public final int id
        ID for this texture, usually resource id.
      • width

        public final int width
        Texture width.
      • height

        public final int height
        Texture height.
    • Constructor Detail

      • Texture

        public Texture​(int id,
                       int handle,
                       int width,
                       int height)
    • Method Detail

      • bind

        public void bind()
        Binds the texture for use.
      • unbind

        public void unbind()
        Unbinds the texture.