Options class which just stores default options for the terrain. More...
#include <OgreTerrain.h>
Public Member Functions | |
TerrainGlobalOptions () | |
virtual | ~TerrainGlobalOptions () |
void | addQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
bool | getCastsDynamicShadows () |
Whether the terrain will be able to cast shadows (texture shadows only are supported, and you must be using depth shadow maps). More... | |
const ColourValue & | getCompositeMapAmbient () |
Get the composite map ambient light to use. More... | |
const ColourValue & | getCompositeMapDiffuse () |
Get the composite map iffuse light to use. More... | |
Real | getCompositeMapDistance () |
Get the distance at which to start using a composite map if present. More... | |
uint16 | getCompositeMapSize () |
Get the default size of the composite maps for a new terrain. More... | |
uint16 | getDefaultGlobalColourMapSize () |
Get the default size of the terrain global colour map for a new terrain. More... | |
Real | getDefaultLayerTextureWorldSize () |
Get the default world size for a layer 'splat' texture to cover. More... | |
TerrainMaterialGeneratorPtr | getDefaultMaterialGenerator () |
Get the default material generator. More... | |
const String & | getDefaultResourceGroup () |
Get the default resource group to use to load / save terrains. More... | |
uint16 | getLayerBlendMapSize () |
Get the default size of the blend maps for a new terrain. More... | |
const Vector3 & | getLightMapDirection () |
Get the shadow map light direction to use (world space) More... | |
uint16 | getLightMapSize () |
Get the default size of the lightmaps for a new terrain. More... | |
Real | getMaxPixelError () |
Get the maximum screen pixel error that should be allowed when rendering. More... | |
uint32 | getQueryFlags (void) |
Get the default query flags for terrains. More... | |
uint8 | getRenderQueueGroup (void) |
Get the render queue group that this terrain will be rendered into. More... | |
Real | getSkirtSize () |
The default size of 'skirts' used to hide terrain cracks (default 10) More... | |
bool | getUseRayBoxDistanceCalculation () |
Returns whether or not to use an accurate calculation of camera distance from a terrain tile (ray / AABB intersection) or whether to use the simpler distance from the tile centre. More... | |
uint32 | getVisibilityFlags (void) |
Get the visbility flags that terrains will be rendered with. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
void | removeQueryFlags (uint32 flags) |
void | setCastsDynamicShadows (bool s) |
Whether the terrain will be able to cast shadows (texture shadows only are supported, and you must be using depth shadow maps). More... | |
void | setCompositeMapAmbient (const ColourValue &c) |
Set the composite map ambient light to use. More... | |
void | setCompositeMapDiffuse (const ColourValue &c) |
Set the composite map diffuse light to use. More... | |
void | setCompositeMapDistance (Real c) |
Set the distance at which to start using a composite map if present. More... | |
void | setCompositeMapSize (uint16 sz) |
Sets the default size of composite maps for a new terrain. More... | |
void | setDefaultGlobalColourMapSize (uint16 sz) |
Set the default size of the terrain global colour map for a new terrain. More... | |
void | setDefaultLayerTextureWorldSize (Real sz) |
Set the default world size for a layer 'splat' texture to cover. More... | |
void | setDefaultMaterialGenerator (TerrainMaterialGeneratorPtr gen) |
Set the default material generator. More... | |
void | setDefaultResourceGroup (const String &grp) |
Set the default resource group to use to load / save terrains. More... | |
void | setLayerBlendMapSize (uint16 sz) |
Sets the default size of blend maps for a new terrain. More... | |
void | setLightMapDirection (const Vector3 &v) |
Set the shadow map light direction to use (world space). More... | |
void | setLightMapSize (uint16 sz) |
Sets the default size of lightmaps for a new terrain. More... | |
void | setMaxPixelError (Real pixerr) |
Set the maximum screen pixel error that should be allowed when rendering. More... | |
void | setQueryFlags (uint32 flags) |
Set the default query flags for terrains. More... | |
void | setRenderQueueGroup (uint8 grp) |
Set the render queue group that terrains will be rendered into. More... | |
void | setSkirtSize (Real skirtSz) |
method - the default size of 'skirts' used to hide terrain cracks (default 10) More... | |
void | setUseRayBoxDistanceCalculation (bool rb) |
Sets whether to use an accurate ray / box intersection to determine distance from a terrain tile, or whether to use the simple distance from the tile centre. More... | |
void | setVisibilityFlags (uint32 flags) |
Set the visbility flags that terrains will be rendered with. More... | |
Static Public Member Functions | |
static TerrainGlobalOptions & | getSingleton (void) |
Override standard Singleton retrieval. More... | |
static TerrainGlobalOptions * | getSingletonPtr (void) |
Override standard Singleton retrieval. More... | |
Static Protected Attributes | |
static TerrainGlobalOptions * | ms_Singleton |
Options class which just stores default options for the terrain.
Definition at line 1813 of file OgreTerrain.h.
Ogre::TerrainGlobalOptions::TerrainGlobalOptions | ( | ) |
|
inlinevirtual |
Definition at line 1838 of file OgreTerrain.h.
|
inline |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 1917 of file OgreTerrain.h.
|
inline |
Whether the terrain will be able to cast shadows (texture shadows only are supported, and you must be using depth shadow maps).
Definition at line 1872 of file OgreTerrain.h.
|
inline |
Get the composite map ambient light to use.
Definition at line 1856 of file OgreTerrain.h.
|
inline |
Get the composite map iffuse light to use.
Definition at line 1860 of file OgreTerrain.h.
|
inline |
Get the distance at which to start using a composite map if present.
Definition at line 1864 of file OgreTerrain.h.
|
inline |
Get the default size of the composite maps for a new terrain.
Definition at line 1987 of file OgreTerrain.h.
|
inline |
Get the default size of the terrain global colour map for a new terrain.
Definition at line 1969 of file OgreTerrain.h.
|
inline |
Get the default world size for a layer 'splat' texture to cover.
Definition at line 1961 of file OgreTerrain.h.
TerrainMaterialGeneratorPtr Ogre::TerrainGlobalOptions::getDefaultMaterialGenerator | ( | ) |
Get the default material generator.
|
inline |
Get the default resource group to use to load / save terrains.
Definition at line 1999 of file OgreTerrain.h.
|
inline |
Get the default size of the blend maps for a new terrain.
Definition at line 1951 of file OgreTerrain.h.
|
inline |
Get the shadow map light direction to use (world space)
Definition at line 1852 of file OgreTerrain.h.
|
inline |
Get the default size of the lightmaps for a new terrain.
Definition at line 1979 of file OgreTerrain.h.
|
inline |
Get the maximum screen pixel error that should be allowed when rendering.
Definition at line 1882 of file OgreTerrain.h.
|
inline |
Get the default query flags for terrains.
Definition at line 1914 of file OgreTerrain.h.
|
inline |
Get the render queue group that this terrain will be rendered into.
Definition at line 1892 of file OgreTerrain.h.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
|
inline |
The default size of 'skirts' used to hide terrain cracks (default 10)
Definition at line 1844 of file OgreTerrain.h.
|
inline |
Returns whether or not to use an accurate calculation of camera distance from a terrain tile (ray / AABB intersection) or whether to use the simpler distance from the tile centre.
Definition at line 1926 of file OgreTerrain.h.
|
inline |
Get the visbility flags that terrains will be rendered with.
Definition at line 1900 of file OgreTerrain.h.
|
inlineinherited |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
|
inline |
Definition at line 1920 of file OgreTerrain.h.
|
inline |
Whether the terrain will be able to cast shadows (texture shadows only are supported, and you must be using depth shadow maps).
This value can be set dynamically, and affects all existing terrains. It defaults to false.
Definition at line 1879 of file OgreTerrain.h.
|
inline |
Set the composite map ambient light to use.
Definition at line 1858 of file OgreTerrain.h.
|
inline |
Set the composite map diffuse light to use.
Definition at line 1862 of file OgreTerrain.h.
|
inline |
Set the distance at which to start using a composite map if present.
Definition at line 1866 of file OgreTerrain.h.
|
inline |
Sets the default size of composite maps for a new terrain.
Definition at line 1991 of file OgreTerrain.h.
|
inline |
Set the default size of the terrain global colour map for a new terrain.
Once created, this information will be stored with the terrain.
Definition at line 1974 of file OgreTerrain.h.
|
inline |
Set the default world size for a layer 'splat' texture to cover.
Definition at line 1965 of file OgreTerrain.h.
void Ogre::TerrainGlobalOptions::setDefaultMaterialGenerator | ( | TerrainMaterialGeneratorPtr | gen | ) |
Set the default material generator.
|
inline |
Set the default resource group to use to load / save terrains.
Definition at line 1995 of file OgreTerrain.h.
|
inline |
Sets the default size of blend maps for a new terrain.
This is the resolution of each blending layer for a new terrain. Once created, this information will be stored with the terrain.
Definition at line 1957 of file OgreTerrain.h.
|
inline |
Set the shadow map light direction to use (world space).
Definition at line 1854 of file OgreTerrain.h.
|
inline |
Sets the default size of lightmaps for a new terrain.
Definition at line 1983 of file OgreTerrain.h.
|
inline |
Set the maximum screen pixel error that should be allowed when rendering.
Definition at line 1889 of file OgreTerrain.h.
|
inline |
Set the default query flags for terrains.
Definition at line 1911 of file OgreTerrain.h.
|
inline |
Set the render queue group that terrains will be rendered into.
Definition at line 1897 of file OgreTerrain.h.
|
inline |
method - the default size of 'skirts' used to hide terrain cracks (default 10)
Definition at line 1850 of file OgreTerrain.h.
|
inline |
Sets whether to use an accurate ray / box intersection to determine distance from a terrain tile, or whether to use the simple distance from the tile centre.
Using ray/box intersection will result in higher detail terrain because the LOD calculation is more conservative, assuming the 'worst case scenario' of a large height difference at the edge of a tile. This is guaranteed to give you at least the max pixel error or better, but will often give you more detail than you need. Not using the ray/box method is cheaper but will only use the max pixel error as a guide, the actual error will vary above and below that. The default is not to use the ray/box approach.
Definition at line 1939 of file OgreTerrain.h.
|
inline |
Set the visbility flags that terrains will be rendered with.
Definition at line 1905 of file OgreTerrain.h.
|
protected |
Definition at line 1819 of file OgreTerrain.h.
|
protected |
Definition at line 1831 of file OgreTerrain.h.
|
protected |
Definition at line 1832 of file OgreTerrain.h.
|
protected |
Definition at line 1833 of file OgreTerrain.h.
|
protected |
Definition at line 1830 of file OgreTerrain.h.
|
protected |
Definition at line 1828 of file OgreTerrain.h.
|
protected |
Definition at line 1827 of file OgreTerrain.h.
|
protected |
Definition at line 1825 of file OgreTerrain.h.
|
protected |
Definition at line 1826 of file OgreTerrain.h.
|
protected |
Definition at line 1818 of file OgreTerrain.h.
|
protected |
Definition at line 1829 of file OgreTerrain.h.
|
protected |
Definition at line 1820 of file OgreTerrain.h.
|
protected |
Definition at line 1823 of file OgreTerrain.h.
|
protected |
Definition at line 1821 of file OgreTerrain.h.
|
protected |
Definition at line 1834 of file OgreTerrain.h.
|
staticprotectedinherited |
Definition at line 75 of file OgreSingleton.h.
|
protected |
Definition at line 1817 of file OgreTerrain.h.
|
protected |
Definition at line 1824 of file OgreTerrain.h.
|
protected |
Definition at line 1822 of file OgreTerrain.h.