dbf-halloween2015

annotate 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
rev   line source
nuclear@0 1 #include "opengl.h"
nuclear@0 2
nuclear@0 3 struct GLCaps glcaps;
nuclear@0 4
nuclear@0 5 int init_opengl()
nuclear@0 6 {
nuclear@0 7 glewInit();
nuclear@0 8
nuclear@0 9 glcaps.shaders = GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader;
nuclear@0 10 glcaps.fsaa = GLEW_ARB_multisample;
nuclear@0 11 glcaps.sep_spec = GLEW_EXT_separate_specular_color;
nuclear@0 12 glcaps.fbo = GLEW_ARB_framebuffer_object;
nuclear@0 13 glcaps.shadow = GLEW_ARB_shadow | GLEW_SGIX_shadow;
nuclear@0 14
nuclear@0 15 return 0;
nuclear@0 16 }