opengl_learn

Step-by-step introduction to OpenGL
git clone https://0xdd.org/code/opengl_learn.git
Log | Files | Refs | README | LICENSE

_ogl.c (425B)


      1 /*
      2 2018 David DiPaola
      3 licensed under CC0 (public domain, see https://creativecommons.org/publicdomain/zero/1.0/)
      4 */
      5 
      6 #include <stdio.h>
      7 
      8 #include <GLFW/glfw3.h>
      9 
     10 #include "_ogl.h"
     11 
     12 GLFWwindow * _ogl_window        = NULL;
     13 int          _ogl_window_width  = 0;
     14 int          _ogl_window_height = 0;
     15 
     16 void
     17 _ogl_glfw_error(int error, const char * description) {
     18 	fprintf(stderr, "GLFW ERROR: (%i) %s" "\n", error, description);
     19 }
     20