31 #include <eq/fabric/errorRegistry.h>
32 #include <eq/fabric/global.h>
42 const std::string text;
45 ErrorData _errors[] = {
46 { ERROR_EVOLVE_ARB_SHADER_OBJECTS_MISSING,
47 "GL_ARB_shader_objects extension missing" },
48 { ERROR_EVOLVE_EXT_BLEND_FUNC_SEPARATE_MISSING,
49 "GL_ARB_shader_objects extension missing" },
50 { ERROR_EVOLVE_ARB_MULTITEXTURE_MISSING,
51 "GL_ARB_shader_objects extension missing" },
52 { ERROR_EVOLVE_LOADSHADERS_FAILED,
"Can't load shaders" },
53 { ERROR_EVOLVE_LOADMODEL_FAILED,
"Can't load model" },
54 { ERROR_EVOLVE_MAPOBJECT_FAILED,
55 "Mapping data from application process failed" },
65 for(
size_t i=0; _errors[i].code != 0; ++i )
66 registry.
setString( _errors[i].code, _errors[i].text );
73 for(
size_t i=0; _errors[i].code != 0; ++i )
The registry translating error codes to strings.
void exitErrors()
Clear eVolve-specific error codes.
void setString(const uint32_t error, const std::string &text)
Set an error string for the given error code.
void initErrors()
Set up eVolve-specific error codes.
static ErrorRegistry & getErrorRegistry()
void eraseString(const uint32_t error)
Clear a given error code string.