Refactorings.

This commit is contained in:
2021-06-08 21:26:16 +02:00
parent 6ad4351118
commit cf8f9dee6f
5 changed files with 42 additions and 22 deletions

22
src/main.c Normal file
View 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;
}