mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-30 13:57:59 +03:00
Implement terrain rendering in OpenCS (Fixes #1597)
This commit is contained in:
parent
8097d9801d
commit
8786fb639f
14 changed files with 244 additions and 8 deletions
|
@ -98,6 +98,8 @@ struct Land
|
|||
void load(ESMReader &esm);
|
||||
void save(ESMWriter &esm) const;
|
||||
|
||||
void blank() {}
|
||||
|
||||
/**
|
||||
* Actually loads data
|
||||
*/
|
||||
|
|
|
@ -19,4 +19,10 @@ void LandTexture::save(ESMWriter &esm) const
|
|||
esm.writeHNCString("DATA", mTexture);
|
||||
}
|
||||
|
||||
void LandTexture::blank()
|
||||
{
|
||||
mTexture.clear();
|
||||
mIndex = -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -32,6 +32,9 @@ struct LandTexture
|
|||
std::string mId, mTexture;
|
||||
int mIndex;
|
||||
|
||||
void blank();
|
||||
///< Set record to default state (does not touch the ID).
|
||||
|
||||
void load(ESMReader &esm);
|
||||
void save(ESMWriter &esm) const;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue