XForms: background Color in several openGl canvas

Manuel J. Garcia (mgarcia@aero.usyd.edu.au)
Wed, 26 Aug 1998 22:17:23 +1000

# To subscribers of the xforms list from "Manuel J. Garcia" <mgarcia@aero.usyd.edu.au> :

hi

I have an application that uses two opengl canvas and for which I want
to have the same background color. In openGl you suppose to do it only
once at the beginning of the application, (using glClearColor() ), but
it only change the background color of the main window.

if I use glClearColor() just before drawing it works fine but you don't
suppose to do it every time you refresh the window.

Is there a way of telling the background color for each OpenGL window?

thanks

manuel

----------------------------------------------------------
Manuel Julio Garcia
Aeronautical Engineering Dept.
The University of Sydney, NSW 2006
Australia

Tel: +2 9351 2342
Fax: +2 9351 4841
email: mgarcia@aero.usyd.edu.au
http://fearc.aero.usyd.edu.au/~mgarcia
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/