import msh file,

problems:
it is not correctly displayed (vertice and what happend to the texture?)
todo:
improve the import, remove unused garbage,
add move and zoom function
This commit is contained in:
Anakin
2016-12-30 12:36:05 +01:00
parent 82ce8ad72a
commit 353d932147
6 changed files with 801 additions and 65 deletions

View File

@@ -1,5 +1,5 @@
#pragma once
#include "..\Header\FileInterface.h"
#include <QOpenGLFunctions>
#include <QOpenGLShaderProgram>
#include <QOpenGLBuffer>
@@ -17,6 +17,9 @@ private:
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
void initCubeGeometry();
void initTexture();