Make Vulkan class a global instance
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include "copium/buffer/CommandBuffer.h"
|
||||
#include "copium/buffer/IndexBuffer.h"
|
||||
#include "copium/buffer/RendererVertexBuffer.h"
|
||||
#include "copium/core/Vulkan.h"
|
||||
#include "copium/pipeline/Pipeline.h"
|
||||
#include "copium/renderer/Batch.h"
|
||||
#include "copium/sampler/Texture2D.h"
|
||||
@@ -18,8 +17,6 @@ namespace Copium
|
||||
{
|
||||
CP_DELETE_COPY_AND_MOVE_CTOR(Renderer);
|
||||
private:
|
||||
Vulkan& vulkan;
|
||||
|
||||
DescriptorPool descriptorPool;
|
||||
IndexBuffer ibo;
|
||||
Texture2D emptyTexture;
|
||||
@@ -34,7 +31,7 @@ namespace Copium
|
||||
int textureCount;
|
||||
void* mappedVertexBuffer;
|
||||
public:
|
||||
Renderer(Vulkan& vulkan, VkRenderPass renderPass, DescriptorPool& descriptorPool);
|
||||
Renderer(VkRenderPass renderPass);
|
||||
|
||||
void Quad(const glm::vec2& from, const glm::vec2& to, const glm::vec3& color = glm::vec3{1, 1, 1});
|
||||
void Quad(const glm::vec2& from, const glm::vec2& to, const Sampler& sampler, const glm::vec2& texCoord1 = glm::vec2{0, 0}, const glm::vec2& texCoord2 = glm::vec2{1, 1});
|
||||
|
||||
Reference in New Issue
Block a user