From: "Maciek Godek" <pstrychuj@gmail.com>
To: guile-user@gnu.org
Subject: Re: What new libraries or functionality does Guile need?
Date: Sat, 19 Jul 2008 07:49:04 +0200 [thread overview]
Message-ID: <e2ceda030807182249h572cd05fi1fa22beebb5b2eff@mail.gmail.com> (raw)
In-Reply-To: <877ibibtaf.fsf@mithrandir.homeunix.net>
>> Hi-
>
>> If you could ask someone to write a library or package a set of
>> functionality for Guile that it doesn't currently have, what would it
>> be? (My personal projects are near completion, and I may have some
>> Saturdays free.)
>
> Bindings for OpenGL/GLU/GLUT would be great.
They definitely wouldn't be disturbing. On the other hand, OpenGL is such flat
a library if it comes to structure, that it could be wiser to write a semi
automatic tool for making guile bindings from C headers, i.e. to
transform declarations like
// gl.h
#define GL_BYTE 0x1400
// ...
GLAPI void GLAPIENTRY glVertex3d(GLdouble x, GLdouble y, GLdouble z);
to
// gl-module.c
static SCM glVertex3d_scmwrapped(SCM x, SCM y, SCM z) {
glVertex3d(scm_to_double(x), scm_to_double(y), scm_to_double(z));
return SCM_UNSPECIFIED;
}
// ...
void init() {
scm_c_define_gsubr("glVertex3d", 3, 0, 0, glVertex3d_scmwrapped);
// ...
}
;; gl.scm
(define-module (gl))
(load-extension "gl-module" "init")
(define-public GL_BYTE 0x1400)
; ...
(export glVertex3d)
GL is a great library to start with, for it uses only the embedded C types
next prev parent reply other threads:[~2008-07-19 5:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-18 17:13 What new libraries or functionality does Guile need? Mike Gran
2008-07-18 17:39 ` Julian Graham
2008-07-18 18:32 ` Andre Kuehne
2008-07-19 0:40 ` Jose A. Ortega Ruiz
2008-07-19 5:49 ` Maciek Godek [this message]
2008-07-19 18:10 ` Bill Schottstaedt
2008-07-20 20:42 ` Ludovic Courtès
2008-07-20 22:35 ` Mike Gran
2008-07-21 6:34 ` Thien-Thi Nguyen
-- strict thread matches above, loose matches on Subject: below --
2008-07-18 18:38 Mike Gran
2008-07-18 19:37 dsmich
2008-07-18 19:43 dsmich
[not found] <cmu-lmtpd-23333-1216458306-3@mail-imap1.uio.no>
2008-07-19 11:08 ` Kjetil S. Matheussen
2008-07-21 16:02 ` JonWilson
2008-07-22 13:09 ` Bill Schottstaedt
[not found] <cmu-lmtpd-5742-1216742728-1@mail-imap1.uio.no>
2008-07-22 16:24 ` Kjetil S. Matheussen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e2ceda030807182249h572cd05fi1fa22beebb5b2eff@mail.gmail.com \
--to=pstrychuj@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).