light/modules/renderer/private/gl/framebuffers.hpp
light7734 d83e269432
Some checks reported errors
continuous-integration/drone/push Build was killed
refactor: move renderer gl/dx files to private section
2025-07-23 10:11:55 +03:30

37 lines
688 B
C++

#pragma once
#include <math/vec2.hpp>
#include <math/vec4.hpp>
#include <renderer/framebuffer.hpp>
namespace lt {
class glFramebuffer: public Framebuffer
{
public:
glFramebuffer(const FramebufferSpecification &specification);
~glFramebuffer() override;
void bind_as_target(const math::vec4 &clearColor) override;
void bind_as_resource() override;
void resize(const math::uvec2 &size) override;
auto get_color_attachment() -> void * override
{
return (void *)m_color_attachment_id;
}
private:
FramebufferSpecification m_specification;
unsigned int m_buffer_id;
unsigned int m_color_attachment_id;
unsigned int m_depth_stencil_attachment_id;
};
} // namespace lt