GeometryEngine.h 424 Bytes
Newer Older
Anakin's avatar
Anakin committed
1
#pragma once
2 3 4 5

#include <QOpenGLFunctions>
#include <QOpenGLShaderProgram>
#include <QOpenGLBuffer>
Anakin's avatar
Anakin committed
6
#include <QOpenGLTexture>
7 8 9 10

class GeometryEngine : protected QOpenGLFunctions
{
public:
Anakin's avatar
Anakin committed
11 12
	GeometryEngine();
	virtual ~GeometryEngine();
13

Anakin's avatar
Anakin committed
14
	void drawGeometry(QOpenGLShaderProgram *program);
15 16

private:
Anakin's avatar
Anakin committed
17 18 19 20 21
	void initCubeGeometry();
	void initTexture();

	QOpenGLBuffer arrayBuf;
	QOpenGLBuffer indexBuf;
22

Anakin's avatar
Anakin committed
23
	QOpenGLTexture *texture;
24 25
};