diff --git a/openVulkanoCpp/Vulkan/Scene/LabelDrawableVulkanEncoder.cpp b/openVulkanoCpp/Vulkan/Scene/LabelDrawableVulkanEncoder.cpp index 2dd0ef4..72472c9 100644 --- a/openVulkanoCpp/Vulkan/Scene/LabelDrawableVulkanEncoder.cpp +++ b/openVulkanoCpp/Vulkan/Scene/LabelDrawableVulkanEncoder.cpp @@ -4,12 +4,10 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#include "Scene/Prefabs/LabelDrawable.hpp" -#include "Scene/SimpleDrawable.hpp" +#include "LabelDrawableVulkanEncoder.hpp" #include "Scene/TextDrawable.hpp" #include "Scene/DrawEncoder.hpp" #include "VulkanGeometry.hpp" -#include "Vulkan/VulkanDrawContext.hpp" #include "Vulkan/Scene/VulkanTexture.hpp" #include "Vulkan/Scene/VulkanUniformBuffer.hpp" #include "Vulkan/Scene/VulkanVertexBuffer.hpp" @@ -18,7 +16,6 @@ using namespace OpenVulkano::Scene; namespace OpenVulkano::Vulkan { - void EncodeBackground(LabelDrawable* labelDrawable, VulkanDrawContext* drawContext) { VulkanUniformBuffer* vkBuffer = labelDrawable->GetLabelBuffer()->GetRenderResource(); diff --git a/openVulkanoCpp/Vulkan/Scene/LabelDrawableVulkanEncoder.hpp b/openVulkanoCpp/Vulkan/Scene/LabelDrawableVulkanEncoder.hpp new file mode 100644 index 0000000..4c1e2e8 --- /dev/null +++ b/openVulkanoCpp/Vulkan/Scene/LabelDrawableVulkanEncoder.hpp @@ -0,0 +1,17 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include "Scene/Prefabs/LabelDrawable.hpp" +#include "Vulkan/VulkanDrawContext.hpp" + +namespace OpenVulkano::Vulkan +{ + void EncodeBackground(Scene::LabelDrawable* labelDrawable, VulkanDrawContext* drawContext); + void EncodeTextDrawable(Scene::LabelDrawable* labelDrawable, VulkanDrawContext* drawContext); + void EncodeLabelDrawable(Scene::Drawable* instance, VulkanDrawContext* drawContext); +} \ No newline at end of file