Josh Posted October 15, 2025 Posted October 15, 2025 Might need some fallback for when time is paused... 1 Quote Let's build cool stuff and have fun.
Solution Josh Posted October 15, 2025 Author Solution Posted October 15, 2025 Will be included in next build, example: int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Ultra Engine", 0, 0, 1280, 720, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR); //Create a framebuffer auto framebuffer = CreateFramebuffer(window); //Create a world auto world = CreateWorld(); //Create a camera auto camera = CreateCamera(world); camera->Move(0, 0, -2); auto box = CreateBox(world); //Main loop while (window->Closed() == false and window->KeyHit(KEY_ESCAPE) == false) { box->Turn(0, 0, 1); if (window->KeyHit(KEY_SPACE)) { if (world->GetPaused()) { world->Resume(); } else { world->Pause(); } } world->Update(); world->Render(framebuffer); } return 0; } 1 1 Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.