I want to implement a Framebuffer Object in my program. I have included
#include <GL/glew.h>
#include <GL/glut.h>
I get the following errors:
error: ‘glGenFrameBuffers’ was not declared in this scope
error: ‘GL_FRAME_BUFFER’ was not declared in this scope
error: ‘glBindFrameBuffer’ was not declared in this scope
My code to create the Framebuffer Object is as follows:
GLuint fbo;
glGenFrameBuffers(1 , &fbo);
glBindFrameBuffer(GL_FRAME_BUFFER, fbo);
When I run the following code to create a Vertex Buffer Object, the project compiles:
GLuint vbod;
glGenBuffers(1 , &vbod);
glBindBuffer(GL_ARRAY_BUFFER, vbod);