summaryrefslogtreecommitdiff
path: root/src/blucat/character.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/blucat/character.cpp')
-rw-r--r--src/blucat/character.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/blucat/character.cpp b/src/blucat/character.cpp
index c13ffef..220295d 100644
--- a/src/blucat/character.cpp
+++ b/src/blucat/character.cpp
@@ -16,8 +16,8 @@
#include "character.hpp"
-#include "../command.hpp"
-#include "../core.hpp"
+#include "command.hpp"
+#include "core.hpp"
#include "font.hpp"
#include "image.hpp"
#include "source_buffer.hpp"
@@ -105,7 +105,7 @@ load_image(void *obj)
}
BluCat::SourceBuffer source_image_buffer{
- cg_core.vk_device_with_swapchain, source_image_raw.data(),
+ BluCat::core.vk_device_with_swapchain, source_image_raw.data(),
image_size};
{ // Create Vulkan image.
@@ -117,7 +117,7 @@ load_image(void *obj)
vk_extent3d.depth = 1;
BluCat::Image::create(
- cg_core.vk_device_with_swapchain,
+ BluCat::core.vk_device_with_swapchain,
&self->character->image,
&self->character->device_memory,
VK_FORMAT_R8G8B8A8_UNORM,
@@ -133,7 +133,7 @@ load_image(void *obj)
}
{ // Copy image from buffer into image.
- auto queue_family{cg_core.vk_device_with_swapchain->
+ auto queue_family{BluCat::core.vk_device_with_swapchain->
get_queue_family_with_presentation()};
auto queue{queue_family->get_queue()};
BluCat::CommandPool command_pool{queue_family, 1};
@@ -179,10 +179,11 @@ unload_image(void *obj)
auto self = static_cast<CharacterBuilder*>(obj);
vkDestroyImage(
- cg_core.vk_device_with_swapchain->device, self->character->image, nullptr);
+ BluCat::core.vk_device_with_swapchain->device, self->character->image,
+ nullptr);
vkFreeMemory(
- cg_core.vk_device_with_swapchain->device, self->character->device_memory,
- nullptr);
+ BluCat::core.vk_device_with_swapchain->device,
+ self->character->device_memory, nullptr);
}
const CommandChain loader{