Added mesh type and updated colors

This commit is contained in:
Pasha Bibko
2025-11-23 18:05:59 +00:00
parent 02fe285a9d
commit ed9d01010a
6 changed files with 63 additions and 29 deletions

View File

@@ -4,10 +4,7 @@
namespace PB::Renderer
{
struct Vertex2D
{
float x, y;
};
struct Mesh;
class VulkanManager
{
@@ -95,7 +92,7 @@ namespace PB::Renderer
*/
static bool RenderPass(GLFWwindow* window);
static void CreateNewRenderObject(Color color, const std::vector<float>& vertices, const std::vector<uint32_t>& indices);
static void CreateNewRenderObject(Color color, Mesh mesh);
private:
// === Internal helper structs === //