hauberg
02-05-2011, 09:52 AM
Hi All
First post here, so please let me know if I picked the wrong place to post.
I'm trying to debug some GL code that crashes on 'glRasterPos3d'. After Google'ing for some time I seem to get the impression that I should check if my framebuffer is properly initialised by calling
GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
However, I can't seem to figure out how to compile programs with the above line in them; I constantly get
error: 'glCheckFramebufferStatus' was not declared in this scope
I guess I need to include a specific header or something like that, but I've been tearing out my hair figuring out which one and how to include it (is there a specific order that headers must be included in?).
Does anybody have some pointers that could help me? Possible a simple program that shows how to call this function.
Thanks
Søren
First post here, so please let me know if I picked the wrong place to post.
I'm trying to debug some GL code that crashes on 'glRasterPos3d'. After Google'ing for some time I seem to get the impression that I should check if my framebuffer is properly initialised by calling
GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
However, I can't seem to figure out how to compile programs with the above line in them; I constantly get
error: 'glCheckFramebufferStatus' was not declared in this scope
I guess I need to include a specific header or something like that, but I've been tearing out my hair figuring out which one and how to include it (is there a specific order that headers must be included in?).
Does anybody have some pointers that could help me? Possible a simple program that shows how to call this function.
Thanks
Søren