Coin Logo http://www.sim.no/
http://www.coin3d.org/

SoGLDriverDatabase.h

00001 #ifndef SOGLDRIVERDATABASE_H
00002 #define SOGLDRIVERDATABASE_H
00003 
00004 /**************************************************************************\
00005  *
00006  *  This file is part of the Coin 3D visualization library.
00007  *  Copyright (C) by Kongsberg Oil & Gas Technologies.
00008  *
00009  *  This library is free software; you can redistribute it and/or
00010  *  modify it under the terms of the GNU General Public License
00011  *  ("GPL") version 2 as published by the Free Software Foundation.
00012  *  See the file LICENSE.GPL at the root directory of this source
00013  *  distribution for additional information about the GNU GPL.
00014  *
00015  *  For using Coin with software that can not be combined with the GNU
00016  *  GPL, and for taking advantage of the additional benefits of our
00017  *  support services, please contact Kongsberg Oil & Gas Technologies
00018  *  about acquiring a Coin Professional Edition License.
00019  *
00020  *  See http://www.coin3d.org/ for more information.
00021  *
00022  *  Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
00023  *  http://www.sim.no/  sales@sim.no  coin-support@coin3d.org
00024  *
00025 \**************************************************************************/
00026 
00027 #include <Inventor/C/glue/gl.h>
00028 #include <Inventor/lists/SbList.h>
00029 
00030 class SoGLDriver;
00031 class SoGLDriverDatabaseP;
00032 class SbName;
00033 
00034 class COIN_DLL_API SoGLDriverDatabase {
00035 public:
00036   static SbBool isSupported(const cc_glglue * context, const SbName & feature);
00037   static SbBool isBroken(const cc_glglue * context, const SbName & feature);
00038   static SbBool isSlow(const cc_glglue * context, const SbName & feature);
00039   static SbBool isFast(const cc_glglue * context, const SbName & feature);
00040 
00041   static SbName getComment(const cc_glglue * context, const SbName & feature);
00042 
00043   static void loadFromBuffer(const char * buffer);
00044   static void loadFromFile(const SbName & filename);
00045 
00046   static void addBuffer(const char * buffer);
00047   static void addFile(const SbName & filename);
00048 
00049   static void addFeature(const SbName & feature, const SbName & comment);
00050 
00051 public:
00052   static void init(void);
00053 
00054 private:
00055   static SoGLDriverDatabaseP * pimpl(void);
00056 };
00057 
00058 /**************************************************************************/
00059 
00060 // OpenGL features that can't be checked with a single GL_ARB/EXT extension test
00061 #define SO_GL_MULTIDRAW_ELEMENTS    "COIN_multidraw_elements"
00062 #define SO_GL_POLYGON_OFFSET        "COIN_polygon_offset"
00063 #define SO_GL_TEXTURE_OBJECT        "COIN_texture_object"
00064 #define SO_GL_3D_TEXTURES           "COIN_3d_textures"
00065 #define SO_GL_MULTITEXTURE          "COIN_multitexture"
00066 #define SO_GL_TEXSUBIMAGE           "COIN_texsubimage"
00067 #define SO_GL_2D_PROXY_TEXTURES     "COIN_2d_proxy_textures"
00068 #define SO_GL_TEXTURE_EDGE_CLAMP    "COIN_texture_edge_clamp"
00069 #define SO_GL_TEXTURE_COMPRESSION   "COIN_texture_compression"
00070 #define SO_GL_COLOR_TABLES          "COIN_color_tables"
00071 #define SO_GL_COLOR_SUBTABLES       "COIN_color_subtables"
00072 #define SO_GL_PALETTED_TEXTURES     "COIN_paletted_textures"
00073 #define SO_GL_BLEND_EQUATION        "COIN_blend_equation"
00074 #define SO_GL_VERTEX_ARRAY          "COIN_vertex_array"
00075 #define SO_GL_NV_VERTEX_ARRAY_RANGE "COIN_nv_vertex_array_range"
00076 #define SO_GL_VERTEX_BUFFER_OBJECT  "COIN_vertex_buffer_object"
00077 #define SO_GL_ARB_FRAGMENT_PROGRAM  "COIN_arb_fragment_program"
00078 #define SO_GL_ARB_VERTEX_PROGRAM    "COIN_arb_vertex_program"
00079 #define SO_GL_ARB_VERTEX_SHADER     "COIN_arb_vertex_shader"
00080 #define SO_GL_ARB_SHADER_OBJECT     "COIN_arb_shader_object"
00081 #define SO_GL_OCCLUSION_QUERY       "COIN_occlusion_query"
00082 #define SO_GL_FRAMEBUFFER_OBJECT    "COIN_framebuffer_object"
00083 #define SO_GL_ANISOTROPIC_FILTERING "COIN_anisotropic_filtering"
00084 #define SO_GL_SORTED_LAYERS_BLEND   "COIN_sorted_layers_blend"
00085 #define SO_GL_BUMPMAPPING           "COIN_bumpmapping"
00086 #define SO_GL_VBO_IN_DISPLAYLIST    "COIN_vbo_in_displaylist"
00087 #define SO_GL_NON_POWER_OF_TWO_TEXTURES "COIN_non_power_of_two_textures"
00088 #define SO_GL_GENERATE_MIPMAP       "COIN_generate_mipmap"
00089 #define SO_GL_GLSL_CLIP_VERTEX_HW   "COIN_GLSL_clip_vertex_hw"
00090 #endif // SOGLDATABASE_H

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Sun May 1 2011 02:58:21 for Coin by Doxygen 1.7.3.