AssbinExporter: Add Write specialization for aiColor3D

pull/1436/head
Turo Lamminen 2017-09-14 11:25:19 +03:00
parent b9efc234d0
commit f4a0ab81b1
1 changed files with 11 additions and 0 deletions

View File

@ -139,6 +139,17 @@ inline size_t Write<aiVector3D>(IOStream * stream, const aiVector3D& v)
return t;
}
// -----------------------------------------------------------------------------------
// Serialize a color value
template <>
inline size_t Write<aiColor3D>(IOStream * stream, const aiColor3D& v)
{
size_t t = Write<float>(stream,v.r);
t += Write<float>(stream,v.g);
t += Write<float>(stream,v.b);
return t;
}
// -----------------------------------------------------------------------------------
// Serialize a color value
template <>