http://qs321.pair.com?node_id=11149405


in reply to Re^3: Graphics: OpenGL in Perl/Tk ... with GLUT
in thread Graphics: OpenGL in Perl/Tk ... with GLUT

buffer objects aren't available from the OpenGL module

But they are (as an "extension)! I did some research before starting with OpenGL and found the wikipedia article Perl_OpenGL. I got the POGL Sample Test App linked from there working. Understanding that code, on the other hand, took some time, and I would have surrendered, but then I found the ancient guide.

The example does not work with OpenGL::Modern which no longer provides glGenBuffersARB_p.

Replies are listed 'Best First'.
Re^5: Graphics: OpenGL in Perl/Tk ... with GLUT
by NERDVANA (Deacon) on Jan 09, 2023 at 03:18 UTC
    Well, glGenBuffersARB_p is gone in OpenGL::Modern because any OpenGL in the last (15 years?) has glGenBuffers which is the same thing by its now-official name, and I don't know if new OpenGLs would acknowledge the name glGenBuffersARB. But, thanks for pointing that out, because maybe I could check for it to provide buffer Perl objects when using using the original OpenGL module. But, what uses buffer objects in 1.4? Are all the rest of OpenGL 2's APIs provided as optional extensions on 1.4?

      Yeah, I understand why glGenBuffersARB_p (and the other ARB stuff) is gone in OpenGL::Modern.

      As of your question about the availability of OpenGL 2: I simply don't know. The OpenGL docs have a long list of interfaces, about 100 of them with ARB in their names, indicating registered extensions. Is that complete with regard to OpenGL 2? I've no idea.

      I have only just started to examine OpenGL, which was quite a journey. The Perl modules' documentation does not give much insight, and all the external links from the Wikipedia page Perl OpenGL are stale. I know that I'm currently using ancient interfaces, following an ancient guide. but hey, this stuff still works!