CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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. 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< iImageimage
 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...


Detailed Description

A class for a single texture.

Definition at line 129 of file gentrtex.h.


Constructor & Destructor Documentation

virtual csGenerateImageTextureSingle::~csGenerateImageTextureSingle   [virtual]
 

delete it.


Member Function Documentation

void csGenerateImageTextureSingle::ComputeLayerColor const csVector2   pos,
csColor   col
 

compute a color (0..1) for a spot on a layer.

virtual void csGenerateImageTextureSingle::GetColor csColor   col,
float    x,
float    y
[virtual]
 

get the color.

Implements csGenerateImageTexture.

void csGenerateImageTextureSingle::GetImagePixel iImage   image,
int    x,
int    y,
csRGBpixel   res
 

get a color for a pixel in image, tiles, result in res.

void csGenerateImageTextureSingle::SetImage iImage   im
 

add image.


Member Data Documentation

csRef<iImage> csGenerateImageTextureSingle::image
 

the image - the texture image.

Definition at line 133 of file gentrtex.h.

csVector2 csGenerateImageTextureSingle::offset
 

offset to shift image (0..1).

Definition at line 137 of file gentrtex.h.

csVector2 csGenerateImageTextureSingle::scale
 

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

Definition at line 135 of file gentrtex.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14