diff options
Diffstat (limited to 'src/static_mesh.cpp')
-rw-r--r-- | src/static_mesh.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/static_mesh.cpp b/src/static_mesh.cpp index 17d7be3..3ae616e 100644 --- a/src/static_mesh.cpp +++ b/src/static_mesh.cpp @@ -18,12 +18,12 @@ #include "orientation_3d.hpp" #include "vector_3d.hpp" -#include "vk/static_mesh.hpp" +#include "blucat/static_mesh.hpp" void cg_free_static_mesh(mrb_state *mrb, void* obj) { - auto ptr = static_cast<std::shared_ptr<VK::StaticMesh>*>(obj); + auto ptr = static_cast<std::shared_ptr<BluCat::StaticMesh>*>(obj); ptr->~shared_ptr(); mrb_free(mrb, ptr); @@ -37,16 +37,16 @@ cg_cStaticMesh_initialize(mrb_state *mrb, mrb_value self) { const char *file_path; - std::shared_ptr<VK::StaticMesh> *ptr; + std::shared_ptr<BluCat::StaticMesh> *ptr; mrb_get_args(mrb, "z", &file_path); - ptr = (std::shared_ptr<VK::StaticMesh>*)DATA_PTR(self); + ptr = (std::shared_ptr<BluCat::StaticMesh>*)DATA_PTR(self); if(ptr) mrb_free(mrb, ptr); - ptr = (std::shared_ptr<VK::StaticMesh>*)mrb_malloc( - mrb, sizeof(std::shared_ptr<VK::StaticMesh>)); + ptr = (std::shared_ptr<BluCat::StaticMesh>*)mrb_malloc( + mrb, sizeof(std::shared_ptr<BluCat::StaticMesh>)); - new(ptr)std::shared_ptr<VK::StaticMesh>( - std::make_shared<VK::StaticMesh>(file_path)); + new(ptr)std::shared_ptr<BluCat::StaticMesh>( + std::make_shared<BluCat::StaticMesh>(file_path)); mrb_data_init(self, ptr, &cg_static_mesh_type); return self; |