Added Vertex

This commit is contained in:
Daniel Brunner
2017-08-16 21:45:00 +02:00
parent 8a48c28fb5
commit d3779b8e64
3 changed files with 36 additions and 2 deletions

View File

@@ -4,10 +4,12 @@ CONFIG -= qt
DEFINES -= UNICODE QT_LARGEFILE_SUPPORT
HEADERS += \
shader.h
shader.h \
vertex.h
SOURCES += main.cpp \
shader.cpp
shader.cpp \
vertex.cpp
LIBS += -lstdc++ -lGL -lGLEW -lSDL2

12
vertex.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include "vertex.h"
Vertex::Vertex(const glm::vec3 &pos) :
m_pos(pos)
{
}
Vertex::~Vertex()
{
}

20
vertex.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef VERTEX_H
#define VERTEX_H
#include <glm/glm.hpp>
class Vertex
{
public:
explicit Vertex(const glm::vec3 &pos);
virtual ~Vertex();
private:
//disable copy
Vertex(const Vertex &) = delete;
Vertex &operator=(const Vertex &) = delete;
glm::vec3 m_pos;
};
#endif // VERTEX_H