Method | Description | |
---|---|---|
Image ( |
Initialize a quad with a texture mapped onto it
|
|
ReadjustSize ( ) : void |
Readjusts the dimensions of the image according to its current texture. Call this method to synchronize image and texture size after assigning a texture with a different size.
|
|
SetTexCoords ( Point coords, int vertexID ) : void |
Sets the texture coordinates of a vertex. Coordinates are in the range [0, 1].
|
|
SetTexCoords ( float x, float y, int vertexID ) : void |
Sets the texture coordinates of a vertex. Coordinates are in the range [0, 1].
|
|
TexCoordsOfVertex ( int vertexID ) : Point |
Gets the texture coordinates of a vertex.
|
Method | Description | |
---|---|---|
Image ( ) : System | ||
InitImage ( |
||
VertexDataDidChange ( ) : void |
Method | Description | |
---|---|---|
CopyVertexDataTo ( |
public Image ( |
||
texture | The texture to use. Use for example the TextureLoader class to load one. | |
return | System |
protected InitImage ( |
||
texture | ||
return | void |
public SetTexCoords ( Point coords, int vertexID ) : void | ||
coords | Point | |
vertexID | int | |
return | void |
public SetTexCoords ( float x, float y, int vertexID ) : void | ||
x | float | |
y | float | |
vertexID | int | |
return | void |
public TexCoordsOfVertex ( int vertexID ) : Point | ||
vertexID | int | |
return | Point |