<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I've just downloaded drscheme 299.400. mzscheme is part of it, so<br>
I'm now recompiling opengl (for my enumerations), and will try to<br>
use sgl in glsample.scm. <br>
<br>
But I get some strange error (see below).<br>
<br>
What could be wrong?<br>
<br>
> (require "mzgtk2-basic.scm")<br>
mzgtk2-basic.scm:20:2: module: identifier already imported (from a
different source) at: begin in: (require (lib "sgl.scm" "sgl"))<br>
<br>
<i>mzgtk2-basic.scm:</i><br>
(module mzgtk2-basic mzscheme<br>
;(require (lib "roos.scm" "roos"))<br>
;(require "mzgtk2-license.scm")<br>
;(require "mzgtk2wrap.scm")<br>
;(require "mzgtk2-gobject.scm")<br>
;(require "mzgtk2-types.scm")<br>
;(require "mzgtk2-stock.scm")<br>
;(require "mzgtk2-gtk-version.scm")<br>
;(require "mzgtk2-utils.scm")<br>
;(require "mzgtk2-debug.scm")<br>
;(require (lib "time.ss" "srfi" "19"))<br>
(require (lib "sgl.scm" "sgl"))<br>
;(require (lib "opengl.scm" "opengl"))<br>
<br>
<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
;;; Constants<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
(define DEFAULT-HSPACE 3)<br>
(define DEFAULT-VSPACE 3)<br>
(define GTK-DEFAULT-BORDER-WIDTH 3)<br>
<br>
<br>
Scott Owens schreef:
<blockquote cite="mid8BA538DC-9E49-4FE1-8862-3871A607546F@cs.utah.edu"
type="cite">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).
<br>
<br>
-Scott
<br>
<br>
On Sep 18, 2005, at 12:39 PM, Hans Oesterholt wrote:
<br>
<br>
<blockquote type="cite">Scott Owens schreef:
<br>
<br>
<br>
<blockquote type="cite">I'm curious if you are unaware of the GL
binding that comes with PLT Scheme, or if you found it deficient.
<br>
<br>
-Scott
<br>
<br>
</blockquote>
<br>
I didn't try it yet. It is part of drscheme, not mzscheme isn't it?
<br>
Can I install it seperately from drscheme? I'll give it
<br>
a try sometime soon. It's not that I don't want to use it.
<br>
Some months ago, when I created mzopengl, wasn'tt aware
<br>
of the existence of sgl. As I am about to release the first
<br>
alpha of mzgtk2, I needan opengl binding working
<br>
with mzgtk2 released.
<br>
<br>
Hans
<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>