diff options
Diffstat (limited to 'mogltk/glbase.cpp')
-rw-r--r-- | mogltk/glbase.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mogltk/glbase.cpp b/mogltk/glbase.cpp index 0993b43..dabf28a 100644 --- a/mogltk/glbase.cpp +++ b/mogltk/glbase.cpp @@ -112,3 +112,11 @@ void mogltk::glbase::Leave2DMode(void) { twoD = 0; } + +void mogltk::glbase::Flip() { + SDL_GL_SwapBuffers(); +} + +bool mogltk::glbase::is2D() { + return twoD; +} |