copied from the old Ppoject:

shaders,
object class
Modified to use better names and use Qt things
This commit is contained in:
Anakin
2016-12-11 17:46:22 +01:00
parent 5faf584d84
commit 53ac8c3e5b
11 changed files with 882 additions and 67 deletions

View File

@@ -1,5 +1,4 @@
#ifndef VERTEX_H
#define VERTEX_H
#pragma once
#include <QVector3D>
@@ -51,5 +50,3 @@ void inline Vertex::setColor(const QVector3D& color) { m_color = color; }
Q_DECL_CONSTEXPR inline int Vertex::positionOffset() { return offsetof(Vertex, m_position); }
Q_DECL_CONSTEXPR inline int Vertex::colorOffset() { return offsetof(Vertex, m_color); }
Q_DECL_CONSTEXPR inline int Vertex::stride() { return sizeof(Vertex); }
#endif // VERTEX_H