vertex format table in newMesh uses the same fields as newBuffer.

Deprecate (but don't remove) the old {name, type, elementcount} vertex format style. The new style is {name=attributename, format=dataformat}.
This commit is contained in:
Alex Szpakowski
2021-08-02 16:11:58 -03:00
parent 92d0d1d60f
commit 1cf8f1192c
3 changed files with 72 additions and 47 deletions
+1 -2
View File
@@ -114,8 +114,6 @@ std::string getDeprecationNotice(const DeprecationInfo &info, bool usewhere)
notice += "field ";
else if (info.apiType == API_CONSTANT)
notice += "constant ";
else
notice += "API ";
notice += info.name;
@@ -193,6 +191,7 @@ STRINGMAP_BEGIN(APIType, API_MAX_ENUM, apiType)
{ "callback", API_CALLBACK },
{ "field", API_FIELD },
{ "constant", API_CONSTANT },
{ "custom", API_CUSTOM },
}
STRINGMAP_END(APIType, API_MAX_ENUM, apiType)
+1
View File
@@ -36,6 +36,7 @@ enum APIType
API_CALLBACK,
API_FIELD,
API_CONSTANT,
API_CUSTOM,
API_MAX_ENUM
};