50gamp::GampEnv::GampEnv() noexcept
51: DEBUG_GLOBAL(
jau::environment::get(
"gamp").debug ),
53 DEBUG_WT_EVENT(
jau::environment::getBooleanProperty(
"gamp.debug.wt.event", false) ),
54 DEBUG_RENDER_GL_GLSL_CODE(
jau::environment::getBooleanProperty(
"gamp.debug.render.gl.glsl.code", false) ),
55 DEBUG_RENDER_GL_GLSL_STATE(
jau::environment::getBooleanProperty(
"gamp.debug.render.gl.glsl.state", false) ),
56 DEBUG_GRAPH_RENDER(
jau::environment::getBooleanProperty(
"gamp.debug.graph.render", false) )
58 jau::INFO_PRINT(
"GampEnv: Debug[global %d, wt.event %d, render.gl.glsl[code %d, state %d]]",
63 return std::string(
"RC[")
const bool DEBUG_WT_EVENT
Debug all WT event communication.
static GampEnv & get() noexcept
const bool DEBUG_RENDER_GL_GLSL_CODE
Debug shader code, i.e.
const bool DEBUG_GLOBAL
Global Debug flag, retrieved first to triggers GampEnv initialization.
const bool DEBUG_GRAPH_RENDER
Debug Graph Renderer.
const bool DEBUG_RENDER_GL_GLSL_STATE
Debug shader state, i.e.
virtual std::string toString() const
gamp::wt::SurfaceRef m_surface
virtual const jau::type_info & signature() const noexcept
constexpr RenderContextFlags contextFlags() const noexcept
constexpr const jau::util::VersionNumber & version() const
static std::string m_asset_dir
consteval_cxx20 std::string_view name() noexcept
bool exists(const std::string &path, bool verbose_on_error=false) noexcept
Returns true if path exists and is accessible.
std::string lookup_asset_dir(const char *exe_path, const char *asset_file, const char *asset_install_subdir) noexcept
Returns located asset directory if found, otherwise an empty string.
std::string lookup_and_register_asset_dir(const char *exe_path, const char *asset_file="fonts/freefont/FreeSansBold.ttf", const char *asset_install_subdir="gamp") noexcept
std::string resolve_asset(const std::string &asset_file, bool lookup_direct=false) noexcept
std::string asset_dir() noexcept
std::string to_hexstring(value_type const &v, const bool skipLeading0x=false) noexcept
Produce a lower-case hexadecimal string representation with leading 0x in MSB of the given pointer.
__pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros.
void INFO_PRINT(const char *format,...) noexcept
Use for unconditional informal messages, prefix '[elapsed_time] Info: '.