/usr/include/Inventor/misc/SoGLDriverDatabase.h is in libcoin80-dev 3.1.4~abc9f50-4ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | #ifndef SOGLDRIVERDATABASE_H
#define SOGLDRIVERDATABASE_H
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\**************************************************************************/
#include <Inventor/C/glue/gl.h>
#include <Inventor/lists/SbList.h>
class SoGLDriver;
class SoGLDriverDatabaseP;
class SbName;
class COIN_DLL_API SoGLDriverDatabase {
public:
static SbBool isSupported(const cc_glglue * context, const SbName & feature);
static SbBool isBroken(const cc_glglue * context, const SbName & feature);
static SbBool isSlow(const cc_glglue * context, const SbName & feature);
static SbBool isFast(const cc_glglue * context, const SbName & feature);
static SbName getComment(const cc_glglue * context, const SbName & feature);
static void loadFromBuffer(const char * buffer);
static void loadFromFile(const SbName & filename);
static void addBuffer(const char * buffer);
static void addFile(const SbName & filename);
static void addFeature(const SbName & feature, const SbName & comment);
public:
static void init(void);
private:
static SoGLDriverDatabaseP * pimpl(void);
};
/**************************************************************************/
// OpenGL features that can't be checked with a single GL_ARB/EXT extension test
#define SO_GL_MULTIDRAW_ELEMENTS "COIN_multidraw_elements"
#define SO_GL_POLYGON_OFFSET "COIN_polygon_offset"
#define SO_GL_TEXTURE_OBJECT "COIN_texture_object"
#define SO_GL_3D_TEXTURES "COIN_3d_textures"
#define SO_GL_MULTITEXTURE "COIN_multitexture"
#define SO_GL_TEXSUBIMAGE "COIN_texsubimage"
#define SO_GL_2D_PROXY_TEXTURES "COIN_2d_proxy_textures"
#define SO_GL_TEXTURE_EDGE_CLAMP "COIN_texture_edge_clamp"
#define SO_GL_TEXTURE_COMPRESSION "COIN_texture_compression"
#define SO_GL_COLOR_TABLES "COIN_color_tables"
#define SO_GL_COLOR_SUBTABLES "COIN_color_subtables"
#define SO_GL_PALETTED_TEXTURES "COIN_paletted_textures"
#define SO_GL_BLEND_EQUATION "COIN_blend_equation"
#define SO_GL_VERTEX_ARRAY "COIN_vertex_array"
#define SO_GL_NV_VERTEX_ARRAY_RANGE "COIN_nv_vertex_array_range"
#define SO_GL_VERTEX_BUFFER_OBJECT "COIN_vertex_buffer_object"
#define SO_GL_ARB_FRAGMENT_PROGRAM "COIN_arb_fragment_program"
#define SO_GL_ARB_VERTEX_PROGRAM "COIN_arb_vertex_program"
#define SO_GL_ARB_VERTEX_SHADER "COIN_arb_vertex_shader"
#define SO_GL_ARB_SHADER_OBJECT "COIN_arb_shader_object"
#define SO_GL_OCCLUSION_QUERY "COIN_occlusion_query"
#define SO_GL_FRAMEBUFFER_OBJECT "COIN_framebuffer_object"
#define SO_GL_ANISOTROPIC_FILTERING "COIN_anisotropic_filtering"
#define SO_GL_SORTED_LAYERS_BLEND "COIN_sorted_layers_blend"
#define SO_GL_BUMPMAPPING "COIN_bumpmapping"
#define SO_GL_VBO_IN_DISPLAYLIST "COIN_vbo_in_displaylist"
#define SO_GL_NON_POWER_OF_TWO_TEXTURES "COIN_non_power_of_two_textures"
#define SO_GL_GENERATE_MIPMAP "COIN_generate_mipmap"
#define SO_GL_GLSL_CLIP_VERTEX_HW "COIN_GLSL_clip_vertex_hw"
#endif // SOGLDATABASE_H
|