Powerbasic Museum 2020-B

Webmaster: José Roca (PBWIN 10+/PBCC 6+) (SDK Forum) => Graphics and Multimedia => OpenGL => Topic started by: Ron Allen on June 14, 2017, 08:41:48 PM

Title: Needing Direction
Post by: Ron Allen on June 14, 2017, 08:41:48 PM
Hello,
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

Ron
Title: Re: Needing Direction
Post by: Ron Allen on June 15, 2017, 06:24:54 PM
Hi,

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.

Thanks,

Ron
Title: Re: Needing Direction
Post by: José Roca on June 15, 2017, 09:18:34 PM
> 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.

See: https://forum.powerbasic.com/forum/jose-s-corner/downloads/51414-freeglut-2-8-0-headers