Move framebuffer setup mapping to renderer gl
This commit is contained in:
@@ -24,6 +24,16 @@ constexpr std::uint32_t gl_rgb8 = 0x8051U;
|
||||
constexpr std::uint32_t gl_rgba8 = 0x8058U;
|
||||
constexpr std::uint32_t gl_rgba32f = 0x8814U;
|
||||
constexpr std::uint32_t gl_rgba16f = 0x881AU;
|
||||
constexpr std::uint32_t gl_texture_2d = 0x0DE1U;
|
||||
constexpr std::uint32_t gl_renderbuffer = 0x8D41U;
|
||||
constexpr std::uint32_t gl_depth_component24 = 0x81A6U;
|
||||
constexpr std::uint32_t gl_framebuffer = 0x8D40U;
|
||||
constexpr std::uint32_t gl_read_framebuffer = 0x8CA8U;
|
||||
constexpr std::uint32_t gl_draw_framebuffer = 0x8CA9U;
|
||||
constexpr std::uint32_t gl_draw_framebuffer_binding = 0x8CA6U;
|
||||
constexpr std::uint32_t gl_read_framebuffer_binding = 0x8CAAU;
|
||||
constexpr std::uint32_t gl_color_attachment0 = 0x8CE0U;
|
||||
constexpr std::uint32_t gl_depth_attachment = 0x8D00U;
|
||||
constexpr std::uint32_t gl_framebuffer_complete = 0x8CD5U;
|
||||
constexpr std::uint32_t gl_framebuffer_incomplete_attachment = 0x8CD6U;
|
||||
constexpr std::uint32_t gl_framebuffer_incomplete_missing_attachment = 0x8CD7U;
|
||||
@@ -173,6 +183,61 @@ std::uint32_t pixel_buffer_map_read_access() noexcept
|
||||
return gl_map_read_bit;
|
||||
}
|
||||
|
||||
std::uint32_t texture_2d_target() noexcept
|
||||
{
|
||||
return gl_texture_2d;
|
||||
}
|
||||
|
||||
std::uint32_t renderbuffer_target() noexcept
|
||||
{
|
||||
return gl_renderbuffer;
|
||||
}
|
||||
|
||||
std::uint32_t depth_component24_format() noexcept
|
||||
{
|
||||
return gl_depth_component24;
|
||||
}
|
||||
|
||||
std::uint32_t framebuffer_target() noexcept
|
||||
{
|
||||
return gl_framebuffer;
|
||||
}
|
||||
|
||||
std::uint32_t draw_framebuffer_target() noexcept
|
||||
{
|
||||
return gl_draw_framebuffer;
|
||||
}
|
||||
|
||||
std::uint32_t read_framebuffer_target() noexcept
|
||||
{
|
||||
return gl_read_framebuffer;
|
||||
}
|
||||
|
||||
std::uint32_t draw_framebuffer_binding_query() noexcept
|
||||
{
|
||||
return gl_draw_framebuffer_binding;
|
||||
}
|
||||
|
||||
std::uint32_t read_framebuffer_binding_query() noexcept
|
||||
{
|
||||
return gl_read_framebuffer_binding;
|
||||
}
|
||||
|
||||
std::uint32_t framebuffer_color_attachment() noexcept
|
||||
{
|
||||
return gl_color_attachment0;
|
||||
}
|
||||
|
||||
std::uint32_t framebuffer_depth_attachment() noexcept
|
||||
{
|
||||
return gl_depth_attachment;
|
||||
}
|
||||
|
||||
std::uint32_t framebuffer_complete_status() noexcept
|
||||
{
|
||||
return gl_framebuffer_complete;
|
||||
}
|
||||
|
||||
const char* framebuffer_status_name(std::uint32_t status) noexcept
|
||||
{
|
||||
switch (status) {
|
||||
|
||||
Reference in New Issue
Block a user