Can I implement ScrollObject::OnRender, and draw debug information to existing viewports similar to what's implemented in the orxPhysicsDebugDraw::Draw* class methods?
Yep, you can issue "debug" draw calls from anywhere in the code, including OnRender. However your draw calls will be issued before your object is rendered, so they'll appear behind it.
In order to solve this, you can listen to the orxRENDER_EVENT_OBJECT_STOP instead.
Comments
In order to solve this, you can listen to the orxRENDER_EVENT_OBJECT_STOP instead.