Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Error in OpenGL

by kevbot (Vicar)
on Apr 10, 2016 at 06:13 UTC ( [id://1160042]=note: print w/replies, xml ) Need Help??


in reply to Error in OpenGL

Hello stolzstudio,

I took a look at the source of OpenGL, and it appears that glpOpenWindow is a wrapper around glpcOpenWindow. However, if I modify your code slightly to call glpcOpenWindow directly,

#!/usr/bin/env perl use strict; use warnings; use OpenGL; sub glInit { OpenGL::glpcOpenWindow(); } glInit(); print "Press return to exit\n"; while ( <> ) { exit; }
I get this error message:

Your vendor has not defined OpenGL macro glpcOpenWindow, used at t2.pl + line 8.

By the way, I'm on a Mac (running OS X 10.11, El Capitan).

I found a couple threads that seem to encounter a similar problem:

I gave up trying to get variations of your code to work, but I found a good site with working perl OpenGL examples here: http://nehe.gamedev.net/tutorial/lessons_01__05/22004/. I downloaded and ran the perl code for the first two lessons, and they both worked (the download links are at the bottom of each lesson page).

Perhaps those examples will be helpful.

Update: I made some minor formatting edits.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found