On 10/11/05, Andreas Lund <[EMAIL PROTECTED]> wrote:
>
>
> Hello again :-)


Hi

But when I try to fetch this info with glGet, it appears there is no such
> subroutine... is there some fancy trick I have overlooked, or is this a
> known problem with sdlperl?
>
>
In sdl-perl-2.1.3 (and some earlier versions), glGet support is there and is
technically SDL::OpenGL::glGet.

use SDL::OpenGL;

should Export it into the main:: namespace. All three constants
GL_VIEWPORT, GL_MODELVIEW_MATRIX, and GL_PROJECTION_MATRIX are handled by
it. (see the src/OpenGL.xs file in your distrubutions), and are exported in
SDL::OpenGL::Constants.
(which is automatically included when you use SDL::OpenGL.)

In an ideal world, the default behavior would be to make these optional
parameters. (and let it query it itself if not supplied), but I've not
gotten around to implementing sensible defaults for everything.

So, as for the latest version, it should be in there and work. Also,
main::gluProject if you use SDL::OpenGL; otherwise it is
SDL::OpenGL::gluProject.

So my advice, if you're not using sdl-perl-2.1.3, and haven't added the
line,
use SDL::OpenGL; that you try that first. If you still have problems then
let me know.

Dave

--
"The universal aptitude for ineptitude makes any human accomplishment an
incredible miracle"

-Stapp's Ironical Paradox

Reply via email to