Re: [gtk-list] Re: Using Mesa (openGL) with GTK



-----BEGIN PGP SIGNED MESSAGE-----

Thanks a lot! This was what I needed...

>>>>> "Ivo" == Ivo Clarysse <soggie@riv.be> writes:

    Ivo> The following program displays a triangle using Mesa. 
    Ivo> I tried it on a couple of SGI machines with SGI Open/GL - it compiles,
    Ivo> but doesn't run on true-color SGIs.  It does work on true-color SGIs
    Ivo> when compiled with Mesa though.  This is probably related to
    Ivo> Mesa being able to render to more graphics contexts than SGI's
    Ivo> OpenGL implementation.  (the code below is mostly ignorant about
    Ivo> the existance of different graphics contexts - THIS IS A BUG).

    Ivo> It works with the GTK/GDK/GLIB from the gimp-0.99.11 release.
    Ivo> Developed and tested with Mesa 2.1.

It works for me after changing dbuf in gui_init to start with GL_RGBA
and put the GLX_DOUBLEBUFFER at the end. Took me a couple minutes, and
comparing with glxdemo.c in Mesa 2.3...

First thing I did after that... I built a little rotating on top
(cam_?spin are there already, so...).  Wonderful, and so simple.

And if anyone has to add something that should be changed before
trying to use it in bigger project, go ahead.  It's
shameless-plug-time: I'll be using it in MARS, the Modelling Animation
and Rendering System.  Come to
http://members.tripod.com/~Juergen_Erhard/mars_index.html and check it
out...

Bye, J

- -- 
Juergen A. Erhard (that ue is actually \"u (TeX) or &uuml; (HTML/SGML))
eMail: jae@laden.ilk.de                             |
snailMail: Belfortstr. 6; 76133 Karlsruhe; GERMANY  |  pros do it for money,
phone: +49 721 27326                                |  amateurs out of love.
WWW: http://members.tripod.com/~Juergen_Erhard/     |

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQEVAwUBNCxuuQIG66LugGzRAQHrCwf+I1lMohUBUskUCoxD6RD7UGXxciFVIlFP
Csx1iJOKsJ4hdIk3Ulm6wXD+8a6wK16Tg9XgBXIFPgbUvMkjcxnH3UOmmoyEHIER
/dmq6CAY+JeLYZBmEurbQRZnw+nrbXnvgJEmYns88xBkHe1BS8iTmK1GYTnIIjsa
r9UKaov91d8hd2jVgVi50WGZt2RmDomE1uqfegMmQ0UV0qJDt7hulm02u3oC2TKW
4zIEhONjAWLKS5wlTZunVCExzRN5tAJPGukq1M+ql4mWXMAUuI9JgjqV8x2ObR9p
ZrcpXFKptiStXGyuwaw/+BsFXDYkZ6wsv/E6SsnBHwrlbMEy6rA62A==
=+gWU
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]