csGenerateImageTextureSingle Class Reference
A class for a single texture. More...
#include <cstool/gentrtex.h>
Inheritance diagram for csGenerateImageTextureSingle:

Public Member Functions | |
| void | ComputeLayerColor (const csVector2 &pos, csColor &col) |
| compute a color (0..1) for a spot on a layer | |
| virtual void | GetColor (csColor &col, float x, float y) |
| get the color | |
| void | GetImagePixel (iImage *image, int x, int y, csRGBpixel &res) |
| get a color for a pixel in image, tiles, result in res. | |
| void | SetImage (iImage *im) |
| add image | |
| virtual | ~csGenerateImageTextureSingle () |
| delete it | |
Public Attributes | |
| csRef< iImage > | image |
| the image - the texture image | |
| csVector2 | offset |
| offset to shift image (0..1) | |
| csVector2 | scale |
| the scale of the image, (nr of times tiled on the terrain) | |
Detailed Description
A class for a single texture.
Definition at line 135 of file gentrtex.h.
Constructor & Destructor Documentation
|
|
delete it
|
Member Function Documentation
|
||||||||||||
|
compute a color (0..1) for a spot on a layer
|
|
||||||||||||||||
|
get the color
Implements csGenerateImageTexture. |
|
||||||||||||||||||||
|
get a color for a pixel in image, tiles, result in res.
|
|
|
add image
|
Member Data Documentation
|
|
the image - the texture image
Definition at line 140 of file gentrtex.h. |
|
|
offset to shift image (0..1)
Definition at line 144 of file gentrtex.h. |
|
|
the scale of the image, (nr of times tiled on the terrain)
Definition at line 142 of file gentrtex.h. |
The documentation for this class was generated from the following file:
- cstool/gentrtex.h
Generated for Crystal Space by doxygen 1.4.6
