light/Engine/src/Platform/GraphicsAPI/OpenGL/glRenderCommand.hpp

29 lines
606 B
C++
Raw Normal View History

2022-03-08 21:19:19 +03:30
#pragma once
#include "Base/Base.hpp"
#include "Graphics/RenderCommand.hpp"
struct GLFWwindow;
namespace Light {
class glRenderCommand: public RenderCommand
{
private:
GLFWwindow* m_WindowHandle;
public:
glRenderCommand(GLFWwindow* windowHandle);
void SwapBuffers() override;
void ClearBackBuffer(const glm::vec4& clearColor) override;
void Draw(unsigned int count) override;
void DrawIndexed(unsigned int count) override;
void DefaultTargetFramebuffer() override;
void SetViewport(unsigned int x, unsigned int y, unsigned int width, unsigned int height) override;
};
} // namespace Light