The Level class is a generator for level data such as terrain geometry and track courses.
More...
#include <level.h>
The Level class is a generator for level data such as terrain geometry and track courses.
It uses a LevelConfiguration instance that specifies the dimensions of the generated terrain and a seed value for the pseudo random number generator.
- See also
- LevelConfiguration
terminus::Level::Level |
( |
| ) |
|
set a new configuration and discard the previously generated terrain and tracks if already generated
- Parameters
-
std::vector< GLfloat > * terminus::Level::copyTerrainMapData |
( |
| ) |
const |
- Returns
- a copy of the generated terrain displacement map that can be used to fill an OpenGL texture object
Polyline * terminus::Level::createLeftTrackCourse |
( |
| ) |
const |
- Returns
- a newly created Polyline instance that approximates the course of the left track
Polyline * terminus::Level::createRightTrackCourse |
( |
| ) |
const |
- Returns
- a newly created Polyline instance that approximates the course of the right track
void terminus::Level::generateLevel |
( |
| ) |
|
generate terrain and tracks if not already generated
void terminus::Level::generateTerrainMap |
( |
| ) |
|
|
protected |
void terminus::Level::generateTracks |
( |
| ) |
|
|
protected |
void terminus::Level::resetLevel |
( |
| ) |
|
discard terrain and tracks if already generated
QVector2D terminus::Level::terrainDisplacement |
( |
float |
x, |
|
|
float |
z |
|
) |
| |
|
protected |
float terminus::Level::terrainHeight |
( |
float |
x, |
|
|
float |
z, |
|
|
float |
fTrack |
|
) |
| |
|
protected |
float terminus::Level::tMapGetW |
( |
int |
i | ) |
const |
|
protected |
QVector3D terminus::Level::tMapGetXYZ |
( |
int |
i | ) |
const |
|
protected |
int terminus::Level::tMapIndex |
( |
int |
s, |
|
|
int |
t |
|
) |
| const |
|
protected |
void terminus::Level::tMapSetW |
( |
int |
i, |
|
|
float |
w |
|
) |
| |
|
protected |
void terminus::Level::tMapSetXYZ |
( |
int |
i, |
|
|
float |
dx, |
|
|
float |
dy, |
|
|
float |
dz |
|
) |
| |
|
protected |
float terminus::Level::trackHeight |
( |
float |
x, |
|
|
float |
z |
|
) |
| const |
|
protected |
std::vector<GLfloat> terminus::Level::m_terrainMapData |
|
protected |
bool terminus::Level::m_texGenerated |
|
protected |
bool terminus::Level::m_tracksGenerated |
|
protected |
The documentation for this class was generated from the following files: