Merged 15170:15635 from trunk (no conflicts or even merges)
[blender.git] / source / gameengine / Rasterizer / RAS_OpenGLRasterizer / RAS_GLExtensionManager.cpp
1 /**
2  * $Id$
3  * ***** BEGIN GPL LICENSE BLOCK *****
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software Foundation,
17  * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18  *
19  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
20  * All rights reserved.
21  *
22  * The Original Code is: all of this file.
23  *
24  * Contributor(s): none yet.
25  *
26  * ***** END GPL LICENSE BLOCK *****
27  */
28
29 #include <iostream>
30
31 #include "RAS_GLExtensionManager.h"
32
33 namespace bgl
34 {
35         void InitExtensions(bool debug)
36         {
37                 static bool firsttime = true;
38                 
39                 if(firsttime) {
40                         firsttime = false;
41
42                         if(debug) {
43                                 if(GLEW_ATI_pn_triangles)
44                                         std::cout << "Enabled GL_ATI_pn_triangles" << std::endl;
45                                 if(GLEW_ARB_texture_env_combine)
46                                         std::cout << "Detected GL_ARB_texture_env_combine" << std::endl;
47                                 if(GLEW_ARB_texture_cube_map)
48                                         std::cout << "Detected GL_ARB_texture_cube_map" << std::endl;
49                                 if(GLEW_ARB_multitexture)
50                                         std::cout << "Detected GL_ARB_multitexture" << std::endl;
51                                 if(GLEW_ARB_shader_objects)
52                                         std::cout << "Detected GL_ARB_shader_objects" << std::endl;
53                                 if(GLEW_ARB_vertex_shader)
54                                         std::cout << "Detected GL_ARB_vertex_shader" << std::endl;
55                                 if(GLEW_ARB_fragment_shader)
56                                         std::cout << "Detected GL_ARB_fragment_shader" << std::endl;
57                                 if(GLEW_ARB_vertex_program)
58                                         std::cout << "Detected GL_ARB_vertex_program" << std::endl;
59                                 if(GLEW_ARB_depth_texture)
60                                         std::cout << "Detected GL_ARB_depth_texture" << std::endl;
61                                 if(GLEW_EXT_separate_specular_color)
62                                         std::cout << "Detected GL_EXT_separate_specular_color" << std::endl;
63                         }
64                 }
65         }
66 } // namespace bgl
67