Fixed Framebuffer

This commit is contained in:
MihailRis
2023-11-27 19:13:24 +03:00
parent 6fcfc7e272
commit 7b4cc8f650
2 changed files with 26 additions and 46 deletions
+7 -5
View File
@@ -1,16 +1,18 @@
#ifndef SRC_GRAPHICS_FRAMEBUFFER_H_
#define SRC_GRAPHICS_FRAMEBUFFER_H_
#include "../typedefs.h"
class Texture;
class Framebuffer {
unsigned int fbo;
unsigned int depth;
uint fbo;
uint depth;
public:
int width;
int height;
uint width;
uint height;
Texture* texture;
Framebuffer(int width, int height);
Framebuffer(uint width, uint height);
~Framebuffer();
void bind();