Sloth loves Chunk!
This commit is contained in:
		
							
								
								
									
										25
									
								
								SQCSim2021/tool.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								SQCSim2021/tool.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
#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__
 | 
			
		||||
		Reference in New Issue
	
	Block a user