TODO. More...
#include <Plants.h>
Public Member Functions | |
Plants (int minLevel, int maxLevel, int minDensity, int maxDensity, int tileCacheSize, float maxDistance) | |
Creates a new Plants. | |
~Plants () | |
Deletes this Plants. | |
int | getMinLevel () |
TODO. | |
int | getMaxLevel () |
TODO. | |
int | getMinDensity () |
TODO. | |
int | getMaxDensity () |
TODO. | |
int | getTileCacheSize () |
TODO. | |
float | getMaxDistance () |
TODO. | |
int | getPatternCount () |
TODO. | |
float | getPoissonRadius () |
TODO. | |
ptr< MeshBuffers > | getPattern (int index) |
Returns the i'th pattern. | |
void | addPattern (ptr< MeshBuffers > pattern) |
TODO. | |
void | setMaxDistance (float maxDistance) |
TODO. | |
Public Attributes | |
ptr< Program > | selectProg |
The GLSL Shader that is able to determine if a seed is valid (see DrawPlantsTask). | |
ptr< Program > | shadowProg |
The GLSL Shader used to render the plants shadows, based on the selected seeds. | |
ptr< Program > | renderProg |
The GLSL Shader used to render the plants, based on the selected seeds. | |
Protected Member Functions | |
Plants () | |
Creates a new Plants. | |
void | init (int minLevel, int maxLevel, int minDensity, int maxDensity, int tileCacheSize, float maxDistance) |
Initializes a Plants fields. |
TODO.
proland::Plants::Plants | ( | int | minLevel, | |
int | maxLevel, | |||
int | minDensity, | |||
int | maxDensity, | |||
int | tileCacheSize, | |||
float | maxDistance | |||
) |
proland::Plants::~Plants | ( | ) |
Deletes this Plants.
proland::Plants::Plants | ( | ) | [protected] |
Creates a new Plants.
void proland::Plants::addPattern | ( | ptr< MeshBuffers > | pattern | ) |
TODO.
int proland::Plants::getMaxDensity | ( | ) |
TODO.
float proland::Plants::getMaxDistance | ( | ) |
TODO.
int proland::Plants::getMaxLevel | ( | ) |
TODO.
int proland::Plants::getMinDensity | ( | ) |
TODO.
int proland::Plants::getMinLevel | ( | ) |
TODO.
ptr<MeshBuffers> proland::Plants::getPattern | ( | int | index | ) |
Returns the i'th pattern.
int proland::Plants::getPatternCount | ( | ) |
TODO.
float proland::Plants::getPoissonRadius | ( | ) |
TODO.
int proland::Plants::getTileCacheSize | ( | ) |
TODO.
void proland::Plants::init | ( | int | minLevel, | |
int | maxLevel, | |||
int | minDensity, | |||
int | maxDensity, | |||
int | tileCacheSize, | |||
float | maxDistance | |||
) | [protected] |
void proland::Plants::setMaxDistance | ( | float | maxDistance | ) |
TODO.
ptr<Program> proland::Plants::renderProg |
The GLSL Shader used to render the plants, based on the selected seeds.
ptr<Program> proland::Plants::selectProg |
The GLSL Shader that is able to determine if a seed is valid (see DrawPlantsTask).
If it is, it will determine its properties, such as the size of the plant, its type, color etc... Eliminated seeds will contain (0, 0, 0, 0) values.
ptr<Program> proland::Plants::shadowProg |
The GLSL Shader used to render the plants shadows, based on the selected seeds.