X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.cpp;h=072bb38d38ab2350c2da582c6946fe86c80b33ac;hb=071459d05271dd9376364fc3d8c33bf091724321;hp=4a34a111dd35d6ca586780d49eaa0e1d323fecb8;hpb=fc6d2184fab32a2af4ccb1a41c2af4283cba47a9;p=blank.git diff --git a/src/world/Entity.cpp b/src/world/Entity.cpp index 4a34a11..072bb38 100644 --- a/src/world/Entity.cpp +++ b/src/world/Entity.cpp @@ -30,10 +30,10 @@ Entity::Entity() noexcept } -void Entity::SetShape(const Shape *s, const glm::vec3 &color) { +void Entity::SetShape(const Shape *s, const glm::vec3 &color, float texture) { shape = s; model_buffer.Clear(); - shape->Vertices(model_buffer.vertices, model_buffer.normals, model_buffer.indices); + shape->Vertices(model_buffer, texture); model_buffer.colors.resize(shape->VertexCount(), color); model.Update(model_buffer); }