Class Texture
java.lang.Object
com.pixelmonmod.pixelmon.client.models.obj.Texture
$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 IDwidth
- Width of imageheight
- 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 IDwidth
- Width of imageheight
- Height of imagewidthRatio
- Ratio of texture widthheightRatio
- Ratio of texture heighttextureWidth
- Actual width of texturetextureHeight
- Actual height of texture
-
-
Method Details