Added custom colors
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user