worked on OpenGL ES
This commit is contained in:
23
map/Geometry.h
Normal file
23
map/Geometry.h
Normal 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
|
||||
Reference in New Issue
Block a user