Added Vertex
This commit is contained in:
@@ -4,10 +4,12 @@ CONFIG -= qt
|
|||||||
DEFINES -= UNICODE QT_LARGEFILE_SUPPORT
|
DEFINES -= UNICODE QT_LARGEFILE_SUPPORT
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
shader.h
|
shader.h \
|
||||||
|
vertex.h
|
||||||
|
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
shader.cpp
|
shader.cpp \
|
||||||
|
vertex.cpp
|
||||||
|
|
||||||
LIBS += -lstdc++ -lGL -lGLEW -lSDL2
|
LIBS += -lstdc++ -lGL -lGLEW -lSDL2
|
||||||
|
|
||||||
|
12
vertex.cpp
Normal file
12
vertex.cpp
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#include "vertex.h"
|
||||||
|
|
||||||
|
Vertex::Vertex(const glm::vec3 &pos) :
|
||||||
|
m_pos(pos)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Vertex::~Vertex()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
20
vertex.h
Normal file
20
vertex.h
Normal 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
|
Reference in New Issue
Block a user