mirror of
https://github.com/Kugelschieber/vk-experiments.git
synced 2026-01-18 14:50:27 +00:00
Refactorings.
This commit is contained in:
22
src/main.c
Normal file
22
src/main.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
#include "window.h"
|
||||
|
||||
void loop(GLFWwindow* window) {
|
||||
while(!glfwWindowShouldClose(window)) {
|
||||
// ...
|
||||
glfwPollEvents();
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
GLFWwindow* window = vkeCreateWindow("Test", 800, 600);
|
||||
|
||||
if(window == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
loop(window);
|
||||
vkeDestroyWindow(window);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user