split render pipelines

This commit is contained in:
MihailRis
2025-05-09 15:31:04 +03:00
parent fc46b7c434
commit c1608fe8e2
13 changed files with 176 additions and 191 deletions
+6 -3
View File
@@ -2,21 +2,24 @@
#include "typedefs.hpp"
#include "commons.hpp"
#include "ImageData.hpp"
class GBuffer : public Bindable{
class GBuffer : public Bindable {
public:
GBuffer(uint width, uint height);
~GBuffer();
~GBuffer() override;
void bind() override;
void unbind() override;
void bindBuffers();
void bindBuffers() const;
void resize(uint width, uint height);
uint getWidth() const;
uint getHeight() const;
std::unique_ptr<ImageData> toImage() const;
private:
uint width;
uint height;