]> git.localhorst.tv Git - blank.git/blobdiff - src/model/shape.cpp
"streamlined" model/VAO handling
[blank.git] / src / model / shape.cpp
index df98f93db827e97d1b6a41a20da902687ccc46cb..e9364bd45498d0f06bea9efa09435998fe502e48 100644 (file)
@@ -5,9 +5,9 @@
 namespace blank {
 
 void Shape::Vertices(
-       Model::Positions &vertex,
-       Model::Normals &normal,
-       Model::Indices &index
+       EntityModel::Positions &vertex,
+       EntityModel::Normals &normal,
+       EntityModel::Indices &index
 ) const {
        for (const auto &pos : vtx_pos) {
                vertex.emplace_back(pos);
@@ -21,11 +21,11 @@ void Shape::Vertices(
 }
 
 void Shape::Vertices(
-       Model::Positions &vertex,
-       Model::Normals &normal,
-       Model::Indices &index,
+       EntityModel::Positions &vertex,
+       EntityModel::Normals &normal,
+       EntityModel::Indices &index,
        const glm::mat4 &transform,
-       Model::Index idx_offset
+       EntityModel::Index idx_offset
 ) const {
        for (const auto &pos : vtx_pos) {
                vertex.emplace_back(transform * glm::vec4(pos, 1.0f));