|
Jazz3D API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sygem.jazz3d3.Texture
A utility class designed to hold an image for use in Jazz3D. Internally, the image is held as an array of integers.
Field Summary | |
static int |
LARGE
Field used to represent a 512x512 texture |
static int |
MEDIUM
Field used to represent a 256x256 texture |
static int |
SMALL
Field used to represent a 128x128 texture |
static int |
VLARGE
Field used to represent a 1024x1024 texture |
static int |
VSMALL
Field used to represent a 64x64 texture |
Constructor Summary | |
Texture()
Default constructor. |
|
Texture(int size)
Construct a Texture of a specified size. |
|
Texture(int sizex,
int sizey)
Construct a Texture of a specified size. |
Method Summary | |
void |
addTextureLayer(Texture tex)
Add another texture on top of this one. |
int |
getHeight()
Allows you to get the height of the texture. |
int[] |
getTextureArray()
Allows you to get the internal representation of the texture. |
int |
getTransparentColour()
Get the transparent index of this texture. |
int |
getWidth()
Allows you to get the width of the texture. |
void |
mixTextureLayer(Texture tex,
double d)
Mix this texture together with another. |
void |
setTextureArray(int[] values)
Sets the texture array to a new set of values. |
void |
setTransparentColour(int tCol)
Set the transparent index of this texture. |
void |
setTransparentColour(int r,
int g,
int b)
Set the transparent index of this texture. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VLARGE
public static final int LARGE
public static final int MEDIUM
public static final int SMALL
public static final int VSMALL
Constructor Detail |
public Texture()
Texture(int)
public Texture(int size)
Texture()
public Texture(int sizex, int sizey)
Texture()
Method Detail |
public final int[] getTextureArray()
public final void setTextureArray(int[] values)
values
- An array of ints representing an imagepublic final int getHeight()
public final int getWidth()
public final void setTransparentColour(int tCol)
tCol
- The transparent colourpublic final void setTransparentColour(int r, int g, int b)
r
- The red component of the colourg
- The green component of the colourb
- The blue component of the colourpublic final int getTransparentColour()
public final void addTextureLayer(Texture tex)
tex
- A Texturepublic final void mixTextureLayer(Texture tex, double d)
tex
- A Textured
- Value between 0 & 1 - the mix amount
|
©2001 SyGem Software |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |