29 #ifndef __Ogre_TerrainLayerBlendMap_H__ 30 #define __Ogre_TerrainLayerBlendMap_H__ 97 void convertWorldToUVSpace(
const Vector3& worldPos,
Real *outX,
Real* outY);
108 void convertUVToImageSpace(
Real x,
Real y,
size_t* outX,
size_t* outY);
111 void convertImageToUVSpace(
size_t x,
size_t y,
Real* outX,
Real* outY);
114 void convertImageToTerrainSpace(
size_t x,
size_t y,
Real* outX,
Real* outY);
117 void convertTerrainToImageSpace(
Real x,
Real y,
size_t* outX,
size_t* outY);
123 float getBlendValue(
size_t x,
size_t y);
129 void setBlendValue(
size_t x,
size_t y,
float val);
137 float* getBlendPointer();
146 void dirtyRect(
const Rect& rect);
168 void loadImage(
const Image& img);
178 void loadImage(
const String& filename,
const String& groupName);
HardwarePixelBuffer * mBuffer
Specialisation of HardwareBuffer for a pixel buffer.
float Real
Software floating point type.
Terrain * getParent() const
Get the parent terrain.
Structure used to define a box in a 3-D integer space.
uint8 getLayerIndex() const
Get the index of the layer this is targeting.
The main containing class for a chunk of terrain.
Standard 3-dimensional vector.
#define _OgreTerrainExport
vector< TerrainLayerBlendMap * >::type TerrainLayerBlendMapList
Class exposing an interface to a blend map for a given layer.
Class representing an image file.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...