Re: [Super-tux-devel] Clear screen bug in OpenGL mode
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2004-03-17 23:32:24
|
I am not as stupid as I sound ;D I've tried that already. It looks like we need to disable something... Ricardo Cruz Em Quarta, 17 de Mar=E7o de 2004 22:29, o Bill Kendrick escreveu: > On Wed, Mar 17, 2004 at 10:26:21PM +0000, Ricardo Cruz wrote: > > Hey there, > > > > In the OpenGL mode, the screen is not being corrected cleared, the code > > is the following: > > glClearColor(r/256, g/256, b/256, 1.0); > > glClear(GL_COLOR_BUFFER_BIT); > > Hum... maybe 'promote' r g and b to float during the division, like so? > > r/256.0 > > or: > > ((float) r) / 256.0 > > > ??? > > -bill! > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck > _______________________________________________ > Super-tux-devel mailing list > Sup...@li... > https://lists.sourceforge.net/lists/listinfo/super-tux-devel =2D-=20 When neither their poverty nor their honor is touched, the majority of men live content. -- Niccolo Machiavelli |