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

Function main

examples/multiple/main.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include "raylib-cpp.hpp"
24
25int main() {
26 raylib::Window window(640, 480, "raylib-cpp [multiple] example");
27 SetTargetFPS(60);
28
29 Player player;
30 while (!window.ShouldClose()) {
31 window.BeginDrawing();
32 {
33 window.ClearBackground(SKYBLUE);
34 player.Update();
35 player.Draw();
36 }
37 window.EndDrawing();
38 }
39}

Callers

nothing calls this directly

Calls 3

ShouldCloseMethod · 0.80
UpdateMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected