|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.obj.Texture
public class 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 Summary | |
|---|---|
Texture(int textureID,
int width,
int height)
Creates a new Texture |
|
Texture(int textureID,
int width,
int height,
float widthRatio,
float heightRatio,
int textureWidth,
int textureHeight)
Creates a new Texture |
|
| Method Summary | |
|---|---|
int |
getHeight()
|
int |
getTextureID()
|
int |
getWidth()
|
java.lang.String |
toString()
Returns a string representation of the image |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Texture(int textureID,
int width,
int height)
textureID - Texture IDwidth - Width of imageheight - Height of image
public Texture(int textureID,
int width,
int height,
float widthRatio,
float heightRatio,
int textureWidth,
int textureHeight)
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 Detail |
|---|
public int getTextureID()
public int getHeight()
public int getWidth()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||