Go back to using pointers instead of vectors.

No need to incur that performance overhead.
This commit is contained in:
2017-11-23 16:18:10 +01:00
parent 44f467c81c
commit 9de25b0f37
2 changed files with 11 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#include <vector>
#include <memory>
#include "LayerData.hpp"
#include "LayerVisualisation.hpp"
@@ -16,8 +16,8 @@ namespace fmri
private:
std::size_t faceCount;
std::vector<float> vertexBuffer;
std::vector<float> colorBuffer;
std::vector<int> indexBuffer;
std::unique_ptr<float[]> vertexBuffer;
std::unique_ptr<float[]> colorBuffer;
std::unique_ptr<int[]> indexBuffer;
};
}