This one seems to be accepted:
new MyCanvas($frame, -1,[10,10],[100,100],0,"")
Still, WX_GL_DOUBLEBUFFER does not seem to be exported.
My wx::GLCanvas version is 0.7 (the latest as far as I can see).
I just started with openGL, but not being able to set parameters like WX_GL_DOUBLEBUFFER, doesn't that make the use of OpenGL very limited.
wim

Wim de Vries wrote:
Thanks Eric,
At least Perl now recognizes 'use Wx::GLCanvas'.
Still, cannot make much of the demo modules by Mattia Barbon.
Figured out from the demo modules that new of Wx::GLCanvas only takes the
(Window)parent as parameter, which is contrary to the Wx::GLCanvas
documentation (whole bunch of parameters). Are there any simple examples
of wx using openGl. The above examples are to obscure for me, and maybe I
misunderstood them.....
Thanks,
wim


# from Wim de Vries
# on Tuesday 16 June 2009 04:36:

Tried to install Wx-GLCanvas (shouldn't that not be doneautomatically
with wxPerl installation?) and that one gives me "No such 'link'
library: 'gl'
You need the libGL.so (`aptitude install libgl1-mesa-dev` and maybe some
other packages too.)

--Eric
--
"It is a mistake to allow any mechanical object to realize that you are
in a hurry."
--Ralph's Observation
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------





Reply via email to