DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TDgEH3R5c+EWJrwBFRWrN3ntXnUnGY7CGmf78kOLvITDFWZslyQpFIQ1yOxyBwBRUZNsOZNeUh1Wk5J5NfxEdO7xb9nWLf18XXglXOAY2vQMzjipo8GXk7kOhIFSkpOgLWYTC5XH/ld+B6wALqxKj7rDz2RW9GB7ZDIuu3xwJLk= Message-ID: Date: Tue, 18 Oct 2005 19:10:20 +0200 From: Maurizio Colucci To: BP Subject: Re: sdl together with opengl? Cc: lablgtk at kaba.or.jp In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: Content-Transfer-Encoding: 8bit 2005/10/17, BP : > Maurizio Colucci wrote: > > > Hello, > > > > Is it possible to use ocamlsdl together with lablgl? Is there any > > reason against? > > > > If it's possible, I am afraid I need an example of how to set up the > > video mode for interaction with lablgl. I couldn't find any. I made a > > simple test and I got a crash: > > > In the package ocaml-ode there is an exemple which uses ode, opengl and sdl > (all from ocaml of course). > > But I don't know if it really works, because the compilation of ocaml-ode > fails on my computer (I have all the deps though). > Thank you, I have solved the problem. I was calling filp_screen instead of Sdlgl.swap_buffers :-P BTW, try my free tennis game at http://sourceforge.net/projects/freetennis :-) (there is no web page or manual yet, but it runs from CVS. I will advertise it again when the first release is out ) Cheers! Maurizio