Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: squidgetx on November 19, 2010, 09:32:01 pm

Title: More masking
Post by: squidgetx on November 19, 2010, 09:32:01 pm
What's the best and most efficient way to display two buffers on the screen souch that it acts like the ptmask command? As in, if pixel 0,0 on buffer one is 1 and on buffer two it is 0 then a gray pixel will be drawn at 0,0. I tried figuring it ou in advance but apparently I suck at logic commands lol
Title: Re: More masking
Post by: Runer112 on November 19, 2010, 11:43:59 pm
I'm slightly confused as to why you would want part of the buffer to be transparent, as the buffer is the background that you usually draw the transparent things onto. What exactly are you trying to achieve?
Title: Re: More masking
Post by: Quigibo on November 20, 2010, 04:10:31 am
So you have a 3rd and 4th buffer in addition to the primary and back buffers L6 and L3?  In that case, it would definately be difficult and maybe a bit slow.  The easiest way is to get a 16 byte block of free ram, and then for each 8x8 subset of the new buffer copy the region there and then draw them with Pt-Mask().
Title: Re: More masking
Post by: squidgetx on November 20, 2010, 07:19:06 am
ok then never mind. :P. This is just for optimizing so I don't actually *need* it. Thanks though :)