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);
float Real
Software floating point type.
HardwarePixelBuffer * mBuffer
The main containing class for a chunk of terrain.
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...
#define _OgreTerrainExport
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 targeting.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.