PDA

View Full Version : Frame Buffer Objects



robertmachardy
03-06-2009, 07:56 AM
I am attempting to use Frame Buffer Objects. I start with:

GLuint fbo;
glGenFramebuffersEXT(1, &fbo);

The variable frame is unchanged by the above code. This seems like it should be pretty straight forward. Please help.

API
03-06-2009, 10:12 AM
When you say "the variable frame is unchanged" you mean that the value doesn't change?

As you don't initialized the variable with another value, who knows, it could be using the same value. You could try to use the frame buffer object, and if it doesn't works, start to be concerned.

Anyway, the spec has several examples:

http://oss.sgi.com/projects/ogl-sample/registry/EXT/framebuffer_object.txt

robertmachardy
03-06-2009, 11:38 AM
Sorry, the variable fbo is unchanged.
and
glIsFramebufferEXT(fbo) returns false

Y-tension
03-06-2009, 12:54 PM
Do you have a context bound?