PGraphics.beginDraw(), PGraphics.endDraw() alternatives

i also tried Clip not behaving as expected in relation to graphic transformations (eg rotateX) but it didnt work as expected (failed horribly)