excessive / DOMy

A DOM-like GUI framework for the *awesome* LÖVE framework
Other
32 stars 2 forks source link

Custom draw functions #22

Closed karai17 closed 9 years ago

karai17 commented 9 years ago

need to figure this one out.

adrix89 commented 9 years ago

If it is overridden treat it as separate from the batches. The default function handles adding to batches and stuff. You would need a separate draw function from the batches and need to handle the draw order so that the batches sandwich the custom and animated stuff.

Alternatively don't have custom draw functions OR don't use spritebatch. You might be able to so some tricks with canvas and masking in which case you draw the spritebatch first and do the tricks after but i can't help you there since I have no idea how it would work.