medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9a166fb3216eb920f3440d196784a9687b9bf480
parent 0c4b0f0b1903201738cbce95fcefc89f82886571
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Sep  5 11:49:30 +0200

Un-c++ gl.cc

Diffstat:
gl.cc | 4++--
gl.h | 7++-----
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/gl.cc b/gl.cc @@ -70,7 +70,7 @@ void glfw_error_printer( const int code, const char * const message ) { warnx( "GLFW error %d: %s", code, message ); } -GLFWwindow * GL::init() { +GLFWwindow * gl_init() { glfwSetErrorCallback( glfw_error_printer ); if( !glfwInit() ) { @@ -116,6 +116,6 @@ GLFWwindow * GL::init() { return window; } -void GL::term() { +void gl_term() { glfwTerminate(); } diff --git a/gl.h b/gl.h @@ -3,10 +3,7 @@ #include <GLFW/glfw3.h> -class GL { -public: - static GLFWwindow * init(); - static void term(); -}; +GLFWwindow * gl_init(); +void gl_term(); #endif // _GL_H_