Move font render mapping to renderer gl

This commit is contained in:
2026-06-02 07:36:09 +02:00
parent 6fc8b9e5d2
commit d0b0dc3865
6 changed files with 93 additions and 22 deletions

View File

@@ -91,6 +91,7 @@ constexpr std::uint32_t gl_texture_wrap_r = 0x8072U;
constexpr std::uint32_t gl_texture_border_color = 0x1004U;
constexpr std::uint32_t gl_repeat = 0x2901U;
constexpr std::uint32_t gl_clamp_to_edge = 0x812FU;
constexpr std::uint32_t gl_texture0 = 0x84C0U;
constexpr std::uint32_t gl_pixel_pack_buffer = 0x88EBU;
constexpr std::uint32_t gl_pixel_unpack_buffer = 0x88ECU;
constexpr std::uint32_t gl_stream_read = 0x88E1U;
@@ -539,6 +540,11 @@ std::uint32_t repeat_texture_wrap() noexcept
return gl_repeat;
}
std::uint32_t active_texture_unit(std::uint32_t unit_index) noexcept
{
return gl_texture0 + unit_index;
}
std::uint32_t texture_cube_map_target() noexcept
{
return gl_texture_cube_map;