Needing Direction

Started by Ron Allen, June 14, 2017, 08:41:48 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Ron Allen

I am trying to set up a FBO for use in powerbasic. For some reason these functions are not being found.

SUB initFrameBufferDepthBuffer()
    glGenRenderbuffersEXT(1, fbo_depth)                    'Generate one render buffer and store the ID in fbo_depth
    glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, fbo_depth)  'Bind the fbo_depth RENDER buffer
    glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT, window_width, window_height)' Set the render buffer storage to be a depth component, with a width and height of the window
    glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, fbo_depth)'Set the render buffer of this buffer to the depth buffer
    glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, 0)'Unbind the render buffer
END SUB           

any idea as to why?  or where I can find the .inc files for their use?
Anyone know where files can be forun to use GLEW and GUT in Powerbasic?

as always, thank you for your help.



Ron Allen


The answer is that the declarations can be found in Jose's new WINAPI_III_107 headers in the file "GLEXT.INC.

In case anyone needs to know.



José Roca

> Anyone know where files can be forun to use GLEW and GUT in Powerbasic?

I don't think that nobody has translated the GLEW headers.

Regarding GLUT, I translated the headers for freeGlut several years ago.