]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Entity.cpp
textures
[blank.git] / src / world / Entity.cpp
index 4a34a111dd35d6ca586780d49eaa0e1d323fecb8..072bb38d38ab2350c2da582c6946fe86c80b33ac 100644 (file)
@@ -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);
 }