Status¶
Most functions return a status code which can be used to check for errors.
-
enum PuglStatus¶
Return status code.
-
enumerator PUGL_SUCCESS¶
Success.
-
enumerator PUGL_FAILURE¶
Non-fatal failure.
-
enumerator PUGL_UNKNOWN_ERROR¶
Unknown system error.
-
enumerator PUGL_BAD_BACKEND¶
Invalid or missing backend.
-
enumerator PUGL_BAD_CONFIGURATION¶
Invalid view configuration.
-
enumerator PUGL_BAD_PARAMETER¶
Invalid parameter.
-
enumerator PUGL_BACKEND_FAILED¶
Backend initialization failed.
-
enumerator PUGL_REGISTRATION_FAILED¶
Class registration failed.
-
enumerator PUGL_REALIZE_FAILED¶
System view realization failed.
-
enumerator PUGL_SET_FORMAT_FAILED¶
Failed to set pixel format.
-
enumerator PUGL_CREATE_CONTEXT_FAILED¶
Failed to create drawing context.
-
enumerator PUGL_UNSUPPORTED_TYPE¶
Unsupported data type.
-
enumerator PUGL_NO_MEMORY¶
Failed to allocate memory.
-
enumerator PUGL_SUCCESS¶
-
const char *puglStrerror(PuglStatus status)¶
Return a string describing a status code.