Restructure project sources.

This commit is contained in:
2018-03-26 12:17:52 +02:00
parent a206f81eb2
commit 8015b84311
41 changed files with 2 additions and 37 deletions

View File

@@ -0,0 +1,33 @@
#pragma once
#include <map>
#include <memory>
#include "LayerVisualisation.hpp"
#include "LayerData.hpp"
#include "Texture.hpp"
namespace fmri
{
class MultiImageVisualisation : public LayerVisualisation
{
public:
constexpr const static std::array<float, 12> BASE_VERTICES = {
0, -1, -1,
0, 1, -1,
0, 1, 1,
0, -1, 1,
};
explicit MultiImageVisualisation(const LayerData&);
void render() override;
static vector<float> getVertices(const std::vector<float> &nodePositions, float scaling = 1);
static std::vector<float> getTexCoords(int n);
private:
Texture texture;
std::vector<float> vertexBuffer;
std::vector<float> texCoordBuffer;
};
}