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
OpenGLError.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_LOGGING_OPENGLERROR_HPP_
9#define GALAXY_LOGGING_OPENGLERROR_HPP_
10
11#include <string>
12#include <vector>
13
14namespace galaxy
15{
16 namespace log
17 {
25 [[nodiscard]]
26 std::string gl_errcode_as_string(const int code) noexcept;
27
33 [[nodiscard]]
34 std::vector<std::string> gl_get_all_errors() noexcept;
35
46 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;
47 } // namespace log
48} // namespace galaxy
49
50#endif
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.
std::string gl_errcode_as_string(const int code) noexcept
Convert a GL error code to a string.
Timer.hpp galaxy.
Definition Timer.cpp:18