nanogui: TRUECOLOR 565


Previous by date: 30 Sep 2005 16:28:23 +0100 Re: cross compiling flnx-0.18, Greg Haerr
Next by date: 30 Sep 2005 16:28:23 +0100 Re: TRUECOLOR 565, Jimmy Walker
Previous in thread: 30 Sep 2005 16:28:23 +0100 Re: TRUECOLOR 565, Greg Haerr
Next in thread: 30 Sep 2005 16:28:23 +0100 Re: TRUECOLOR 565, Jimmy Walker

Subject: Re: [nanogui] TRUECOLOR 565
From: Jimmy Walker ####@####.####
Date: 30 Sep 2005 16:28:23 +0100
Message-Id: <20050930152755.15938.qmail@web35003.mail.mud.yahoo.com>

Thanks but my real problem is not really speed but
trying to get the color to change.
Lets say I want two bands one I will try to set using
MWRGB(0,0,255) then the next band is drawn with
0,0,245. I get the same color.
My question is when using MWRGB with a TRUECOLOR 565
setting should I just use the top 5 or 6 bits of the
color byte?
How do I get one shade darker or lighter?


--- Greg Haerr ####@####.#### wrote:

> : The system I am working on uses TRUECOLOR565. Is
> there
> : a good way that I can directly change the RGB
> values.
> : MWRGB Produces some strange effects. I am trying
> to
> : smoothly shade a bar.
> 
> Use the GrOpenClientFramebuffer() api, which will
> allow
> you to call GrGetWindowFBInfo to find the
> memory-mapped
> address of the current window positions'
> user-drawable
> window area.  Then, just draw at that address...
> 
> This routine was added for applications that needed
> fast,
> direct access to window interiors, like mpeg
> players.
> 
> Regards,
> 
> Greg
> 
> 


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

Previous by date: 30 Sep 2005 16:28:23 +0100 Re: cross compiling flnx-0.18, Greg Haerr
Next by date: 30 Sep 2005 16:28:23 +0100 Re: TRUECOLOR 565, Jimmy Walker
Previous in thread: 30 Sep 2005 16:28:23 +0100 Re: TRUECOLOR 565, Greg Haerr
Next in thread: 30 Sep 2005 16:28:23 +0100 Re: TRUECOLOR 565, Jimmy Walker


Powered by ezmlm-browse 0.20.