Class ALsp2DTextureObject

Direct Known Subclasses:
TLsp2DImageTextureObject

public abstract class ALsp2DTextureObject extends ALspTextureObject
Manages an OpenGL 2D texture object. This abstract class provides the base functionality to create, bind and destroy the texture object. Definition of the texture image and other texture parameters is left up to implementing classes.
Since:
2016.1
  • Constructor Details

    • ALsp2DTextureObject

      protected ALsp2DTextureObject(int aWidth, int aHeight)
      Constructs a new ALsp2DTextureObject.
      Parameters:
      aWidth - the width of the texture.
      aHeight - the height of the texture.
    • ALsp2DTextureObject

      protected ALsp2DTextureObject(String aDisplayName, int aWidth, int aHeight)
      Constructs a new ALsp2DTextureObject.
      Parameters:
      aDisplayName - the display name for the texture.
      aWidth - the width of the texture.
      aHeight - the height of the texture.
  • Method Details

    • getTarget

      public final int getTarget()
      Gets the target for this texture. This is always ILcdGL.GL_TEXTURE_2D.
      Specified by:
      getTarget in class ALspTextureObject
      Returns:
      ILcdGL.GL_TEXTURE_2D
    • getWidth

      public final int getWidth()
      Gets the width of the texture.
      Returns:
      the width in pixels
    • getHeight

      public final int getHeight()
      Gets the height of the texture.
      Returns:
      the height in pixels