Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 364 vs 365 for /trunk/Source Code/Geometry/Shapes/SubMesh.cpp

Diff revisions: vs.
  @@ -10,17 +10,23 @@
10 10 namespace Divide {
11 11
12 12 SubMesh::SubMesh(const stringImpl& name, ObjectFlag flag)
13 - : Object3D(name, SUBMESH, flag | OBJECT_FLAG_NO_VB),
13 + : Object3D(
14 + name,
15 + ObjectType::SUBMESH,
16 + enum_to_uint(flag) | enum_to_uint(ObjectFlag::OBJECT_FLAG_NO_VB)),
14 17 _visibleToNetwork(true),
15 18 _render(true),
16 19 _ID(0),
17 - _parentMesh(nullptr) {
18 - _drawCmd.primitiveType(TRIANGLES);
20 + _parentMesh(nullptr)
21 + {
22 + _drawCmd.primitiveType(PrimitiveType::TRIANGLES);
19 23 _drawCmd.firstIndex(0);
20 24 _drawCmd.indexCount(1);
21 25 }
22 26
23 - SubMesh::~SubMesh() {}
27 + SubMesh::~SubMesh()
28 + {
29 + }
24 30
25 31 void SubMesh::setParentMesh(Mesh* const parentMesh) {
26 32 _parentMesh = parentMesh;