X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fentity.cpp;h=52502c26f256aceebcd7b2a30958cf98ec84c9ff;hb=46509f82dcea114b004c53a7f3a9608f2518077f;hp=b24835030884be373db2d3a9adfcaeea2d8f42b5;hpb=88620c3c816c47b32a90758f40efe5d02c50bbfa;p=blank.git diff --git a/src/entity.cpp b/src/entity.cpp index b248350..52502c2 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -1,6 +1,7 @@ #include "entity.hpp" -#include "chunk.hpp" +#include "geometry.hpp" +#include "shape.hpp" #include #include @@ -25,7 +26,7 @@ Entity::Entity() } -void Entity::SetShape(Shape *s, const glm::vec3 &color) { +void Entity::SetShape(const Shape *s, const glm::vec3 &color) { shape = s; model_buffer.Clear(); shape->Vertices(model_buffer.vertices, model_buffer.normals, model_buffer.indices);