ld33_umonster
diff src/opengl.c @ 0:4a6683050e29
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 22 Aug 2015 07:15:00 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/opengl.c Sat Aug 22 07:15:00 2015 +0300 1.3 @@ -0,0 +1,16 @@ 1.4 +#include "opengl.h" 1.5 + 1.6 +struct GLCaps glcaps; 1.7 + 1.8 +int init_opengl() 1.9 +{ 1.10 + glewInit(); 1.11 + 1.12 + glcaps.shaders = GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader; 1.13 + glcaps.fsaa = GLEW_ARB_multisample; 1.14 + glcaps.sep_spec = GLEW_EXT_separate_specular_color; 1.15 + glcaps.fbo = GLEW_ARB_framebuffer_object; 1.16 + glcaps.shadow = GLEW_ARB_shadow | GLEW_SGIX_shadow; 1.17 + 1.18 + return 0; 1.19 +}