From 43821b0cffc5aa419c0218992f06f8962ae54a13 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Wed, 8 May 2024 17:56:29 -0300 Subject: refa Rename graphical engine to BluCat --- src/static_mesh.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/static_mesh.cpp') 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*>(obj); + auto ptr = static_cast*>(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 *ptr; + std::shared_ptr *ptr; mrb_get_args(mrb, "z", &file_path); - ptr = (std::shared_ptr*)DATA_PTR(self); + ptr = (std::shared_ptr*)DATA_PTR(self); if(ptr) mrb_free(mrb, ptr); - ptr = (std::shared_ptr*)mrb_malloc( - mrb, sizeof(std::shared_ptr)); + ptr = (std::shared_ptr*)mrb_malloc( + mrb, sizeof(std::shared_ptr)); - new(ptr)std::shared_ptr( - std::make_shared(file_path)); + new(ptr)std::shared_ptr( + std::make_shared(file_path)); mrb_data_init(self, ptr, &cg_static_mesh_type); return self; -- cgit v1.2.3