Skip to content

Commit 25a6355

Browse files
committed
Buffer GL + Moving long function to CPP
1 parent e60828a commit 25a6355

File tree

11 files changed

+770
-607
lines changed

11 files changed

+770
-607
lines changed

source/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set(forth_common_srcs
33
common/Buffer3.h
44
common/Buffer4.cpp
55
common/Buffer4.h
6+
common/BufferGL.h
67
common/Color.h
78
common/Enums.h
89
common/VertexProfile.h
@@ -12,6 +13,7 @@ set(forth_math_srcs
1213
math/Bounds4.h
1314
math/Euler4.h
1415
math/Math.h
16+
math/Matrix4.cpp
1517
math/Matrix4.h
1618
math/Plane4.h
1719
math/SphereBounds4.h
@@ -30,6 +32,7 @@ set(forth_rendering_srcs
3032
set(forth_visualizer_srcs
3133
visualizer/CustomVisualizer.h
3234
visualizer/ParticleVisualizer.h
35+
visualizer/SolidVisualizer.cpp
3336
visualizer/SolidVisualizer.h
3437
visualizer/WireVisualizer.h
3538
)

source/common/Buffer3.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ namespace Forth
1212
{
1313
std::vector<Vector3> vertices;
1414
std::vector<int> indices;
15+
Forth::SimplexMode simplex;
1516

16-
Buffer3() { }
17+
Buffer3() { simplex = SM_Triangle; }
1718

1819
~Buffer3()
1920
{
@@ -31,7 +32,6 @@ namespace Forth
3132
vertices.push_back(v);
3233
}
3334

34-
3535
void AddTris(const int a)
3636
{
3737
indices.push_back(a);
@@ -50,6 +50,5 @@ namespace Forth
5050
indices.push_back(c);
5151
}
5252

53-
Forth::SimplexMode simplex;
5453
};
5554
}

0 commit comments

Comments
 (0)