1 #ifndef OPENMW_ESM_LAND_H
2 #define OPENMW_ESM_LAND_H
6 #include <OpenThreads/Mutex>
152 void add (
int flags);
155 void remove (
int flags);
Definition: loadland.hpp:44
void save(ESMWriter &esm) const
Definition: loadland.cpp:15
static const int LAND_NUM_TEXTURES
Definition: loadland.hpp:67
static const int LAND_NUM_VERTS
Definition: loadland.hpp:59
static unsigned int sRecordId
Definition: loadland.hpp:22
Definition: esmreader.hpp:21
LandData * mLandData
Definition: loadland.hpp:168
void unloadData()
Definition: loadland.cpp:237
short mUnk1
Definition: loadland.hpp:74
Land & operator=(Land land)
Definition: loadland.cpp:271
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadland.cpp:160
Definition: loadland.hpp:20
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadland.hpp:24
int mFlags
Definition: loadland.hpp:29
static const int HEIGHT_SCALE
Definition: loadland.hpp:61
Definition: esmwriter.hpp:17
int mX
Definition: loadland.hpp:31
void swap(Land &land)
Definition: loadland.cpp:277
void loadData(int flags) const
Definition: loadland.cpp:181
int mY
Definition: loadland.hpp:31
static const int LAND_TEXTURE_SIZE
Definition: loadland.hpp:64
Definition: loadland.hpp:43
Land()
Definition: loadland.cpp:60
ESM_Context mContext
Definition: loadland.hpp:36
int mDataLoaded
Definition: loadland.hpp:166
int mDataTypes
Definition: loadland.hpp:100
Definition: loadland.hpp:70
uint16_t mTextures[LAND_NUM_TEXTURES]
Definition: loadland.hpp:94
Definition: esmcommon.hpp:116
char mUnk2
Definition: loadland.hpp:75
Definition: loadland.hpp:45
static const int LAND_SIZE
Definition: loadland.hpp:53
bool condLoad(ESM::ESMReader &reader, int flags, int dataFlag, void *ptr, unsigned int size) const
Definition: loadland.cpp:247
OpenThreads::Mutex mMutex
Definition: loadland.hpp:164
signed char mWnam[81]
Definition: loadland.hpp:103
short mUnk1
Definition: loadland.hpp:106
bool isDataLoaded(int flags) const
Definition: loadland.cpp:258
float mHeightOffset
Definition: loadland.hpp:84
static const int DEFAULT_HEIGHT
Definition: loadland.hpp:50
void load(ESMReader &esm, bool &isDeleted)
Definition: loadland.cpp:86
Definition: loadland.hpp:42
static const int REAL_SIZE
Definition: loadland.hpp:56
uint8_t mUnk2
Definition: loadland.hpp:107
VNML mNormals[LAND_NUM_VERTS *3]
Definition: loadland.hpp:89
float mHeights[LAND_NUM_VERTS]
Definition: loadland.hpp:86
int mDataTypes
Definition: loadland.hpp:38
void blank()
Definition: loadland.hpp:116
signed char VNML
Definition: loadland.hpp:79
static void transposeTextureData(const uint16_t *in, uint16_t *out)
Definition: loadland.cpp:71
void add(int flags)
Definition: loadland.cpp:308
int8_t mHeightData[LAND_NUM_VERTS]
Definition: loadland.hpp:73
unsigned char mColours[3 *LAND_NUM_VERTS]
Definition: loadland.hpp:97
const LandData * getLandData() const
Return land data without loading first anything. Can return a 0-pointer.
Definition: loadland.cpp:298
Definition: loadland.hpp:81
int mPlugin
Definition: loadland.hpp:32
float mHeightOffset
Definition: loadland.hpp:72
Definition: loadland.hpp:46
~Land()
Definition: loadland.cpp:81