Returns the main (usually first) renderer attached to the current game.
This hook MUST be called at the top level of a component function — never inside loops, conditions, nested functions, or callbacks.
The call order of all hooks is strictly fixed across every refresh; reordering calls will corrupt internal state.
Handy for pointer → world coordinate conversion or canvas measurements.
Returns the main (usually first) renderer attached to the current game.
This hook MUST be called at the top level of a component function — never inside loops, conditions, nested functions, or callbacks. The call order of all hooks is strictly fixed across every refresh; reordering calls will corrupt internal state.
Handy for pointer → world coordinate conversion or canvas measurements.