draw all models from vector,
window cosmetic, next: texture, calculate modelmatrix from parent
This commit is contained in:
@@ -6,6 +6,13 @@
|
||||
#include <QOpenGLTexture>
|
||||
#include <QVector>
|
||||
|
||||
struct DrawInformation {
|
||||
unsigned int offset;
|
||||
unsigned int size;
|
||||
unsigned int textureIndex;
|
||||
QMatrix4x4 modelMatrix;
|
||||
};
|
||||
|
||||
class GeometryEngine : protected QOpenGLFunctions
|
||||
{
|
||||
public:
|
||||
@@ -16,9 +23,7 @@ private:
|
||||
QOpenGLBuffer m_arrayBuf;
|
||||
QOpenGLBuffer m_indexBuf;
|
||||
QVector<QOpenGLTexture*> m_textures;
|
||||
|
||||
QVector<Model*>* m_models = Q_NULLPTR;
|
||||
QVector<std::string>* m_textureNames = Q_NULLPTR; //TODO: remove, use it local and only hold the textures itself
|
||||
QVector<DrawInformation> m_drawList;
|
||||
|
||||
void initCubeGeometry();
|
||||
void initTexture();
|
||||
|
Reference in New Issue
Block a user