Class TextureInfo

java.lang.Object
com.toxicrain.rainengine.texture.TextureInfo

public class TextureInfo extends Object
The TextureInfo class provides information about the given texture Textures are created in TextureSystem
  • Field Details

    • textureId

      public final int textureId
    • width

      public final int width
    • height

      public final int height
    • isTransparent

      public final boolean isTransparent
  • Constructor Details

    • TextureInfo

      public TextureInfo(int textureId, int width, int height)
      Create a new TextureInfo
      Parameters:
      textureId - the id of the texture, used by OpenGL from rendering
      width - the width of the texture
      height - the height of the texture
    • TextureInfo

      public TextureInfo(int textureId, int width, int height, boolean isTransparent)
      Create a new TextureInfo
      Parameters:
      textureId - the id of the texture, used by OpenGL from rendering
      width - the width of the texture
      height - the height of the texture
      isTransparent - If the texture has transparency
  • Method Details