manage data in vectors
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <QOpenGLShaderProgram>
|
||||
#include <QOpenGLBuffer>
|
||||
#include <QOpenGLTexture>
|
||||
#include <QVector>
|
||||
|
||||
class GeometryEngine : protected QOpenGLFunctions
|
||||
{
|
||||
@@ -11,15 +12,15 @@ public:
|
||||
GeometryEngine();
|
||||
virtual ~GeometryEngine();
|
||||
|
||||
void drawGeometry(QOpenGLShaderProgram *program);
|
||||
|
||||
private:
|
||||
QOpenGLBuffer m_arrayBuf;
|
||||
QOpenGLBuffer m_indexBuf;
|
||||
QVector<QOpenGLTexture*> m_textures;
|
||||
|
||||
void initCubeGeometry();
|
||||
void initTexture();
|
||||
|
||||
QOpenGLBuffer arrayBuf;
|
||||
QOpenGLBuffer indexBuf;
|
||||
|
||||
QOpenGLTexture *texture;
|
||||
public:
|
||||
void drawGeometry(QOpenGLShaderProgram *program);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user