better debug
parent
a138c79b80
commit
595917d0b5
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
set(BLT_GRAPHICS_VERSION 1.1.1)
|
set(BLT_GRAPHICS_VERSION 1.1.2)
|
||||||
set(BLT_GRAPHICS_TEST_VERSION 0.0.1)
|
set(BLT_GRAPHICS_TEST_VERSION 0.0.1)
|
||||||
|
|
||||||
project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION})
|
project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION})
|
||||||
|
|
|
@ -99,7 +99,7 @@ namespace blt::gfx
|
||||||
if (c >= atlas.min_char && c <= atlas.max_char)
|
if (c >= atlas.min_char && c <= atlas.max_char)
|
||||||
return *atlas.atlas;
|
return *atlas.atlas;
|
||||||
}
|
}
|
||||||
throw std::runtime_error("Character not found inside atlases with font '" + font + "'");
|
throw std::runtime_error("Character '" + std::to_string(c) + "' not found inside atlases with font '" + font + "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] blt::i32 get_dimensions() const
|
[[nodiscard]] blt::i32 get_dimensions() const
|
||||||
|
|
Loading…
Reference in New Issue