Stuart Axon
2011-05-07 01:40:02 UTC
OK .. maybe want a little testing first I guess.
It took a while as I had some sort of mental block about how it worked in cairo
(simple, just like stroke), and also preventing me from understanding it in
sb/nb (simple, just pass in the path to clip to) .. not sure why I had so much
trouble but there you go.
+ The explanation I should've put in the bug report about how to add it (or
anything)(if I hadn't had said mental block).
The drawqueue is just a load of functions that get passed a cairo context -
you create a function, something like render_closure, that returns a render()
function... this gets called later when rendering happens... see ClippingPath ..
really not much in it at all.
Seeing the old shoebot implementation, and actually reading cairo and nodebox
docs was all that was needed all along ;)
Anyway.. .point is - clipping seems to be working ...
S++
It took a while as I had some sort of mental block about how it worked in cairo
(simple, just like stroke), and also preventing me from understanding it in
sb/nb (simple, just pass in the path to clip to) .. not sure why I had so much
trouble but there you go.
+ The explanation I should've put in the bug report about how to add it (or
anything)(if I hadn't had said mental block).
The drawqueue is just a load of functions that get passed a cairo context -
you create a function, something like render_closure, that returns a render()
function... this gets called later when rendering happens... see ClippingPath ..
really not much in it at all.
Seeing the old shoebot implementation, and actually reading cairo and nodebox
docs was all that was needed all along ;)
Anyway.. .point is - clipping seems to be working ...
S++