From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: vimml@selgrad.org Newsgroups: gmane.lisp.guile.user Subject: Re: Guile OpenGL bindings Date: Fri, 1 Feb 2013 21:56:11 +0100 Message-ID: <20130201205611.GA17180@debian> References: <871ud0p6u0.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1359752836 20824 80.91.229.3 (1 Feb 2013 21:07:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 21:07:16 +0000 (UTC) To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Feb 01 22:07:36 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U1Npg-0008BI-Bp for guile-user@m.gmane.org; Fri, 01 Feb 2013 22:07:36 +0100 Original-Received: from localhost ([::1]:52128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1NpO-0000M0-0H for guile-user@m.gmane.org; Fri, 01 Feb 2013 16:07:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1NoG-0000Al-I1 for guile-user@gnu.org; Fri, 01 Feb 2013 16:07:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1NnC-00035t-EJ for guile-user@gnu.org; Fri, 01 Feb 2013 16:06:08 -0500 Original-Received: from smtprelay01.ispgateway.de ([80.67.31.35]:60872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1NnC-00032D-8v for guile-user@gnu.org; Fri, 01 Feb 2013 16:05:02 -0500 Original-Received: from [178.2.243.53] (helo=localhost) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1U1NnA-0004g9-1i; Fri, 01 Feb 2013 22:05:00 +0100 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Df-Sender: MTAzOTkyNQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.67.31.35 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9984 Archived-At: Hej, this all sounds really cool :-) I hacked a little bit of code to generate C bindings for what is specified in the glcorearb.h file. I also wrote a small script to extract the gl constants and define them as scheme variables. This is all *really* hacky stuff, but if somebody wants to have a lookt at it... On 21:29 Fri 01 Feb , Daniel Hartwig wrote: > The real critical part will be how the user manipulates their vertex > data, if this is done frequently on the scheme side. Mapping (typed) > bytevectors, or srfi-4 to gl arrays will help with that, and avoiding > the implicit type conversions that some other bindings perform. I did use r6rs bytevectors (bytevector-ieeee-single-native-ref...) to plow through my data and it was rather sluggish. It's quite possible that I did someting terribly wrong, but I went back to do the crunching in C... On 13:16 Fri 01 Feb , Andy Wingo wrote: > https://gitorious.org/guile-figl Looking forward to have a look at your code :-) Happy Hacking, Kai :)