implemented SDL3 as an option for window manager

This commit is contained in:
2026-03-23 19:00:56 +01:00
parent 226f60e9ae
commit a596028ed9
152 changed files with 84309 additions and 247 deletions

View File

@@ -0,0 +1,32 @@
#pragma once
#include "buffer.hpp"
#include "interfaces/IResizable.hpp"
#include "Vector2.hpp"
namespace TSE::OpenGL
{
class FrameBuffer : public buffer, public IResizable
{
private:
uint textureOutputCount = 1;
uint textureIDs[32] = {0};
uint depthRboID = 0;
bool shouldResize = false;
public:
FrameBuffer(const Vector2& size, uint textureCount = 1);
void Bind() override;
void Unbind() override;
~FrameBuffer() override;
void Resize(Vector2 size);
void Update();
uint GetTextureId(uint id = 0) const;
Vector2 GetSize() const;
private:
void Initialize();
void LoadFBTexture();
void CreateFBTexture();
};
} // namespace TSE