Needing Direction

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ron Allen

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
  •  

Ron Allen

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
  •  

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.

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