made Editor non reliant on GLFW aka i added an IRenderTexture interface of use in non renderer specific aplications

This commit is contained in:
2026-01-18 18:49:15 +01:00
parent 23e7707122
commit a453612b9a
17 changed files with 87 additions and 49 deletions

View File

@@ -4,10 +4,11 @@
#include "interfaces/IRenderTarget.hpp"
#include "interfaces/ITexture.hpp"
#include "interfaces/IResizeNotifiable.hpp"
#include "interfaces/IRenderTexture.hpp"
namespace TSE::GLFW
{
class RenderTexture : public IRenderTarget, public ITexture, public IResizeNotifiable
class RenderTexture : public IRenderTexture
{
public:
FrameBuffer buffer;
@@ -15,9 +16,9 @@ namespace TSE::GLFW
RenderTexture(Vector2 v);
Vector2 size() const override;
void SetSize(Vector2 v);
float width() const override;
float height() const override;
void SetSize(Vector2 v) override;
float Width() const override;
float Height() const override;
uint GetTextureId() const override;
void Update() override;