diff --git a/ogl_editor/src/main.c b/ogl_editor/src/main.c deleted file mode 100644 index a3ea0d5..0000000 --- a/ogl_editor/src/main.c +++ /dev/null @@ -1,43 +0,0 @@ -#include "Editor.h" -#include -#include - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -int main() -{ - if (!glfwInit()) - { - printf("Failed to initialize GLFW\n" ); - return -1; - } - - if (!glfwOpenWindow(800, 600, 0, 0, 0, 0, 0, 0, GLFW_WINDOW)) - { - printf("Failed to open GLFW window\n" ); - return -1; - } - - glfwSetWindowTitle("RocketEditor"); - - Editor_create(); - - do - { - int width, height; - - glfwGetWindowSize(&width, &height); - EMGFXBackend_updateViewPort(width, height); - Editor_setWindowSize(width, height); - - Editor_update(); - - glfwSwapBuffers(); - } - while (glfwGetKey(GLFW_KEY_ESC) != GLFW_PRESS && glfwGetWindowParam(GLFW_OPENED)); - - glfwTerminate(); - - return 0; -} -