Move grid panel render mapping to renderer gl
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user