DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hLvCbTBGbxSwzOmRcn9KcknwNNy03oO/TtffM5uCa2OaffT3jPMxfVQydW7gl8syH0K6sgkrV108d3lf8Frj0lyKuaCkcVtYc8Ex8xTdBzuDTS7QesUNpqF56bpBApqpEIXypsrkMTJrtPadI1B4v+OUD8xbSxHiQSnxkh2AhDk= Message-ID: Date: Mon, 21 Nov 2005 14:26:20 +0100 From: Maurizio Colucci To: lablgtk at math.nagoya-u.ac.jp Subject: Problem with gtkglarea MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello. For my game (http://freetennis.sf.net), many people are complaining about compilation errors. They install lablgtk2, lablgl, camlimages and ocamlsdl, but their compilation fails at the line: Gpointer.blit ~src ~dst:(GlGtk.region_of_raw raw); Their compiler says it does not know the module GlGtk. The reason (I presume) is that their distros compiled lablgtk2 with --without-gl (right?). The reason (again I presume) is that gtkglarea-1.99 is not mantained anymore. Therefore I must make it easier for users to compile my game. I assume I need to change my code so as not to use the module GlGtk. My question is: how can I do without GlGtk? Fortunately I am _not_ using GlGtk.area. I am only using GlGtk.region_of_raw. What would you do to avoid its usage? The code is the following: let glPixOfPixBuf ~pixbuf ~makeSquare64x64 = let src = GdkPixbuf.get_pixels pixbuf in let raw = Raw.create `ubyte ~len:(Gpointer.length src) in Gpointer.blit ~src ~dst:(GlGtk.region_of_raw raw); GlPix.of_raw raw ~format:`rgba ~width:(GdkPixbuf.get_width pixbuf) ~height:(GdkPixbuf.get_height pixbuf) Thanks for any help, Maurizio