VoxelEngine/src/graphics/Framebuffer.h
2024-01-21 23:35:41 +03:00

23 lines
363 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, bool alpha=false);
~Framebuffer();
void bind();
void unbind();
};
#endif /* SRC_GRAPHICS_FRAMEBUFFER_H_ */