Author Topic: More masking  (Read 4629 times)

0 Members and 1 Guest are viewing this topic.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
More masking
« 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

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: More masking
« Reply #1 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?
« Last Edit: November 19, 2010, 11:44:35 pm by Runer112 »

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: More masking
« Reply #2 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().
« Last Edit: November 20, 2010, 04:11:18 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: More masking
« Reply #3 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 :)
« Last Edit: November 20, 2010, 07:20:20 am by squidgetx »