mirror of
https://github.com/Relintai/sfw.git
synced 2025-02-19 23:14:19 +01:00
30 lines
432 B
C
30 lines
432 B
C
|
#ifndef MESH_INSTACE_H
|
||
|
#define MESH_INSTACE_H
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
#include "opengl.h"
|
||
|
#include "material.h"
|
||
|
#include "mesh.h"
|
||
|
|
||
|
#include "./libs/glm/vec3.hpp"
|
||
|
|
||
|
class MeshInstance {
|
||
|
public:
|
||
|
void render();
|
||
|
|
||
|
MeshInstance();
|
||
|
~MeshInstance();
|
||
|
|
||
|
Material *material;
|
||
|
Mesh *mesh;
|
||
|
|
||
|
glm::vec3 position;
|
||
|
glm::vec3 rotation;
|
||
|
glm::vec3 scale;
|
||
|
|
||
|
std::vector<MeshInstance *> children;
|
||
|
};
|
||
|
|
||
|
#endif // MESH_INSTACE_H
|