This commit is contained in:
2026-10-26 01:59:48 -04:00
commit a6103e453d
1020 changed files with 255623 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef FBO_CLASS_H
#define FBO_CLASS_H
#include <glad/glad.h>
// cube
class FBO {
public:
GLuint ID;
FBO() {
glGenFramebuffers(1, &ID);
};
void Bind() {
glBindFramebuffer(GL_FRAMEBUFFER, ID);
};
void Unbind() {
glBindFramebuffer(GL_FRAMEBUFFER, 0);
};
void Delete() {
glDeleteFramebuffers(1, &ID);
};
};
#endif