summaryrefslogtreecommitdiff
path: root/Editor/main.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-11-13 22:07:18 +0800
committerchai <chaifix@163.com>2020-11-13 22:07:18 +0800
commit0edde8a08c6a9a55135dadcff6cd21988d523041 (patch)
tree696f72ba8e82e7aaa8b41bb277557eb34e4ebaaf /Editor/main.cpp
parent2fae5dab12e9b7e3d70e21707c8b358834808451 (diff)
parent6f326b50d86fab5955a37fe317f14888662b055a (diff)
Merge branch 'master' of warmcat.org:/home/git-repo/GameLab
# Conflicts: # Projects/VisualStudio/Editor/Editor.vcxproj # Projects/VisualStudio/Editor/Editor.vcxproj.filters
Diffstat (limited to 'Editor/main.cpp')
-rw-r--r--Editor/main.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/Editor/main.cpp b/Editor/main.cpp
deleted file mode 100644
index 58e5f04..0000000
--- a/Editor/main.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-extern "C" {
-#include "wog.h"
-}
-
-#include <glad/glad.h>
-#include <windows.h>
-
-wog_Window * wnd ;
-
-void* proc(const char *name) {
- return wglGetProcAddress(name);
-}
-
-int main(int argc, char* argv[]) {
- wnd = wog_createWindow("GameLab" , 800, 600, 500, 500, 0);
- wog_show(wnd);
-
- wog_GLContext* ctx = wog_createGLContext(wnd);
- wog_makeCurrent(wnd, ctx);
-
- //gladLoadGLLoader(proc);
- int load = gladLoadGL();
-
-// wog_makeCurrent(wnd, ctx);
-
- while (true) {
- wog_Event e;
- while (wog_pollEvent(wnd, &e)) {
- if (e.type == WOG_ECLOSE)
- goto quit;
- }
- //glViewport(0, 0, 500, 500);
- glClearColor(0.16, 0.16, 0.16, 1);
- glClear(GL_COLOR_BUFFER_BIT);
- glFlush();
-
- wog_swapBuffers(wnd);
- }
-
-quit:
-
- return 0;
-}