diff --git a/FluckyGameOpenGL.pro b/FluckyGameOpenGL.pro index b20106a..b7db709 100644 --- a/FluckyGameOpenGL.pro +++ b/FluckyGameOpenGL.pro @@ -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 diff --git a/vertex.cpp b/vertex.cpp new file mode 100644 index 0000000..5b741d6 --- /dev/null +++ b/vertex.cpp @@ -0,0 +1,12 @@ +#include "vertex.h" + +Vertex::Vertex(const glm::vec3 &pos) : + m_pos(pos) +{ + +} + +Vertex::~Vertex() +{ + +} diff --git a/vertex.h b/vertex.h new file mode 100644 index 0000000..66ab62f --- /dev/null +++ b/vertex.h @@ -0,0 +1,20 @@ +#ifndef VERTEX_H +#define VERTEX_H + +#include + +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