diff options
author | chai <chaifix@163.com> | 2019-01-14 16:40:14 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-14 16:40:14 +0800 |
commit | 98c9825c49a1674f59eafb3253829ca7d5cac3c1 (patch) | |
tree | bdd2a6da72fc998ff884b011a2260dc72537c25f /src/libjin | |
parent | 8b00d67febf133e89f6a0bfabc41feed555dc4a9 (diff) |
*rename source file
Diffstat (limited to 'src/libjin')
-rw-r--r-- | src/libjin/graphics/gl.cpp | 2 | ||||
-rw-r--r-- | src/libjin/graphics/gl.h | 2 | ||||
-rw-r--r-- | src/libjin/graphics/window.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libjin/graphics/gl.cpp b/src/libjin/graphics/gl.cpp index a5d1043..b90a29b 100644 --- a/src/libjin/graphics/gl.cpp +++ b/src/libjin/graphics/gl.cpp @@ -37,7 +37,7 @@ namespace JinEngine { } - bool OpenGL::initContext() + bool OpenGL::loadGL() { // Init glad library. if (!gladLoadGLLoader(SDL_GL_GetProcAddress)) diff --git a/src/libjin/graphics/gl.h b/src/libjin/graphics/gl.h index 7876ffd..e97ebb6 100644 --- a/src/libjin/graphics/gl.h +++ b/src/libjin/graphics/gl.h @@ -56,7 +56,7 @@ namespace JinEngine OpenGL(); ~OpenGL(); - bool initContext(); + bool loadGL(); void init(); diff --git a/src/libjin/graphics/window.cpp b/src/libjin/graphics/window.cpp index 5701772..6171c9d 100644 --- a/src/libjin/graphics/window.cpp +++ b/src/libjin/graphics/window.cpp @@ -86,7 +86,7 @@ namespace JinEngine if (ctx == NULL) return false; - gl.initContext(); + gl.loadGL(); SDL_GL_SetSwapInterval(vsync ? 1 : 0); SDL_GL_MakeCurrent(mWnd, ctx); |