thatscringebro 9dfd911bff Init
2023-02-16 09:26:40 -05:00

26 lines
491 B
C++
Executable File

#ifndef TOOL_H__
#define TOOL_H__
#include <string>
// TODO ne pas oublier de ne pas definir DEBUGMODE en release
#ifndef DEBUGMODE
#define DEBUGMODE
#endif
#ifdef DEBUGMODE
# define CHECK_GL_ERROR() Tool::CheckGLError(__FILE__, __LINE__);
#else
# define CHECK_GL_ERROR()
#endif
class Tool
{
public:
static bool LoadTextFile(const std::string& filename, std::string& buffer);
static void CheckGLError(const char* file, int line);
};
#endif // TOOL_H__