Skip to content
Snippets Groups Projects
Commit 07a8d7b8 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

Merge branch '34-resizing-event' of...

Merge branch '34-resizing-event' of gitlab.uni-koblenz.de:vulkan2021/vkcv-framework into 34-resizing-event
parents 55f9c51c 0943c295
Branches
Tags
1 merge request!43Resolve "Resizing-Event"
Pipeline #25420 passed
...@@ -15,7 +15,7 @@ int main(int argc, const char** argv) { ...@@ -15,7 +15,7 @@ int main(int argc, const char** argv) {
true true
); );
vkcv::CameraManager cameraManager(window, window.getWidth(), window.getHeight()); vkcv::CameraManager cameraManager(window, static_cast<float>(window.getWidth()), static_cast<float>(window.getHeight()));
window.initEvents(); window.initEvents();
window.e_resize.add([&cameraManager](int width, int height) { window.e_resize.add([&cameraManager](int width, int height) {
...@@ -49,7 +49,7 @@ int main(int argc, const char** argv) { ...@@ -49,7 +49,7 @@ int main(int argc, const char** argv) {
return 1; return 1;
} }
assert(mesh.vertexGroups.size() > 0); assert(!mesh.vertexGroups.empty());
auto vertexBuffer = core.createBuffer<uint8_t>( auto vertexBuffer = core.createBuffer<uint8_t>(
vkcv::BufferType::VERTEX, vkcv::BufferType::VERTEX,
mesh.vertexGroups[0].vertexBuffer.data.size(), mesh.vertexGroups[0].vertexBuffer.data.size(),
...@@ -154,7 +154,7 @@ int main(int argc, const char** argv) { ...@@ -154,7 +154,7 @@ int main(int argc, const char** argv) {
auto start = std::chrono::system_clock::now(); auto start = std::chrono::system_clock::now();
while (window.isWindowOpen()) { while (window.isWindowOpen()) {
window.pollEvents(); vkcv::Window::pollEvents();
if(window.getHeight() == 0 || window.getWidth() == 0) if(window.getHeight() == 0 || window.getWidth() == 0)
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment