From: MLM Veraart (Veraart++at++fel.tno.nl)
Date: 04/14/2000 04:12:41
Larry Ramey wrote:
>
> people->hello(),
>
> Is there a way to determine the Renderer you are using (IMPACT,IR,RE)
> WITHOUT makeing the GLGetString() call? I would like to do this from the
> APP process which has no GL context.
You can use the shell.
Make a startup script that sets an environment variable that APP reads.
#!/bin/csh
setenv GRAPHICS `hinv | \grep ^Graphics`
myapp $*
exit
And in the APP process use the 'getenv("GRAPHICS")' call to
get a pointer to the string and analize it with the string functions.
Mario Veraart
> --
> ---------------------------------------------------------------
> Larry E. Ramey ramey++at++ccpo.odu.edu
This archive was generated by hypermail 2b29 : Fri Apr 14 2000 - 04:13:45 PDT