better project structure

This commit is contained in:
2018-12-10 20:18:46 -05:00
commit 8de34bc077
12 changed files with 391 additions and 0 deletions

24
framework/src/hello.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "hello.h"
#include <GLFW/glfw3.h>
#include <stdio.h>
#include <string>
void hello() {
printf("Hello, World!\n");
}
int showWindow(const std::string &title) {
if (!glfwInit()) return EXIT_FAILURE;
GLFWwindow *window = glfwCreateWindow(1280, 720, title.c_str(), nullptr, nullptr);
while (!glfwWindowShouldClose(window)) {
glfwPollEvents();
}
glfwDestroyWindow(window);
glfwTerminate();
return EXIT_SUCCESS;
}