caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: "Hezekiah M. Carty" <hez@0ok.org>
Cc: Hendrik Boom <hendrik@topoi.pooq.com>, caml-list@inria.fr
Subject: Re: [Caml-list] Announce: ocaml bindings for gles 3
Date: Sun, 6 Mar 2016 17:25:48 +0100	[thread overview]
Message-ID: <20160306162548.GC15764@delli7.univ-savoie.fr> (raw)
In-Reply-To: <CAMfPyLBqsMmPZVhUinqxKGQTb8ukbk=onyTawsa52zind4WTqQ@mail.gmail.com>

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

On 16-03-06 14:03:42, Hezekiah M. Carty wrote:
> On Sun, Mar 6, 2016, 6:16 AM Christophe Raffalli <
> Christophe.Raffalli@univ-savoie.fr> wrote:
>
>     On 16-03-05 19:42:46, Hendrik Boom wrote:
>     > Aren't there already bindings of OpenGL for OCaml?
>
>     Yes, but not for recent version of Open LG (i.e. version 3 and 4) or
>     GLES (any version).
>
>
> There are thin bindings to OpenGL 3+4 and GLES 2+3:
> http://erratique.ch/software/tgls
>
> They have been around for a while, with the first release back in 2014 and the
> most recent last year.

Hello,

I did not know these bindings, but there are too lowlevel for what I
want when I teach (only one type for GLenum).

The lowlevel bindings of gles use polymorphic variant, so reading the
mli, you know what is allowed for a given GL function.

Moreover, the highlevel bindings provide the necessary functions to
really program. For instance, the Matrix module provide a function to
compute the NormalMatrix from the ModelView matrix. I know it is not
hard to inverse/transpose and extract a sub 3x3 matrice from a given
matrice, idem for an equivalent to the lookat GLU matrix ... But it is
better if this is already done.

The idea would be to have (we are not there yet) Highlevel binding
that can not trigger GLerror ... with little impact on performance.

Cheers,
Christophe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

      reply	other threads:[~2016-03-06 16:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-05 23:18 Christophe Raffalli
2016-03-06  0:42 ` Hendrik Boom
2016-03-06 11:14   ` Christophe Raffalli
2016-03-06 14:03     ` Hezekiah M. Carty
2016-03-06 16:25       ` 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=20160306162548.GC15764@delli7.univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    --cc=hendrik@topoi.pooq.com \
    --cc=hez@0ok.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 NNTP newsgroup(s).