Go to the documentation of this file.
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);
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
uint8 getLayerIndex() const
Get the index of the layer this is targeting.
Class representing an image file.
Class exposing an interface to a blend map for a given layer.
#define _OgreTerrainExport
The main containing class for a chunk of terrain.
Specialisation of HardwareBuffer for a pixel buffer.
vector< TerrainLayerBlendMap * >::type TerrainLayerBlendMapList
HardwarePixelBuffer * mBuffer
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
Terrain * getParent() const
Get the parent terrain.
Structure used to define a box in a 3-D integer space.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
float Real
Software floating point type.
Standard 3-dimensional vector.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15