Added custom colors

This commit is contained in:
Pasha Bibko
2025-11-21 23:04:51 +00:00
parent ff7f3e86ee
commit 2eb42da357
8 changed files with 29 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ namespace PB::Renderer
*/
static bool RenderPass(GLFWwindow* window);
static void CreateNewRenderObject(const std::vector<float>& vertices, const std::vector<uint32_t>& indices);
static void CreateNewRenderObject(Color color, const std::vector<float>& vertices, const std::vector<uint32_t>& indices);
private:
// === Internal helper structs === //
@@ -108,6 +108,8 @@ namespace PB::Renderer
VkBuffer IndexBuffer;
VkDeviceMemory IndexBufferMemory;
Color DrawColor;
uint32_t IndexCount;
};