// Basic Window InitWindow() CloseWindow() WindowShouldClose() // Used for game loop SetTargetFPS() // V-Sync GetFrameTime() // DeltaTime
while (!WindowShouldClose()) { // 1. 读取输入 // 2. 更新世界状态 // 3. 播放声音 / 更新音频 // 4. 绘制画面 }