[plt-scheme] opengl binding

From: Hans Oesterholt (hdnews at gawab.com)
Date: Sun Sep 18 15:06:57 EDT 2005

I've just downloaded drscheme 299.400. mzscheme is part of it, so
I'm now recompiling opengl (for my enumerations), and will try to
use sgl in glsample.scm.

But I get some strange error (see below).

What could be wrong?

 > (require "mzgtk2-basic.scm")
mzgtk2-basic.scm:20:2: module: identifier already imported (from a 
different source) at: begin in: (require (lib "sgl.scm" "sgl"))

(module mzgtk2-basic mzscheme
  ;(require (lib "roos.scm" "roos"))
  ;(require "mzgtk2-license.scm")
  ;(require "mzgtk2wrap.scm")
  ;(require "mzgtk2-gobject.scm")
  ;(require "mzgtk2-types.scm")
  ;(require "mzgtk2-stock.scm")
  ;(require "mzgtk2-gtk-version.scm")
  ;(require "mzgtk2-utils.scm")
  ;(require "mzgtk2-debug.scm")
  ;(require (lib "time.ss" "srfi" "19"))
  (require (lib "sgl.scm" "sgl"))
  ;(require (lib "opengl.scm" "opengl"))

;;; Constants

  (define DEFAULT-HSPACE 3)
  (define DEFAULT-VSPACE 3)

Scott Owens schreef:

> The sgl collection relies only on the foreign-function interface (as  
> of v299.28), and can be used with either mred/DrScheme or mzscheme.   
> sgl only provides access to the functions documented in the GL (1.5)  
> and GLU specs, and not to the functions of glx, or whatever OS X or  
> MS Windows use to manage GL drawing contexts.  mred provides this  
> functionality, but sgl itself is agnostic about how the GL contexts  
> are managed (as is the OpenGL spec itself).
> -Scott
> On Sep 18, 2005, at 12:39 PM, Hans Oesterholt wrote:
>> Scott Owens schreef:
>>> I'm curious if you are unaware of the GL binding that comes with  
>>> PLT  Scheme, or if you found it deficient.
>>> -Scott
>> I didn't try it yet. It is part of drscheme, not mzscheme isn't it?
>> Can I install it seperately from drscheme? I'll give it
>> a try sometime soon. It's not that I don't want to use it.
>> Some months ago, when I created mzopengl, wasn'tt aware
>> of the existence of sgl. As I am about to release the first
>> alpha of mzgtk2, I needan opengl binding working
>> with mzgtk2 released.
>> Hans

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20050918/4aae6168/attachment.html>

Posted on the users mailing list.