|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cult3d.world.Texture
This class provides a representation of a Cult3D texture. All objects in Cult3D have textures. This class provides a way to dynamicaly update a texture from Java.
Constructor Summary | |
Texture(java.lang.String name)
Constructs a Java representation of a Cult3D texture. |
Method Summary | |
int |
getHeight()
Gets the height of the texture. |
int[] |
getTexture()
Gets the currently set texture. |
void |
getTexture(java.awt.Image surface)
Copies the texture to an Image. |
int |
getWidth()
Gets the width of the texture. |
void |
setTexture(java.awt.Image surface)
Sets the texture from an Image instance. |
void |
setTexture(int[] data)
Sets the texture from an array of int-values. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Texture(java.lang.String name)
name
- the name of the object.Method Detail |
public int getWidth()
public int getHeight()
public int[] getTexture()
public void getTexture(java.awt.Image surface)
surface
- the Image instance to copy the texture to.TextureImage
public void setTexture(int[] data)
data
- An array of int-values.public void setTexture(java.awt.Image surface)
surface
- the Image to be set.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |