How the camera drawing works
masterGamera uses a callback-based drawing system. When you call cam:draw(callback), the library applies all transformations (translation, rotation, scaling) and clipping to everything rendered inside that callback.
The callback provides the visible bounds (l, t, w, h), which are axis-aligned. Because the camera can rotate, these bounds might be slightly larger than the actual visible area to ensure no objects are prematurely clipped at the edges.