Re: [racket] openGL on Mac OS

2012-07-02 Thread Petr Samarin
Thanks! I am happy to be a Racket user! On Jul 2, 2012, at 4:39 PM, Matthew Flatt wrote: > At Thu, 28 Jun 2012 19:20:06 +0200, Petr Samarin wrote: >>> On Jun 27, 2012, at 11:54 PM, Matthew Flatt wrote: >>> Any other ideas? >> >> How about creating a dummy frame with an opengl canvas specifically

Re: [racket] openGL on Mac OS

2012-07-02 Thread Matthew Flatt
At Thu, 28 Jun 2012 19:20:06 +0200, Petr Samarin wrote: > > On Jun 27, 2012, at 11:54 PM, Matthew Flatt wrote: > > Any other ideas? > > How about creating a dummy frame with an opengl canvas specifically if the > system is a mac os? Ok --- done, though by just creating a dummy GL context instead

Re: [racket] openGL on Mac OS

2012-06-28 Thread Petr Samarin
> On Jun 27, 2012, at 11:54 PM, Matthew Flatt wrote: > Any other ideas? How about creating a dummy frame with an opengl canvas specifically if the system is a mac os? This can be done before providing the sgl library: (when (symbol=? (system-type) 'macosx) (new canvas% [parent (new frame%

Re: [racket] openGL on Mac OS

2012-06-27 Thread Matthew Flatt
At Wed, 27 Jun 2012 23:14:21 +0200, Petr Samarin wrote: > I was trying out some examples from the documentation and used openGL code > outside of openGL context! That makes sense. I vaguely recall that Apple's GL is likely to crash without a context, while other GL implementations tend not to cra

Re: [racket] openGL on Mac OS

2012-06-27 Thread Petr Samarin
I was trying out some examples from the documentation and used openGL code outside of openGL context! Here is the code to reproduce the error: (require sgl/gl sgl/gl-vectors) (glBegin GL_TRIANGLES) (glVertex3i 1 2 3) (glVertex4fv (gl-float-vector 1 2 3 4)) (glEnd) It would be nice to g

Re: [racket] openGL on Mac OS

2012-06-27 Thread Matthew Flatt
I don't have any immediate ideas. I've always used the Apple libraries, and they work for me. Do you see the crash just running one of the GL-based games in the PLT Game application (such as Jewel or Gobblet)? Can you send more of the crash report? At Wed, 27 Jun 2012 15:04:43 +0200, Petr Samari

[racket] openGL on Mac OS

2012-06-27 Thread Petr Samarin
FFI bindings for openGL do not work when "glu-lib" and "gl-lib" in gl.rkt are linked to Apple's own openGL libraries in: "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL" "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU" Any use of functions provided