display all models from a mesh,
problem, apply different model matrices for each model, solution give a list of all models to ogl controller, where they are handled, next steps: find solution for wrong rotation + draw ALL models instead of only the first
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <gl\glfw3.h>
|
||||
#include <glm\glm.hpp>
|
||||
#include <vector>
|
||||
#include "Object.h"
|
||||
|
||||
class OpenGLController
|
||||
{
|
||||
@@ -50,6 +51,7 @@ private:
|
||||
std::vector<GLfloat> vfVertices;
|
||||
std::vector<GLfloat> vfUV;
|
||||
std::uint32_t ui32MeshSize;
|
||||
std::vector<Modl*> vModels;
|
||||
|
||||
// transformation ===============
|
||||
//values
|
||||
|
||||
Reference in New Issue
Block a user