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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 8C5977EE51 for ; Fri, 17 May 2013 23:38:17 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of monnier.florent@gmail.com) identity=pra; client-ip=209.85.219.52; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="monnier.florent@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of monnier.florent@gmail.com designates 209.85.219.52 as permitted sender) identity=mailfrom; client-ip=209.85.219.52; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="monnier.florent@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-oa0-f52.google.com) identity=helo; client-ip=209.85.219.52; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="postmaster@mail-oa0-f52.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApEEAKiillHRVds0lGdsb2JhbABbgziCdbAQjkp5CBYOAQEBAQcLCwkSKoIfAQFFARsdAQMSBQsNUAERAQUBIogMAQMPDKADjD+CfYR0ChknDViIBgEFDI8Vg1sDlziBKY4yFimENzo X-IPAS-Result: ApEEAKiillHRVds0lGdsb2JhbABbgziCdbAQjkp5CBYOAQEBAQcLCwkSKoIfAQFFARsdAQMSBQsNUAERAQUBIogMAQMPDKADjD+CfYR0ChknDViIBgEFDI8Vg1sDlziBKY4yFimENzo X-IronPort-AV: E=Sophos;i="4.87,695,1363129200"; d="scan'208";a="14864922" Received: from mail-oa0-f52.google.com ([209.85.219.52]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 17 May 2013 23:38:16 +0200 Received: by mail-oa0-f52.google.com with SMTP id h1so5784654oag.11 for ; Fri, 17 May 2013 14:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=/dTNnUaVOptR8cKb5mwa0a6mpJG2ZvAXc9ZvziQBXVA=; b=LgZchu2VcGC7mBQE8bzCEfvuSJ62IQ7UVPb62EQeoDcmmuBXkEroDLbEVArJi8rfAi wqOmOMMQOM0MLZlxdGrUduJq6DaQGhrDr4vklkZC7/BqGZqAbOkBzo8/+BXuMYMRIMX9 8h7L0jPg/q9NWqrH/MiDaip6cChpZ4aOzv9S0BtZZ7aaK13gWBg9Oy6mrnF9QxcuROIv zXXEnxkDneWKs0E4f2N1pqMEKKffm9soXZdOf9/akWROUM50Ntz26ElYPk1BwTQEcc0M ephfr7ajagduY8qOg17VVCHyEnEr/gUdOdmZw+E1uiGcSjelF1qR/WxgjU6/bmPq6GA+ dtOQ== MIME-Version: 1.0 X-Received: by 10.60.141.226 with SMTP id rr2mr24118431oeb.35.1368826695308; Fri, 17 May 2013 14:38:15 -0700 (PDT) Received: by 10.60.3.168 with HTTP; Fri, 17 May 2013 14:38:15 -0700 (PDT) Date: Fri, 17 May 2013 23:38:15 +0200 Message-ID: From: Florent Monnier To: Caml List Cc: Francois Berenger Content-Type: text/plain; charset=ISO-8859-1 X-Validation-by: monnier.florent@gmail.com Subject: Re: [Caml-list] 2D vector graphics 2013/5/10, Francois Berenger wrote: > On 05/08/2013 11:32 AM, Francois Berenger wrote: >> Hello, >> >> Is there a standard library for this purpose? > > By the way, I just saw in OPAM that there are bindings > to cairo, which looks quite nice for 2D vector graphics. There's even "Caboodle" a mini-puzzle game that uses it, which is very simple but interesting as an example of what we can do with it. For Mageia Linux users, just install it with: $ su - -c "urpmi caboodle" $ caboodle If you don't have any package for your distro, you may want to get our patches from: http://svnweb.mageia.org/packages/cauldron/caboodle/current/ before to compile it. Or more minimalist examples on Rosetta: http://rosettacode.org/wiki/Category:Ocaml-cairo For 2D accelerated graphics, you may also appreciate SFML 2.0, there are 2 usable bindings: ocaml-sfml and ocsfml. Both are good for the 2.0 version of SFML that was just released several days ago. -- Best regards