Allow hiding non-activated nodes.

Refs #2.
This commit is contained in:
2018-03-29 15:31:38 +02:00
parent 59ecb91713
commit c0032aa688
4 changed files with 48 additions and 26 deletions

View File

@@ -16,10 +16,10 @@ namespace fmri
private:
Ordering ordering;
std::size_t faceCount;
std::unique_ptr<float[]> vertexBuffer;
std::unique_ptr<float[]> colorBuffer;
std::unique_ptr<int[]> indexBuffer;
std::vector<float> vertexBuffer;
std::vector<float> colorBuffer;
std::vector<int> indexBuffer;
std::vector<int> activeIndexBuffer;
static constexpr const std::array<float, 12> NODE_SHAPE = {
-0.5f, 0, 0.5f,
@@ -37,6 +37,6 @@ namespace fmri
void setVertexPositions(int vertexNo, float *destination);
// Various functions defining the way the nodes will be aligned.
void initializeNodePositions();
void initializeNodePositions(std::size_t entries);
};
}