#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <GL/glu.h>
#include <gl/glext.h>
#include <gl/wglext.h>
unsigned int myFBO;
glGenFramebuffersEXT(1, &myFBO);
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <GL/glu.h>
#include <gl/glext.h>
#include <gl/wglext.h>
unsigned int myFBO;
glGenFramebuffersEXT(1, &myFBO);
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, FBO);glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, texture, 0);glClearColor(0.0f, 0.0f, 1.0f, 0.0f);glClear(GL_COLOR_BUFFER_BIT);for (int i = 0; i < nbits; i++) { bits->draw();}glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);