OpenMW
|
#include <loadland.hpp>
Classes | |
struct | LandData |
struct | VHGT |
Public Types | |
enum | { DATA_VNML = 1, DATA_VHGT = 2, DATA_WNAM = 4, DATA_VCLR = 8, DATA_VTEX = 16 } |
typedef signed char | VNML |
Public Member Functions | |
Land () | |
~Land () | |
void | load (ESMReader &esm) |
void | save (ESMWriter &esm) const |
void | loadData (int flags) |
void | unloadData () |
bool | isDataLoaded (int flags) |
Public Attributes | |
int | mFlags |
int | mX |
int | mY |
int | mPlugin |
ESMReader * | mEsm |
ESM_Context | mContext |
bool | mHasData |
int | mDataTypes |
int | mDataLoaded |
LandData * | mLandData |
Static Public Attributes | |
static unsigned int | sRecordId = REC_LAND |
static const int | LAND_SIZE = 65 |
static const int | REAL_SIZE = 8192 |
static const int | LAND_NUM_VERTS = LAND_SIZE * LAND_SIZE |
static const int | HEIGHT_SCALE = 8 |
static const int | LAND_TEXTURE_SIZE = 16 |
static const int | LAND_NUM_TEXTURES = LAND_TEXTURE_SIZE * LAND_TEXTURE_SIZE |
Private Member Functions | |
Land (const Land &land) | |
Land & | operator= (const Land &land) |
bool | condLoad (int flags, int dataFlag, void *ptr, unsigned int size) |
typedef signed char ESM::Land::VNML |
ESM::Land::Land | ( | ) |
ESM::Land::~Land | ( | ) |
ESM::Land::Land | ( | const Land & | land | ) | [private] |
bool ESM::Land::condLoad | ( | int | flags, |
int | dataFlag, | ||
void * | ptr, | ||
unsigned int | size | ||
) | [private] |
Loads data and marks it as loaded
bool ESM::Land::isDataLoaded | ( | int | flags | ) | [inline] |
Check if given data type is loaded
void ESM::Land::load | ( | ESMReader & | esm | ) |
void ESM::Land::loadData | ( | int | flags | ) |
Actually loads data
void ESM::Land::save | ( | ESMWriter & | esm | ) | const |
void ESM::Land::unloadData | ( | ) |
Frees memory allocated for land data
const int ESM::Land::HEIGHT_SCALE = 8 [static] |
const int ESM::Land::LAND_NUM_TEXTURES = LAND_TEXTURE_SIZE * LAND_TEXTURE_SIZE [static] |
const int ESM::Land::LAND_NUM_VERTS = LAND_SIZE * LAND_SIZE [static] |
const int ESM::Land::LAND_SIZE = 65 [static] |
const int ESM::Land::LAND_TEXTURE_SIZE = 16 [static] |
bool ESM::Land::mHasData |
int ESM::Land::mX |
int ESM::Land::mY |
const int ESM::Land::REAL_SIZE = 8192 [static] |
unsigned int ESM::Land::sRecordId = REC_LAND [static] |