java.lang.Object
com.pixelmonmod.pixelmon.client.models.obj.Texture

public class Texture extends Object
$Id$

Simple Texture containing the texture ID generated by OGL and various attributes. Can be called upon to bind and paint itself.
This is a modified version of the Texture class from: org.lwjgl.examples.spaceinvaders.Texture

  • Constructor Details

    • Texture

      public Texture(int textureID, int width, int height)
      Creates a new Texture
      Parameters:
      textureID - Texture ID
      width - Width of image
      height - Height of image
    • Texture

      public Texture(int textureID, int width, int height, float widthRatio, float heightRatio, int textureWidth, int textureHeight)
      Creates a new Texture
      Parameters:
      textureID - Texture ID
      width - Width of image
      height - Height of image
      widthRatio - Ratio of texture width
      heightRatio - Ratio of texture height
      textureWidth - Actual width of texture
      textureHeight - Actual height of texture
  • Method Details

    • getTextureID

      public int getTextureID()
      Returns:
      Texture ID for this image
    • getHeight

      public int getHeight()
      Returns:
      height of image
    • getWidth

      public int getWidth()
      Returns:
      width of image
    • toString

      public String toString()
      Returns a string representation of the image
      Overrides:
      toString in class Object