SoGLDriverDatabase(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– SoGLDriverDatabase(3) πŸ’–

okay bestie, gather round, because today we're talking about SoGLDriverDatabase(3) β€” she lives in section 3 of the manual (the library-call girlies) and she is literally the bouncer at the club that keeps your OpenGL driver from doing something embarrassing πŸ’…


✨ NAME ✨

SoGLDriverDatabase β€” the class used for looking up broken/slow features in OpenGL drivers. she's a whole detective πŸ”


🌸 SYNOPSIS 🌸

#include <Inventor/misc/SoGLDriverDatabase.h>

πŸŽ€ Static Public Member Functions πŸŽ€

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)
static void init (void)

look at all those static girlies. no object needed, they just exist. main character energy fr fr πŸ‘‘


πŸ’œ Detailed Description πŸ’œ

The SoGLDriverDatabase class is used for looking up broken/slow features in OpenGL drivers.

so here's the tea β˜• Coin keeps a whole database of drivers where we've caught problems with certain features β€” even when the OpenGL driver is out here claiming it supports them. bold-faced lying, honestly 😭

and why do we care? because this is an effort to avoid application or operating system crashes when Coin attempts to use a specific feature. crashes?? we don't do those. with this database we can either disable the feature entirely, or find another way to handle it for the broken drivers. iconic problem-solving behaviour, no cap 🫢


πŸ¦‹ Member Function Documentation πŸ¦‹

⭐ SbBool SoGLDriverDatabase::isSupported (const cc_glglue * context, const SbName & feature) [static]

a lil convenience function that checks whether feature is supported for context. and the way that it works?? if feature is an OpenGL extension, it first checks if it's actually supported by the driver, and then calls SoGLDriverDatabase::isBroken() to check if the feature is broken for context. double-checking queen πŸ’…

⭐ SbBool SoGLDriverDatabase::isBroken (const cc_glglue * context, const SbName & feature) [static]

checks the driver database to see if feature is tagged as broken. 🩹

⭐ SbBool SoGLDriverDatabase::isSlow (const cc_glglue * context, const SbName & feature) [static]

checks the driver database to see if feature is tagged as being slow. 🐌

⭐ SbBool SoGLDriverDatabase::isFast (const cc_glglue * context, const SbName & feature) [static]

checks the driver database to see if feature is tagged as fast. 🏎️✨

⭐ SbName SoGLDriverDatabase::getComment (const cc_glglue * context, const SbName & feature) [static]

get the comment for feature in context. and if the feature has no entry at all? she returns "undefined". no drama, just facts. also, this provides extensibility to the database 🌈

⭐ void SoGLDriverDatabase::loadFromBuffer (const char * buffer) [static]

load the driver database from buffer πŸ“₯

⭐ void SoGLDriverDatabase::loadFromFile (const SbName & filename) [static]

load the driver database from the file specified in filename πŸ“

⭐ void SoGLDriverDatabase::addBuffer (const char * buffer) [static]

add the XML data in buffer to the driver database 🧚

⭐ void SoGLDriverDatabase::addFile (const SbName & filename) [static]

add the XML data in filename to the driver database 🧚

⭐ void SoGLDriverDatabase::addFeature (const SbName & feature, const SbName & comment) [static]

add a feature to the driver database ✍️


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. yeah, a robot wrote this, and honestly? she ate πŸ€–πŸ’–


🌈 and that's the whole page, bestie 🌈

this was Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00, and you were reading SoGLDriverDatabase(3). go forth and check your driver features before you crash something, ily, mwah πŸ’‹πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from