#include <stdbool.h>
#include <assert.h>
#include <signal.h>
+#include <unistd.h>
#ifdef _WIN32
#pragma comment(linker, "/subsystem:windows")
demo->curFrame++;
if (demo->frameCount != INT32_MAX && demo->curFrame == demo->frameCount)
demo->quit = true;
+ sleep(1);
}
}
static void
handle_ping(void *data, struct wl_shell_surface *shell_surface,
uint32_t serial) {
+ printf("%s\n", __func__);
wl_shell_surface_pong(shell_surface, serial);
}
static void
handle_configure(void *data, struct wl_shell_surface *shell_surface,
uint32_t edges, int32_t width, int32_t height) {
+ printf("%s, (%d, %d)\n", __func__, width, height);
}
static void
demo_init_connection(demo);
demo_init_vk(demo);
- demo->width = 300;
- demo->height = 300;
+ demo->width = 1440;
+ demo->height = 2560;
demo->depthStencil = 1.0;
demo->depthIncrement = -0.01f;
}