24 return std::max(
static_cast<short>(29),
33 assert(dataVersion < 29);
34 if (dataVersion >= 29)
return false;
47 uint32_t vertUniqueID = 0;
48 if (in.read((
char*)&vertUniqueID, 4) < 0)
return ReadError();
60 uint32_t normArrayID = 0;
61 if (in.read((
char*)&normArrayID, 4) < 0)
return ReadError();
74 uint32_t texCoordArrayID = 0;
75 if (in.read((
char*)&texCoordArrayID, 4) < 0)
return ReadError();
88 uint32_t matSetID = 0;
89 if (in.read((
char*)&matSetID, 4) < 0)
return ReadError();
static bool Error(const char *format,...)
Display an error dialog with formatted message.
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
short minimumFileVersion_MeOnly() const override
bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
Loads own object data.
virtual void drawMeOnly(CC_DRAW_CONTEXT &context) override
Enables (OpenGL) stipple mask.
short minimumFileVersion_MeOnly() const override
bool toFile_MeOnly(QFile &out, short dataVersion) const override
Save own object data.
QMultiMap< unsigned, unsigned > LoadedIDMap
Map of loaded unique IDs (old ID --> new ID)
static bool ReadError()
Sends a custom error message (read error) and returns 'false'.