|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTexture
public class Texture
Represents a surface texture. Basically, this should be a rectangle, usually something that is repeated across a surface.
| Method Summary | |
|---|---|
TextureColumn |
getColumn(int c)
Returns a column of this texture. |
int |
getHeight()
Returns the height of this texture, in pixels. |
java.awt.Color |
getMeanColor()
Returns the average color for this texture. |
int |
getWidth()
Returns the width of this texture, in pixels. |
static Texture |
load(java.lang.String filename)
Creates a texture for the given filename. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getHeight()
public int getWidth()
public java.awt.Color getMeanColor()
public TextureColumn getColumn(int c)
public static Texture load(java.lang.String filename)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||