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

@@ -39,7 +39,7 @@ int main()
const std::vector<uint32_t> indices = {0, 1, 2};
VulkanManager::CreateNewRenderObject(vertices, indices);
VulkanManager::CreateNewRenderObject({1.0f, 0.0f, 0.0f, 1.0f}, vertices, indices);
const std::vector otherVertices = {
-0.9f, 0.0f,
@@ -47,7 +47,7 @@ int main()
0.0f, -0.9f
};
VulkanManager::CreateNewRenderObject(otherVertices, indices);
VulkanManager::CreateNewRenderObject({1.0f, 1.0f, 0.0f, 1.0f}, otherVertices, indices);
/* Polls window events whilst it is still open */
while (!glfwWindowShouldClose(window))