ld33_umonster

annotate 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
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 }