Remove VulkanState dependency
Passing VulkanState everywhere (including windowLoop) made no sense. I know that "globals are evil", but this is the best solution for now.
This commit is contained in:
1 parent
e06288320d
commit
6781c1cff1
16 files changed
+285
-272
No files matched your search
@@ -96,11 +96,11 @@ uint16_t windowInit()
|
||||
return WINDOW_ERROR_NO_ERROR;
|
||||
}
|
||||
|
||||
uint16_t windowLoop(rse::graphics::vulkanbase::VulkanState& vulkan_state)
|
||||
uint16_t windowLoop()
|
||||
{
|
||||
while (!glfwWindowShouldClose(gpWindowHandle)) {
|
||||
glfwPollEvents();
|
||||
rse::graphics::vulkanbase::drawFrame(vulkan_state);
|
||||
rse::graphics::vulkanbase::drawFrame();
|
||||
}
|
||||
|
||||
return WINDOW_ERROR_NO_ERROR;
|
||||
|
||||
Reference in new issue
Block a user