Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^4: Graphics: OpenGL in Perl/Tk ... with GLUT

by haj (Priest)
on Jan 07, 2023 at 11:46 UTC ( #11149405=note: print w/replies, xml ) Need Help??

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.

  • Comment on Re^4: Graphics: OpenGL in Perl/Tk ... with GLUT

Replies are listed 'Best First'.
Re^5: Graphics: OpenGL in Perl/Tk ... with GLUT
by NERDVANA (Hermit) 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!

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149405]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2023-03-28 21:42 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (69 votes). Check out past polls.