Move shape buffer mapping to renderer gl
This commit is contained in:
@@ -11,9 +11,13 @@ constexpr std::uint32_t gl_unsigned_short = 0x1403U;
|
||||
constexpr std::uint32_t gl_unsigned_int = 0x1405U;
|
||||
constexpr std::uint32_t gl_float = 0x1406U;
|
||||
constexpr std::uint32_t gl_half_float = 0x140BU;
|
||||
constexpr std::uint32_t gl_false = 0U;
|
||||
constexpr std::uint32_t gl_points = 0x0000U;
|
||||
constexpr std::uint32_t gl_lines = 0x0001U;
|
||||
constexpr std::uint32_t gl_triangles = 0x0004U;
|
||||
constexpr std::uint32_t gl_array_buffer = 0x8892U;
|
||||
constexpr std::uint32_t gl_element_array_buffer = 0x8893U;
|
||||
constexpr std::uint32_t gl_static_draw = 0x88E4U;
|
||||
constexpr std::uint32_t gl_red = 0x1903U;
|
||||
constexpr std::uint32_t gl_rgb = 0x1907U;
|
||||
constexpr std::uint32_t gl_rgba = 0x1908U;
|
||||
@@ -329,6 +333,31 @@ std::uint32_t primitive_mode_for_stroke_count(std::uint32_t vertex_or_index_coun
|
||||
return gl_lines;
|
||||
}
|
||||
|
||||
std::uint32_t array_buffer_target() noexcept
|
||||
{
|
||||
return gl_array_buffer;
|
||||
}
|
||||
|
||||
std::uint32_t element_array_buffer_target() noexcept
|
||||
{
|
||||
return gl_element_array_buffer;
|
||||
}
|
||||
|
||||
std::uint32_t static_draw_buffer_usage() noexcept
|
||||
{
|
||||
return gl_static_draw;
|
||||
}
|
||||
|
||||
std::uint32_t vertex_attribute_float_component_type() noexcept
|
||||
{
|
||||
return gl_float;
|
||||
}
|
||||
|
||||
std::uint32_t vertex_attribute_not_normalized() noexcept
|
||||
{
|
||||
return gl_false;
|
||||
}
|
||||
|
||||
std::uint32_t texture_cube_map_target() noexcept
|
||||
{
|
||||
return gl_texture_cube_map;
|
||||
|
||||
@@ -75,6 +75,11 @@ struct OpenGlReadbackFormat {
|
||||
[[nodiscard]] std::uint32_t index_type_for_index_size(std::uint32_t index_size_bytes) noexcept;
|
||||
[[nodiscard]] std::uint32_t primitive_mode_for_fill_count(std::uint32_t vertex_or_index_count) noexcept;
|
||||
[[nodiscard]] std::uint32_t primitive_mode_for_stroke_count(std::uint32_t vertex_or_index_count) noexcept;
|
||||
[[nodiscard]] std::uint32_t array_buffer_target() noexcept;
|
||||
[[nodiscard]] std::uint32_t element_array_buffer_target() noexcept;
|
||||
[[nodiscard]] std::uint32_t static_draw_buffer_usage() noexcept;
|
||||
[[nodiscard]] std::uint32_t vertex_attribute_float_component_type() noexcept;
|
||||
[[nodiscard]] std::uint32_t vertex_attribute_not_normalized() noexcept;
|
||||
[[nodiscard]] std::uint32_t texture_cube_map_target() noexcept;
|
||||
[[nodiscard]] std::uint32_t cube_map_allocation_face_texture_target(std::uint32_t face_index) noexcept;
|
||||
[[nodiscard]] std::span<const std::uint32_t> panopainter_cube_face_texture_targets() noexcept;
|
||||
|
||||
Reference in New Issue
Block a user