light/modules/renderer/public/gl/render_command.hpp
light7734 cd886aa8c9
Some checks reported errors
continuous-integration/drone/push Build was killed
refactor: flatten directory structure
2025-07-20 04:46:15 +03:30

36 lines
636 B
C++

#pragma once
#include <math/vec4.hpp>
#include <renderer/render_command.hpp>
struct GLFWwindow;
namespace lt {
class glRenderCommand: public RenderCommand
{
public:
glRenderCommand(GLFWwindow *windowHandle);
void swap_buffers() override;
void clear_back_buffer(const math::vec4 &clearColor) override;
void draw(unsigned int count) override;
void draw_indexed(unsigned int count) override;
void default_target_framebuffer() override;
void set_viewport(
unsigned int x,
unsigned int y,
unsigned int width,
unsigned int height
) override;
private:
GLFWwindow *m_window_handle;
};
} // namespace lt