SoGLDriverDatabase.h Source File

| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

SoGLDriverDatabase.h
1 #ifndef SOGLDRIVERDATABASE_H
2 #define SOGLDRIVERDATABASE_H
3
4 /**************************************************************************\
5 *
6 * This file is part of the Coin 3D visualization library.
7 * Copyright (C) by Kongsberg Oil & Gas Technologies.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * ("GPL") version 2 as published by the Free Software Foundation.
12 * See the file LICENSE.GPL at the root directory of this source
13 * distribution for additional information about the GNU GPL.
14 *
15 * For using Coin with software that can not be combined with the GNU
16 * GPL, and for taking advantage of the additional benefits of our
17 * support services, please contact Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24 *
25 \**************************************************************************/
26
27 #include <Inventor/C/glue/gl.h>
28 #include <Inventor/lists/SbList.h>
29
30 class SoGLDriver;
31 class SoGLDriverDatabaseP;
32 class SbName;
33
34 class COIN_DLL_API SoGLDriverDatabase {
35 public:
36 static SbBool isSupported(const cc_glglue * context, const SbName & feature);
37 static SbBool isBroken(const cc_glglue * context, const SbName & feature);
38 static SbBool isSlow(const cc_glglue * context, const SbName & feature);
39 static SbBool isFast(const cc_glglue * context, const SbName & feature);
40
41 static SbName getComment(const cc_glglue * context, const SbName & feature);
42
43 static void loadFromBuffer(const char * buffer);
44 static void loadFromFile(const SbName & filename);
45
46 static void addBuffer(const char * buffer);
47 static void addFile(const SbName & filename);
48
49 static void addFeature(const SbName & feature, const SbName & comment);
50
51 public:
52 static void init(void);
53
54 private:
55 static SoGLDriverDatabaseP * pimpl(void);
56 };
57
58 /**************************************************************************/
59
60 // OpenGL features that can't be checked with a single GL_ARB/EXT extension test
61 #define SO_GL_MULTIDRAW_ELEMENTS "COIN_multidraw_elements"
62 #define SO_GL_POLYGON_OFFSET "COIN_polygon_offset"
63 #define SO_GL_TEXTURE_OBJECT "COIN_texture_object"
64 #define SO_GL_3D_TEXTURES "COIN_3d_textures"
65 #define SO_GL_MULTITEXTURE "COIN_multitexture"
66 #define SO_GL_TEXSUBIMAGE "COIN_texsubimage"
67 #define SO_GL_2D_PROXY_TEXTURES "COIN_2d_proxy_textures"
68 #define SO_GL_TEXTURE_EDGE_CLAMP "COIN_texture_edge_clamp"
69 #define SO_GL_TEXTURE_COMPRESSION "COIN_texture_compression"
70 #define SO_GL_COLOR_TABLES "COIN_color_tables"
71 #define SO_GL_COLOR_SUBTABLES "COIN_color_subtables"
72 #define SO_GL_PALETTED_TEXTURES "COIN_paletted_textures"
73 #define SO_GL_BLEND_EQUATION "COIN_blend_equation"
74 #define SO_GL_VERTEX_ARRAY "COIN_vertex_array"
75 #define SO_GL_NV_VERTEX_ARRAY_RANGE "COIN_nv_vertex_array_range"
76 #define SO_GL_VERTEX_BUFFER_OBJECT "COIN_vertex_buffer_object"
77 #define SO_GL_ARB_FRAGMENT_PROGRAM "COIN_arb_fragment_program"
78 #define SO_GL_ARB_VERTEX_PROGRAM "COIN_arb_vertex_program"
79 #define SO_GL_ARB_VERTEX_SHADER "COIN_arb_vertex_shader"
80 #define SO_GL_ARB_SHADER_OBJECT "COIN_arb_shader_object"
81 #define SO_GL_OCCLUSION_QUERY "COIN_occlusion_query"
82 #define SO_GL_FRAMEBUFFER_OBJECT "COIN_framebuffer_object"
83 #define SO_GL_ANISOTROPIC_FILTERING "COIN_anisotropic_filtering"
84 #define SO_GL_SORTED_LAYERS_BLEND "COIN_sorted_layers_blend"
85 #define SO_GL_BUMPMAPPING "COIN_bumpmapping"
86 #define SO_GL_VBO_IN_DISPLAYLIST "COIN_vbo_in_displaylist"
87 #define SO_GL_NON_POWER_OF_TWO_TEXTURES "COIN_non_power_of_two_textures"
88 #define SO_GL_GENERATE_MIPMAP "COIN_generate_mipmap"
89 #define SO_GL_GLSL_CLIP_VERTEX_HW "COIN_GLSL_clip_vertex_hw"
90 #endif // SOGLDATABASE_H
SoGLDriverDatabase
The SoGLDriverDatabase class is used for looking up broken/slow features in OpenGL drivers...
Definition: SoGLDriverDatabase.h:34
SbName
The SbName class stores strings by reference.The class is used by Coin for storing keywords...
Definition: SbName.h:31

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