Interface TextureBase

All Known Subinterfaces:
TextureAsset
All Known Implementing Classes:
Texture, TextureArray, TextureArrayLayer

public interface TextureBase
Base class for all kinds of textures.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Binds this texture.
    int
    Returns the height of this texture.
    int
     
    int
    Returns the width of this texture.
    default void
    Sets the filter parameter of this texture.
    void
    setParameter(int name, int value)
    Sets the value of a parameter of this texture.
    default void
    Sets the wrap parameter of this texture.
    void
    Unbinds this texture.
  • Method Details

    • bind

      void bind()
      Binds this texture.
    • unbind

      void unbind()
      Unbinds this texture.
    • setWrap

      default void setWrap(Texture.Wrap wrap)
      Sets the wrap parameter of this texture.
    • setFilter

      default void setFilter(Texture.Filter filter)
      Sets the filter parameter of this texture.
    • setParameter

      void setParameter(int name, int value)
      Sets the value of a parameter of this texture.
      Parameters:
      name - The name of the parameter
      value - The value to assign
    • getId

      int getId()
    • getWidth

      int getWidth()
      Returns the width of this texture.
      Returns:
      The width of this texture, in pixels.
    • getHeight

      int getHeight()
      Returns the height of this texture.
      Returns:
      The height of this texture, in pixels.