From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 785247F164 for ; Sun, 6 Mar 2016 17:25:57 +0100 (CET) IronPort-PHdr: 9a23:6eADgBVGETDj+4Kj3suKGqSJB7TV8LGtZVwlr6E/grcLSJyIuqrYZh2Ct8tkgFKBZ4jH8fUM07OQ6PC/HzNRqsfZ+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8KVPFQD1WL1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu3SNp41Rr1ADTkgL3t9pIiy7UGCHkOz4S5WcmgEnxlJCgiNyVeydZ7rrjqw/r591TuyZcr1C7cuVmLxwb1sTUrDiD0GLCI+6GHawvZ5gqxSpBag70hUw5TVe52SLPpzOJnUc90TQW5AdttXVjIEGYqiaIoCSeQba7UL57LhrkcD+EPtTTKnA/nin3oR3if7 Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=Christophe.Raffalli@univ-savoie.fr; spf=SoftFail smtp.mailfrom=raffalli@univ-savoie.fr; spf=None smtp.helo=postmaster@raffalli.eu Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of Christophe.Raffalli@univ-savoie.fr) identity=pra; client-ip=192.162.68.177; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="raffalli@univ-savoie.fr"; x-sender="Christophe.Raffalli@univ-savoie.fr"; x-conformance=sidf_compatible Received-SPF: SoftFail (mail2-smtp-roc.national.inria.fr: domain of raffalli@univ-savoie.fr is inclined to not designate 192.162.68.177 as permitted sender) identity=mailfrom; client-ip=192.162.68.177; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="raffalli@univ-savoie.fr"; x-sender="raffalli@univ-savoie.fr"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@raffalli.eu) identity=helo; client-ip=192.162.68.177; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="raffalli@univ-savoie.fr"; x-sender="postmaster@raffalli.eu"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CoBADXWdxW/7FEosBdhAxtvFKCQIUKEQEBAQEBAQEBYyeCLYIVAQUjMCYQCxgJIQICDwVJE4giBAqwPY5MIgiGF4Q9glqEYCuBDwWXKoVjiAAKgi6MTI5VNiyCAxmBSWmJQAEBAQ X-IPAS-Result: A0CoBADXWdxW/7FEosBdhAxtvFKCQIUKEQEBAQEBAQEBYyeCLYIVAQUjMCYQCxgJIQICDwVJE4giBAqwPY5MIgiGF4Q9glqEYCuBDwWXKoVjiAAKgi6MTI5VNiyCAxmBSWmJQAEBAQ X-IronPort-AV: E=Sophos;i="5.22,546,1449529200"; d="asc'?scan'208";a="206211135" Received: from vps29067.lws-hosting.com (HELO raffalli.eu) ([192.162.68.177]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-GCM-SHA384; 06 Mar 2016 17:25:56 +0100 Received: from localhost (bin73-1-78-240-16-62.fbx.proxad.net [78.240.16.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by raffalli.eu (Postfix) with ESMTPSA id 2319C352149C; Sun, 6 Mar 2016 17:25:56 +0100 (CET) Date: Sun, 6 Mar 2016 17:25:48 +0100 From: Christophe Raffalli To: "Hezekiah M. Carty" Cc: Hendrik Boom , caml-list@inria.fr Message-ID: <20160306162548.GC15764@delli7.univ-savoie.fr> References: <20160305231802.GA14665@delli7.univ-savoie.fr> <20160306004246.GA11238@topoi.pooq.com> <20160306111427.GA15764@delli7.univ-savoie.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ALfTUftag+2gvp1h" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Validation-by: christophe.raffalli@univ-savoie.fr Subject: Re: [Caml-list] Announce: ocaml bindings for gles 3 --ALfTUftag+2gvp1h Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 --ALfTUftag+2gvp1h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlbcWgwACgkQi9jr/RgYAS4whgCg15Tu+NZjaTb/hPb08TS6HoB+ rnYAn2fGivTwLAZWqMjPX/2y0iC4/j3y =7WXQ -----END PGP SIGNATURE----- --ALfTUftag+2gvp1h--