better project structure
This commit is contained in:
24
framework/src/hello.cpp
Normal file
24
framework/src/hello.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user