dbf-halloween2015

diff src/opengl.cc @ 3:c37fe5d8a4ed

windows port
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 06:04:28 +0200
parents src/opengl.c@50683c78264e
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/opengl.cc	Sun Nov 01 06:04:28 2015 +0200
     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 +}