Added custom colors
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user