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