[plt-scheme] sgl meets the OpenGL spec?

From: Ryan Jarvis (rjarvis at WPI.EDU)
Date: Wed Oct 8 16:31:59 EDT 2003

Thanks for your prompt reply.

(require (lib "gl-unsafe.ss" "sgl"))
(glGetFloatv 'GL_MODELVIEW_MATRIX)

gives me the error

dynamic-require: name is not provided: gledgeflagpointer by module:
|,C:\PROGA~1\plt\collects\sgl\gl-prims|

I am not sure what that means but gl-unsafe.ss requires
gl-wrapper-helper.ss.  When I look in gl-wrapper-helper.ss it has a line
at the top that says

(define path '(lib "gl-prims.ss" "sgl"))

I did a search and there is no gl-prims.ss anywhere on my computer, least
of all in the sgl folder.  There is a gl-prims.c and gl-prims-unsafe.c but
that's it.

-Ryan

On Wed, 8 Oct 2003, Scott Owens wrote:

> SGL provides all of the OpenGL 1.3 functions in one way or another.
>
> First a little background from the documentation:
>
> sgl takes a two layered approach.  The gl and gl-unsafe libraries
> provide access to the C-language style GL API.  The sgl library provides
> access to the GL API through a more Scheme-like interface, that should
> be more convenient to use than the C-style bindings.
>
>
> The general Get functions currently reside in the gl-unsafe module.
> This means you can call the functions, but if called incorrectly, the
> program could become corrupted or crash.  There is no technical reason
> why the Get functions have to be in unsafe.  I just ran out of time to
> implement the (rather elaborate) safety checks needed to move them into
> safe and from there into the Scheme interface.
>
> -Scott
>
> On Wednesday, October 8, 2003, at 12:40  PM, Ryan Jarvis wrote:
>
> >   For list-related administrative tasks:
> >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> > Does SGL meet the OpenGL spec?  I am trying to find a command for
> > glGet,
> > which should allow me to return various values from within the pipeline
> > and I can't find it. There are a few commands in gl.ss that return
> > strings, light or material data but I need to return the current matrix
> > used in a matrix mode and there is supposed to be a command glGet.   I
> > thought that command was from OpenGL 1.1...?
> >
> > TIA.
> >
> > -Ryan
> >
>
>
>
>



Posted on the users mailing list.