in reply to Error in OpenGL
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,
I get this error message:#!/usr/bin/env perl use strict; use warnings; use OpenGL; sub glInit { OpenGL::glpcOpenWindow(); } glInit(); print "Press return to exit\n"; while ( <> ) { exit; }
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.
|
|---|