Skip to content
Snippets Groups Projects
Commit 3dc17e38 authored by Sebastian Gaida's avatar Sebastian Gaida
Browse files

[#14][Code] move pollEvents to Core.beginFrame()

hides poll events from User, so i can't be forgotten
parent 05cb8f79
No related branches found
No related tags found
1 merge request!25Resolve "EventPoll mit Lambdas"
...@@ -102,8 +102,6 @@ int main(int argc, const char** argv) { ...@@ -102,8 +102,6 @@ int main(int argc, const char** argv) {
core.beginFrame(); core.beginFrame();
core.renderTriangle(trianglePass, trianglePipeline, windowWidth, windowHeight); core.renderTriangle(trianglePass, trianglePipeline, windowWidth, windowHeight);
core.endFrame(); core.endFrame();
window.pollEvents();
} }
return 0; return 0;
} }
...@@ -154,7 +154,7 @@ namespace vkcv ...@@ -154,7 +154,7 @@ namespace vkcv
if (acquireSwapchainImage() != Result::SUCCESS) { if (acquireSwapchainImage() != Result::SUCCESS) {
return; return;
} }
m_window.pollEvents();
m_Context.getDevice().waitIdle(); // FIMXE: this is a sin against graphics programming, but its getting late - Alex m_Context.getDevice().waitIdle(); // FIMXE: this is a sin against graphics programming, but its getting late - Alex
destroyTemporaryFramebuffers(); destroyTemporaryFramebuffers();
const vk::CommandBufferUsageFlags beginFlags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit; const vk::CommandBufferUsageFlags beginFlags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment