Make terrain texture settings global, add dialog to painter

This commit is contained in:
Lukas Aldershaab 2021-01-03 00:50:42 +01:00
parent d3996aec84
commit db496fa0c4
10 changed files with 483 additions and 317 deletions

View file

@ -174,15 +174,6 @@ protected:
BaseTexFormat mBaseTexFormat;
U32 mDetailTexSize;
GFXFormat mDetailTexFormat;
U32 mMacroTexSize;
GFXFormat mMacroTexFormat;
U32 mNormalTexSize;
GFXFormat mNormalTexFormat;
U32 mOrmTexSize;
GFXFormat mOrmTexFormat;
///
TerrCell *mCell;
@ -267,14 +258,6 @@ protected:
static bool _setSquareSize( void *obj, const char *index, const char *data );
static bool _setBaseTexSize(void *obj, const char *index, const char *data);
static bool _setBaseTexFormat(void *obj, const char *index, const char *data);
static bool _setDetailTexSize(void *obj, const char *index, const char *data);
static bool _setDetailTexFormat(void *obj, const char *index, const char *data);
static bool _setMacroTexSize(void *obj, const char *index, const char *data);
static bool _setMacroTexFormat(void *obj, const char *index, const char *data);
static bool _setNormalTexSize(void *obj, const char *index, const char *data);
static bool _setNormalTexFormat(void *obj, const char *index, const char *data);
static bool _setOrmTexSize(void *obj, const char *index, const char *data);
static bool _setOrmTexFormat(void *obj, const char *index, const char *data);
static bool _setLightMapSize( void *obj, const char *index, const char *data );
public: