Re: [AD] Allegro5 and colors

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 08 September 2002 22:56, Gillius wrote:
> I'd rather Allegro not become state-based like OpenGL.
>
> I would like to try to use Allegro in a multithreaded context, and
> state based code makes this impossible or at least impractical.
>
> Besides, OpenGL CONSTANTLY confuses me because another unrelated
> function on the other side of the program has some sort of bug that
> affects OpenGL state, and it only shows up in another function.
>  Although some things about state programming are really cool, I
> think it leads to be very error- prone and unmodular code.

I fully agree, although I have no experience with OpenGL. We should 
learn from the FreeType code: there is *no* global state information 
whatsoever; everything is stored in structures which are passed around.
Now, this is obviously not going to work for some parts of Allegro, but 
for the user-exposed bits it is generally a good idea.

Bye for now,
- -- 
Laurence Withers,  lwithers@xxxxxxxxxx
(GnuPG 04A646EA) http://www.lwithers.demon.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9e8zDUdhclgSmRuoRAgTsAJsEtgVGDQSqGTNLJGEXXRnmdgnsPACfaTHc
j8KH0sma77YvFnuWDeY4iSU=
=OG+I
-----END PGP SIGNATURE-----



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/