[*] Few C++11 constructions are removed.

pull/972/head
Alexandr Arutjunov 2016-08-13 16:27:07 +03:00
parent 1844665693
commit 8ab50aa9a0
2 changed files with 2 additions and 2 deletions

View File

@ -883,7 +883,7 @@ mr_skip_extensions:
inline void Mesh::Decode_O3DGC(const SCompression_Open3DGC& pCompression_Open3DGC, Asset& pAsset_Root) inline void Mesh::Decode_O3DGC(const SCompression_Open3DGC& pCompression_Open3DGC, Asset& pAsset_Root)
{ {
using IndicesType = unsigned short;///< \sa glTFExporter::ExportMeshes. typedef unsigned short IndicesType;///< \sa glTFExporter::ExportMeshes.
o3dgc::SC3DMCDecoder<IndicesType> decoder; o3dgc::SC3DMCDecoder<IndicesType> decoder;
o3dgc::IndexedFaceSet<IndicesType> ifs; o3dgc::IndexedFaceSet<IndicesType> ifs;

View File

@ -262,7 +262,7 @@ void glTFExporter::ExportMeshes()
// But yes for // But yes for
// using IndicesType = unsigned short; // using IndicesType = unsigned short;
// because "ComponentType_UNSIGNED_SHORT" used for indices. And it's a maximal type according to glTF specification. // because "ComponentType_UNSIGNED_SHORT" used for indices. And it's a maximal type according to glTF specification.
using IndicesType = unsigned short; typedef unsigned short IndicesType;
// Variables needed for compression. BEGIN. // Variables needed for compression. BEGIN.
// Indices, not pointers - because pointer to buffer is changin while writing to it. // Indices, not pointers - because pointer to buffer is changin while writing to it.