Major refactoring, removed the usage of the global header and replaced with getters and setters. Cleaned up headers and what is included.

This commit is contained in:
2024-11-24 18:12:29 -06:00
parent d8c82d3351
commit f8bd7fdf3b
22 changed files with 708 additions and 706 deletions

View File

@@ -1,20 +1,16 @@
#pragma once
#include "../global.h"
#include "../devicelibrary.h"
#include "buffers.h"
#include "texture.h"
#include <fstream>
#define VK_NO_PROTOTYPES
#include "volk.h"
namespace graphics_pipeline {
class Graphics {
public:
static void createGraphicsPipeline();
static void destroyGraphicsPipeline();
static void createFramebuffers();
static void destroyFramebuffers();
static void createCommandPool();
static void destroyCommandPool();
static void createCommandBuffer();
static void recordCommandBuffer(VkCommandBuffer cmndBuffer, uint32_t imageIndex);
};
}
class Graphics {
public:
static void createGraphicsPipeline();
static void destroyGraphicsPipeline();
static void createFramebuffers();
static void destroyFramebuffers();
static void createCommandPool();
static void destroyCommandPool();
static void createCommandBuffer();
static void recordCommandBuffer(VkCommandBuffer cmndBuffer,
uint32_t imageIndex);
};