MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Drawing

Method Drawing

include/Window.hpp:449–460  ·  view source on GitHub ↗

* Alternates between calling `BeginDrawing()` and `EndDrawing()`. * * @code * while (window.Drawing()) { * DrawRectangle(); * } * @endcode * * @return True if we're within the `BeginDrawing()` scope. */

Source from the content-addressed store, hash-verified

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 /**

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected