Use Color type wherever possible.

This commit is contained in:
2018-04-03 19:22:14 +02:00
parent f62c2859e3
commit d4d4d6d431
5 changed files with 32 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ namespace fmri
private:
Ordering ordering;
std::vector<float> vertexBuffer;
std::vector<float> colorBuffer;
std::vector<Color> colorBuffer;
std::vector<int> indexBuffer;
std::vector<int> activeIndexBuffer;
@@ -33,6 +33,8 @@ namespace fmri
0, 2, 3,
1, 2, 3
};
constexpr const auto VERTICES_PER_NODE = NODE_SHAPE.size() / 3;
constexpr const auto FACES_PER_NODE = NODE_FACES.size() / 3;
void setVertexPositions(int vertexNo, float *destination);