TerraForge3D  2.3.1
3D Terrain And Landscape Generator
Model.h
1#pragma once
2
3#include "Base/Mesh.h"
4#include "Base/Texture2D.h"
5
6#include <string>
7
8class Model
9{
10public:
11 Model(std::string name);
12 ~Model();
13
14 void Update();
15 void SetupMeshOnGPU();
16 void UploadToGPU();
17 void Render();
18
19 glm::vec3 position = glm::vec3(0.0f);
20 glm::vec3 rotation = glm::vec3(0.0f);
21 glm::vec3 scale = glm::vec3(1.0f);
22 glm::mat4 modelMatrix = glm::mat4(1.0f);
23 Mesh *mesh;
24 std::string name;
25 uint32_t vao;
26 uint32_t vbo;
27 uint32_t ebo;
28 std::string path = "";
29 Texture2D *diffuse;
30};
Definition: Mesh.h:21
Definition: Model.h:9