galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::log Namespace Reference

Functions

std::string gl_errcode_as_string (const int code) noexcept
 Convert a GL error code to a string.
 
std::vector< std::string > gl_get_all_errors () noexcept
 Returns all GL errors on stack.
 
void gl_add_error (const unsigned int source, const unsigned int type, const unsigned int id, const unsigned int severity, const int length, const char *buf) noexcept
 Insert a message into the OpenGL debug stack.
 
bool physfs_check (const int code) noexcept
 Call a physfs function with error handling and logs a message for you.
 
bool physfs_check (void *ptr) noexcept
 Call a physfs function with error handling and logs a message for you.
 

Function Documentation

◆ gl_errcode_as_string()

std::string galaxy::log::gl_errcode_as_string ( const int code)
nodiscardnoexcept

Convert a GL error code to a string.

Parameters
codeCode to convert.
Returns
String containing error message for that code.

Definition at line 16 of file OpenGLError.cpp.

+ Here is the caller graph for this function:

◆ gl_get_all_errors()

std::vector< std::string > galaxy::log::gl_get_all_errors ( )
nodiscardnoexcept

Returns all GL errors on stack.

Returns
All current code errors, as strings to get definition.

Definition at line 54 of file OpenGLError.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gl_add_error()

void galaxy::log::gl_add_error ( const unsigned int source,
const unsigned int type,
const unsigned int id,
const unsigned int severity,
const int length,
const char * buf )
noexcept

Insert a message into the OpenGL debug stack.

Parameters
sourceThe source of the debug message to insert.
typeThe type of the debug message insert.
idThe user-supplied identifier of the message to insert.
severityThe severity of the debug messages to insert.
lengthThe length string contained in the character array whose address is given by message.
bufThe address of a character array containing the message to insert.

Definition at line 67 of file OpenGLError.cpp.

+ Here is the caller graph for this function:

◆ physfs_check() [1/2]

bool galaxy::log::physfs_check ( const int code)
noexcept

Call a physfs function with error handling and logs a message for you.

Parameters
codeThe code returned by physfs function.
Returns
True if function call succeeded.

Definition at line 18 of file PhysFSError.cpp.

+ Here is the caller graph for this function:

◆ physfs_check() [2/2]

bool galaxy::log::physfs_check ( void * ptr)
noexcept

Call a physfs function with error handling and logs a message for you.

Parameters
ptrPointer returned by physfs function.
Returns
True if function call succeeded.

Definition at line 29 of file PhysFSError.cpp.