Stuff I've fixed so far.
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
#include "game/DawnGame.hpp"
|
||||
#include "scene/components/display/MeshRenderer.hpp"
|
||||
#include "display/mesh/CubeMesh.hpp"
|
||||
#include "scene/components/display/material/SimpleTexturedMaterial.hpp"
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
@ -17,7 +18,7 @@ SceneItem * ExampleSpin::create(Scene *scene) {
|
||||
mr->mesh = new Mesh();
|
||||
mr->mesh->createBuffers(CUBE_VERTICE_COUNT, CUBE_INDICE_COUNT);
|
||||
CubeMesh::buffer(mr->mesh, glm::vec3(-0.5f, -0.5f, -0.5f), glm::vec3(1, 1, 1), 0, 0);
|
||||
auto mat = item->addComponent<Material>();
|
||||
auto mat = item->addComponent<SimpleTexturedMaterial>();
|
||||
item->addComponent<ExampleSpin>();
|
||||
|
||||
return item;
|
||||
|
Reference in New Issue
Block a user