Re: Is there an extension to set glClearColor to clear to a gradient

Kent Quirk <[email protected]> Tue, 29 May 2007 19:20:26 -0800
Newsgroups gmane.games.devel.opengl
Organization Fat City Network Services, San Diego, California
Message-ID <[email protected]>
Roland Krause wrote:
> Does anyone know of such a beast? 
>
> Of course, I could just draw a rectangle in viewport coordinates but
> that would be boring, wouldn't it?
>
>   
Well....consider what the extension would require -- you would specify 
the color at the corners of the screen. How is that different from 
simply specifying colors for the 4 vertices of a rectangle?

Oh....and just because I've been there, if you try to do this with a 
quad and you specify different vertex colors for all four verts, 
different drivers can give you different results because they may 
triangulate the quad differently.

    Kent


-- 
------------------------------------------------------------
Kent Quirk           I'm making a game about global warming.
Game Architect                        Track the progress at:
CogniToy                http://www.cognitoy.com/meltingpoint

----- 
FAQ and OpenGL Resources at:
  http://www.geocities.com/SiliconValley/Hills/9956/OpenGL

-- 
Author: Kent Quirk
  INET: [email protected]

Fat City Hosting, San Diego, California -- http://www.fatcity.com
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [email protected] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).