worked on OpenGL ES

This commit is contained in:
2016-07-15 16:39:38 +02:00
parent 719a66937e
commit 69dfbe6693
10 changed files with 319 additions and 53 deletions

23
map/Geometry.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef GEOMETRY_H
#define GEOMETRY_H
#include <QOpenGLFunctions>
#include <QOpenGLShaderProgram>
#include <QOpenGLBuffer>
class Geometry : protected QOpenGLFunctions
{
public:
Geometry();
virtual ~Geometry();
void drawCubeGeometry(QOpenGLShaderProgram *program);
private:
void initCubeGeometry();
QOpenGLBuffer arrayBuf;
QOpenGLBuffer indexBuf;
};
#endif // GEOMETRY_H