ecere/gfx/3D/Mesh: Added member to access 32 bit indices
authorJerome St-Louis <jerome@ecere.com>
Tue, 15 Apr 2014 20:34:37 +0000 (16:34 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 15 Apr 2014 20:34:37 +0000 (16:34 -0400)
ecere/src/gfx/3D/Mesh.ec

index f48ac61..bf312b1 100644 (file)
@@ -48,7 +48,7 @@ public:
    PrimitiveGroupType type;
    union
    {
-      struct { uint16 * indices; int nIndices; };
+      struct { union { uint16 * indices; uint * indices32; }; int nIndices; };
       struct { int first, nVertices; };
    };
    Material material;
@@ -62,7 +62,7 @@ public:
    PrimitiveGroupType type;
    union
    {
-      struct { uint16 * indices; int nIndices; };
+      struct { union { uint16 * indices; uint * indices32; }; int nIndices; };
       struct { int first, nVertices; };
    };
    Material material;