2 \brief core rendering support
3 \details initializes the SDL-based rendering target and context.
6 ----------------------------------------------------------------------------*/
9 #include <SDL2/SDL_image.h>
10 #include <SDL2/SDL_ttf.h>
12 #define ERROR_BUFFER_SIZE
15 const char * video_get_error(void);
16 void video_quit(void);
18 static char *video_error
= 0;
22 { if (!gladLoadGLLoader((GLADloadproc
) SDL_GL_GetProcAddress
))
23 { renderer_error
= "Failed to initialize OpenGL context";
26 printf("OGL %d.%d\n", GLVersion
.major
, GLVersion
.minor
);
32 { return renderer_error
;