|
From: Jeroen v. d. Z. <jv...@cf...> - 2001-12-14 16:15:20
|
On Friday 14 December 2001 05:01, you wrote: > On Thu, 13 Dec 2001, Perry L. Miller IV wrote: > > > How can I change the color of FXGLObjects when no lights are > > > activated ? > > > > I'm not very familiar with FXGLObjects. However, speaking purely OpenGL, > > you need a call to glColor() rather than glMaterial(). Materials need > > light to be visible. Perhaps FXGLObjects uses materials under the hood? > > > > Per > > This is the problem, glColor() and most of the GL function call doesn't > work with FXGLObjects (or I don't know how it works !). > > But thanx, > > geoffrey I doubt it. But of course you can't just issue glXXX() commands willy-nilly. They can only be called when a GL context is current, i.e. in response to a drawing or picking function. For FXGLObject, that means in the draw() or pick() function. Regards, Jeroen -- +-------------------------------+--------------------------------------------+ | E-Mail : jv...@cf... | The FOX Platform Independent GUI Toolkit: | | USMail : 215 Wynn Drive, | | | Huntsville, AL 35805 | Official Site: | | Phone : (256) 726-4820 | http://www.fox-toolkit.org | | Fax : (256) 726-4806 | ftp://ftp.fox-toolkit.org/pub | | WWW : http://www.cfdrc.com | | +-------------------------------+--------------------------------------------+ | Copyright (C) 15:10 10/10/2001 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ |