-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 14 June 2002 11:15, Alex Alessandra wrote:
> Hi,
>
> I'm in need to retrieve the int value for a GL String constant when parsing
> quake3 shaders from a file.
>
> Example:
> blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
>
> I prepared a method like:
> int getIntForConstant("GL_SRC_ALPHA")
>
> But is there a way to get around this without having to prepare a lookup
> table (Hashtable or similar), maybe a static method in GLContext ?
>
> Java QuakeIIIArena is on the way...
>
> -=[AziD]=-
>
well, this schould be easy to implement.
just add this feature to the C2J parser,
which should implement such a string -> int mapping functionality !
may we or I help you with it ?
cheers, sven
- --
health & wealth
mailto:sgo...@ja...
www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/
voice : +49-521-2399440 ; fax : +49-521-2399442
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9Cdb+HdOA30NoFAARAiU/AKCGtduS4YQG+/0Nq0NLaw0CdlMHAgCgnUv+
9ndkX6Pb0CtATMPAyqkzDZg=
=1+yZ
-----END PGP SIGNATURE-----
|