Tatooine
errorcheck.h
Go to the documentation of this file.
1#ifndef TATOOINE_GL_ERROR_CHECK_H
2#define TATOOINE_GL_ERROR_CHECK_H
3
4#include "glincludes.h"
5#include <stdexcept>
6#include <string>
7#include <string_view>
8#include "dllexport.h"
9//==============================================================================
10namespace tatooine::gl {
11//==============================================================================
12class gl_error : public std::runtime_error {
13 public:
14 DLL_API gl_error(std::string_view const& function_name,
15 std::string_view const& message);
16};
17//==============================================================================
18class gl_framebuffer_not_complete_error : public std::runtime_error {
19 public:
20 DLL_API explicit gl_framebuffer_not_complete_error(std::string const& what);
21};
22//==============================================================================
23DLL_API auto gl_error_to_string(GLenum err) -> std::string;
24DLL_API auto gl_framebuffer_error_to_string(GLenum status) -> std::string;
25//==============================================================================
26DLL_API auto gl_error_check(std::string_view function) -> void;
27DLL_API auto gl_framebuffer_not_complete_check(GLuint fbo_id) -> void;
28//==============================================================================
29} // namespace tatooine::gl
30//==============================================================================
31#endif
Definition: errorcheck.h:12
DLL_API gl_error(std::string_view const &function_name, std::string_view const &message)
DLL_API gl_framebuffer_not_complete_error(std::string const &what)
Definition: ansiformat.h:6
DLL_API auto gl_error_check(std::string_view function) -> void
DLL_API auto gl_error_to_string(GLenum err) -> std::string
DLL_API auto gl_framebuffer_error_to_string(GLenum status) -> std::string
DLL_API auto gl_framebuffer_not_complete_check(GLuint fbo_id) -> void