All Classes Files Functions Variables Typedefs Pages
LConfig.hpp
Go to the documentation of this file.
1 #pragma once
2 
7 namespace lumina {
8 
9 
10 namespace config {
11  /*****************************************************************************
12  * Modifies the behavior of the logger
13  */
14  // control use of cout and cerr
15  constexpr bool useLogStandardIO = true;
16 
17  // set to true to ignore logs with level Debug (the compiler
18  // can optimize the calls away)
19  constexpr bool ignoreDebugLogs = false;
20 
21  // print debug logs for events that happen every frame?
22  constexpr bool logDebugEveryFrame = false;
23 
24 
25 
26  // should runtime bound checks be performed?
27  constexpr bool debugBoundChecks = true;
28 
29  // Should runtime checks be performed, that will check that the correct
30  // textures are primed when drawing?
31  constexpr bool debugTextureDrawChecks = true;
32 
33  // Should runtime checks be performed, that will check if a texture unit
34  // is primed multiple times?
35  constexpr bool debugTexturePrimeChecks = true;
36 
37  // When creating a GLObject, should it test if a context is current?
38  constexpr bool debugContextCurrentCheck = true;
39 
40  // check if a framebuffer is primed in draw()?
41  constexpr bool debugDrawFrameBufferCheck = true;
42 
43  // reset all state/unbind stuff?
44  constexpr bool resetGLState = true;
45 }
46 
47 } // namespace lumina