dtTerrain::HeightFieldResizePolicy Class Reference

This enumeration specifies the valid resize policies the data readers should follow when loading a new heightfield. More...

#include <terraindatareader.h>

Inheritance diagram for dtTerrain::HeightFieldResizePolicy:

dtUtil::Enumeration

List of all members.

Static Public Attributes

static const
HeightFieldResizePolicy 
NONE
 No resizing should occur.
static const
HeightFieldResizePolicy 
NEAREST_POWER_OF_TWO
 Data should be resized such that it is a power of two in all dimensions closests to its original size.
static const
HeightFieldResizePolicy 
NEAREST_POWER_OF_TWO_PLUS_ONE
 Data should be resized such that it is a power of two plus one in all dimensions closests to its original size.

Protected Member Functions

 HeightFieldResizePolicy (const std::string &name)


Detailed Description

This enumeration specifies the valid resize policies the data readers should follow when loading a new heightfield.

This is to ensure that the data formats supported by the reader are imported in a manor suitable to the current renderer.


Constructor & Destructor Documentation

dtTerrain::HeightFieldResizePolicy::HeightFieldResizePolicy ( const std::string &  name  )  [inline, protected]


Member Data Documentation

const HeightFieldResizePolicy dtTerrain::HeightFieldResizePolicy::NONE [static]

No resizing should occur.

const HeightFieldResizePolicy dtTerrain::HeightFieldResizePolicy::NEAREST_POWER_OF_TWO [static]

Data should be resized such that it is a power of two in all dimensions closests to its original size.

(2^n)

const HeightFieldResizePolicy dtTerrain::HeightFieldResizePolicy::NEAREST_POWER_OF_TWO_PLUS_ONE [static]

Data should be resized such that it is a power of two plus one in all dimensions closests to its original size.

(2^n + 1)


http://www.delta3d.org
2.0.0 generated 14 Feb 2008