Nigel Barink
9165e30d0e
* Using import library assimp to incorrectly load a cube.obj * Using a temporary Renderable class as a placeholder for all data needed to render the mesh. * Vertex Array abstraction added
24 lines
539 B
C++
24 lines
539 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <spdlog/spdlog.h>
|
|
#include <MyGraphicsEngine/Mesh.h>
|
|
#include <MyGraphicsEngine/Transform.h>
|
|
#include <include/AssetManager/ModelImporter.h>
|
|
#include <include/MyGraphicsEngine/Buffer.h>
|
|
#include <include/MyGraphicsEngine/VertexArray.h>
|
|
class Renderable {
|
|
private:
|
|
std::vector<BarinkEngine::Mesh> meshes;
|
|
Renderable();
|
|
|
|
public:
|
|
Buffer vertexBuffer;
|
|
Buffer elementBuffer;
|
|
VertexArray VAO;
|
|
Transform transform;
|
|
~Renderable();
|
|
|
|
static Renderable Load();
|
|
void Draw();
|
|
|
|
}; |