Level class.
More...
#include <Level.h>
List of all members.
Public Member Functions |
| Level (IPhysic &physic, IRender &render) |
| Constructor.
|
| ~Level () |
| Destructor.
|
bool | load (const wchar *filename, const wchar *textureDir) |
bool | loadGeometry (const wchar *filename, const char *name, pIGeometry &geometry) |
bool | loadGeometry (const wchar *filename, const char *name, pIGeometry &geometry, MeshData &meshData) |
void | unload (void) |
| Unload the level.
|
float3 | getStart (void) |
bool | intersectsEnd (float3 pos, float radius=1.f) |
int | intersectsItem (float3 pos, float radius=1.f) |
LevelItem & | getItem (int index) |
void | removeItem (int index) |
void | setItemGeometry (CannonballType type, pIGeometry geometry) |
Protected Member Functions |
bool | loadMeshData (FILE *file, MeshData &meshData, const char *name=0) |
bool | loadUnknown (const wchar *filename, int &width, int &height, Pixel **outData) |
bool | loadTextureData (const wchar *colorFilename, const wchar *normalFilename, const wchar *heightFilename, TextureData &out) |
bool | loadBMP (const wchar *filename, int &width, int &height, Pixel **outData) |
bool | loadTGA (const wchar *filename, int &width, int &height, Pixel **outData) |
Detailed Description
Level class.
Definition at line 50 of file Level.h.
Constructor & Destructor Documentation
Member Function Documentation
LevelItem& Level::getItem |
( |
int |
index |
) |
[inline] |
float3 Level::getStart |
( |
void |
|
) |
[inline] |
bool Level::intersectsEnd |
( |
float3 |
pos, |
|
|
float |
radius = 1.f | |
|
) |
| | [inline] |
int Level::intersectsItem |
( |
float3 |
pos, |
|
|
float |
radius = 1.f | |
|
) |
| | [inline] |
bool Level::load |
( |
const wchar * |
filename, |
|
|
const wchar * |
textureDir | |
|
) |
| | |
Load a level from the specified file and use the textures in the specified directory.
Definition at line 224 of file Level.cpp.
bool Level::loadBMP |
( |
const wchar * |
filename, |
|
|
int & |
width, |
|
|
int & |
height, |
|
|
Pixel ** |
outData | |
|
) |
| | [protected] |
bool Level::loadGeometry |
( |
const wchar * |
filename, |
|
|
const char * |
name, |
|
|
pIGeometry & |
geometry | |
|
) |
| | |
bool Level::loadMeshData |
( |
FILE * |
file, |
|
|
MeshData & |
meshData, |
|
|
const char * |
name = 0 | |
|
) |
| | [protected] |
bool Level::loadTextureData |
( |
const wchar * |
colorFilename, |
|
|
const wchar * |
normalFilename, |
|
|
const wchar * |
heightFilename, |
|
|
TextureData & |
out | |
|
) |
| | [protected] |
bool Level::loadTGA |
( |
const wchar * |
filename, |
|
|
int & |
width, |
|
|
int & |
height, |
|
|
Pixel ** |
outData | |
|
) |
| | [protected] |
bool Level::loadUnknown |
( |
const wchar * |
filename, |
|
|
int & |
width, |
|
|
int & |
height, |
|
|
Pixel ** |
outData | |
|
) |
| | [protected] |
void Level::removeItem |
( |
int |
index |
) |
[inline] |
void Level::unload |
( |
void |
|
) |
|
The documentation for this class was generated from the following files: