Move grid panel render mapping to renderer gl

This commit is contained in:
2026-06-02 08:39:54 +02:00
parent 7280678593
commit 92e9de0441
6 changed files with 74 additions and 20 deletions

View File

@@ -100,6 +100,8 @@ 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;
constexpr std::uint32_t gl_map_read_bit = 0x0001U;
constexpr std::uint8_t gl_boolean_false = 0U;
constexpr std::uint8_t gl_boolean_true = 1U;
[[nodiscard]] bool contains(std::string_view text, std::string_view needle) noexcept
{
@@ -544,6 +546,26 @@ std::uint32_t rgba8_internal_format() noexcept
return gl_rgba8;
}
std::uint32_t rgba16f_internal_format() noexcept
{
return gl_rgba16f;
}
std::uint32_t rgba32f_internal_format() noexcept
{
return gl_rgba32f;
}
std::uint8_t color_write_disabled() noexcept
{
return gl_boolean_false;
}
std::uint8_t color_write_enabled() noexcept
{
return gl_boolean_true;
}
std::uint32_t linear_texture_filter() noexcept
{
return gl_linear;

View File

@@ -111,6 +111,10 @@ struct OpenGlReadbackFormat {
[[nodiscard]] std::uint32_t add_blend_equation() noexcept;
[[nodiscard]] std::uint32_t max_blend_equation() noexcept;
[[nodiscard]] std::uint32_t rgba8_internal_format() noexcept;
[[nodiscard]] std::uint32_t rgba16f_internal_format() noexcept;
[[nodiscard]] std::uint32_t rgba32f_internal_format() noexcept;
[[nodiscard]] std::uint8_t color_write_disabled() noexcept;
[[nodiscard]] std::uint8_t color_write_enabled() noexcept;
[[nodiscard]] std::uint32_t linear_texture_filter() noexcept;
[[nodiscard]] std::uint32_t linear_mipmap_linear_texture_filter() noexcept;
[[nodiscard]] std::uint32_t nearest_texture_filter() noexcept;