Author Topic: Needing Direction  (Read 417 times)

0 Members and 1 Guest are viewing this topic.

Offline Ron Allen

  • Newbie
  • *
  • Posts: 6
Needing Direction
« 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

Offline Ron Allen

  • Newbie
  • *
  • Posts: 6
Re: Needing Direction
« Reply #1 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

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 3126
  • Gender: Male
    • José Roca Software
Re: Needing Direction
« Reply #2 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