caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Announce: camlgl - OpenGL bindings for OCaml
Date: Fri, 27 Dec 2002 12:10:29 +0000	[thread overview]
Message-ID: <3E0C4335.2060504@univ-savoie.fr> (raw)
In-Reply-To: <20021225113708J.garrigue@kurims.kyoto-u.ac.jp>

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]


There is one little problem with lablGL:

The height functions provided for GlDraw.normal and GlDraw.vertex necessarely 
uses boxed float.
You should add (I will do it for myself very soon) direct access to the GL 
function to be able to benefit from the optimization of OCaml for unboxed float.

This is important for this two function and may be a few others (GlDraw.begins 
and GlDraw.ends, ...) which are used very often and where the optional 
arguments and the call to the stub code may cost too much.

But I think it is a good idea to keep a type-safe interface as much as possible 
and put the unsafe fast call in a GlUnsafe module !

I learned GL using LablGl and it is very well suited for that. Much better than 
raw C or C++.


-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature
---------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 252 bytes --]

      parent reply	other threads:[~2002-12-27 11:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-20 10:46 Nickolay Semyonov-Kolchin
2002-12-20 15:28 ` Sven Luther
2002-12-20 21:19   ` Nickolay Semyonov-Kolchin
2002-12-25  2:37     ` Jacques Garrigue
2002-12-25  8:37       ` [Caml-list] Summary: LablGL vs CamlGL Nickolay Semyonov-Kolchin
2002-12-27 12:10       ` Christophe Raffalli [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E0C4335.2060504@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    --cc=garrigue@kurims.kyoto-u.ac.jp \
    /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 NNTP newsgroup(s).