-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Not sure if this is better suited as a Drawbject property, or a blit() flag. In any case...
It would be handy if devs could specify a z-index which governed which stimuli gets 'visual priority' when two or more overlap.
ex:
Two drawbjects [dA, dB] with respective z-indexes of 1 & 2
dA is stationary, dB is free to move.
When dB intersects with dA, dB should not obfuscate dA but instead glide 'underneath'
Personally, I think making it a property of the Drawbject itself is more in line with KLibs' modus operandi. But I can imagine scenarios where developers might want to conditionally shadow this property only during a some event which is where a blit flag would come in handy.
I think (should test) that the only way to do this now is through rigid control of blit order. I'm pretty sure subsequent blits() will overlap previous ones. Making z-index a property of the drawbject itself would prevent a lot of headache for developers working on projects utilizing dynamic stimuli.
While this is doable (I think) using KLNumpySurface, that would be a lot of mental overhead on the developer's end to figure out.