From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p3S0WI2G007012 for ; Thu, 28 Apr 2011 02:32:18 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgkDAHG0uE1KfVO2kGdsb2JhbACldwgUAQEBAQkJDQcUBCGIcKAUjR+FKYkSAQEDBoVwBIYBiFCFGoUIO4Eigjw X-IronPort-AV: E=Sophos;i="4.64,277,1301868000"; d="scan'208";a="81891770" Received: from mail-pv0-f182.google.com ([74.125.83.182]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 28 Apr 2011 02:32:12 +0200 Received: by pvg11 with SMTP id 11so2297627pvg.27 for ; Wed, 27 Apr 2011 17:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=F0RVJbpRMKEwUvK6kdHJFx4QbZD06d9p9rqIywUT0cc=; b=P7kNvA8Y/jLwqMNnA/7BJLcOoejCg25QsLTWiw3FuvYAze4wjENUNd23EO4vEnsCrD 2p5IGpSIbhqIZLJH2T3NVzWX5uHVNQJ6NBefAaQW2lnuQWZw1KEf8rgK98i7Citnr/o+ 54ITHndqAGKZsdLi5SXFDH60eyORoqOLjW7ak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=dbM5P3qurTfGtFsiN0bDDrf4nXMCvYs2UyxDTFxfNSsfRNqkRCxtFIkstfEn0r0Jwr I8lIykznusbM5nwRSHtHl+edqCfWwlnqmE9bU/lqtGX6qHfoRu0iCw9ZDboKOU62TEAU NhXq7stQAoH/buJwur+vw99FRCtK10UB95rCI= Received: by 10.142.165.14 with SMTP id n14mr833848wfe.109.1303950730617; Wed, 27 Apr 2011 17:32:10 -0700 (PDT) Received: from tet.garrigue.jp (58x158x128x157.ap58.ftth.ucom.ne.jp [58.158.128.157]) by mx.google.com with ESMTPS id k6sm1094597wfa.5.2011.04.27.17.32.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Apr 2011 17:32:09 -0700 (PDT) Sender: Jacques Garrigue Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Jacques Garrigue In-Reply-To: Date: Thu, 28 Apr 2011 09:32:06 +0900 Cc: caml-list@inria.fr Message-Id: <85360856-DA1E-48C8-B449-BD03EAA4F154@math.nagoya-u.ac.jp> References: To: Anthony Tavener X-Mailer: Apple Mail (2.1084) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p3S0WI2G007012 Subject: Re: [Caml-list] Pros and cons of different GL bindings ? On 2011/04/28, at 1:24, Anthony Tavener wrote: > Ethan's summary is good. I'll elaborate a bit on glcaml... > > I use glcaml, but don't recommend it in general. There are two reasons I chose it: 1. It looks like OpenGL, so my familiarity with it directly translates... the only differences are lowecase GL constants and no parentheses around arguments. 2. It (kind-of) supports features like shaders. > > What I mean by "kind-of" is that the bindings are broken for a lot of lesser-used features. I've been maintaining my own modifications to support features I need (same with sdlcaml)... though I recently decided I should follow OpenGL 4 (basically the same as OpenGL ES 2), which strips the interface down to a minimal set heavily reliant on shaders. This is turning into "yet another set of bindings". > > I know I tried glMLite... but can't remember what problems I encountered, and I did encounter problems which led me to settle on glcaml. > > Also, there is one other binding I know, by Jeffrey Scofield, for OpenGL ES 1, and he uses this for iPhone development: > http://psellos.com/ocaml/lablgles-build.html > > > Summary: > > If you don't need shaders: LablGL > > If you want to do OpenGL ES 1.x (mobile device, for example): LablGLES > > If you need shaders: glcaml or glMLite Actually, LablGL has some shader support, provided by Florent Monnier. It has been in CVS for more than a year (file src/glShader.ml), but somehow I never came around to make a new release. I'm really sorry for the inconvenience. If some people could test this code, this would be most helpful, and I could make a release in a few weeks. Jacques Garrigue