* Alternates between calling `BeginDrawing()` and `EndDrawing()`. * * @code * while (window.Drawing()) { * DrawRectangle(); * } * @endcode * * @return True if we're within the `BeginDrawing()` scope. */
| 447 | * @return True if we're within the `BeginDrawing()` scope. |
| 448 | */ |
| 449 | bool Drawing() { |
| 450 | if (m_drawing) { |
| 451 | EndDrawing(); |
| 452 | m_drawing = false; |
| 453 | } |
| 454 | else { |
| 455 | BeginDrawing(); |
| 456 | m_drawing = true; |
| 457 | } |
| 458 | |
| 459 | return m_drawing; |
| 460 | } |
| 461 | |
| 462 | protected: |
| 463 | /** |