Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csGenerateImageTextureSingle Class Reference

A class for a single texture. More...

#include <gentrtex.h>

Inheritance diagram for csGenerateImageTextureSingle:

csGenerateImageTexture List of all members.

Public Methods

virtual ~csGenerateImageTextureSingle ()
 delete it.

void SetImage (iImage *im)
 add image.

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 ComputeLayerColor (const csVector2 &pos, csColor &col)
 compute a color (0..1) for a spot on a layer.


Public Attributes

iImageimage
 the image - the texture image.

csVector2 scale
 the scale of the image, (nr of times tiled on the terrain).

csVector2 offset
 offset to shift image (0..1).


Detailed Description

A class for a single texture.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000