VoxelEngine/src/graphics/Framebuffer.h
2023-11-27 19:13:24 +03:00

23 lines
345 B
C++

#ifndef SRC_GRAPHICS_FRAMEBUFFER_H_
#define SRC_GRAPHICS_FRAMEBUFFER_H_
#include "../typedefs.h"
class Texture;
class Framebuffer {
uint fbo;
uint depth;
public:
uint width;
uint height;
Texture* texture;
Framebuffer(uint width, uint height);
~Framebuffer();
void bind();
void unbind();
};
#endif /* SRC_GRAPHICS_FRAMEBUFFER_H_ */