![]() |
Public API Reference |
#include <gentrtex.h>
Inheritance diagram for csGenerateImageTextureSingle:
Public Methods | |
virtual | ~csGenerateImageTextureSingle () |
delete it. More... | |
void | SetImage (iImage *im) |
add image. More... | |
virtual void | GetColor (csColor &col, float x, float y) |
get the color. More... | |
void | GetImagePixel (iImage *image, int x, int y, csRGBpixel &res) |
get a color for a pixel in image, tiles, result in res. More... | |
void | ComputeLayerColor (const csVector2 &pos, csColor &col) |
compute a color (0..1) for a spot on a layer. More... | |
Public Attributes | |
csRef< iImage > | image |
the image - the texture image. More... | |
csVector2 | scale |
the scale of the image, (nr of times tiled on the terrain). More... | |
csVector2 | offset |
offset to shift image (0..1). More... |
Definition at line 129 of file gentrtex.h.
|
delete it.
|
|
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.
|
|
the image - the texture image.
Definition at line 133 of file gentrtex.h. |
|
offset to shift image (0..1).
Definition at line 137 of file gentrtex.h. |
|
the scale of the image, (nr of times tiled on the terrain).
Definition at line 135 of file gentrtex.h. |