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;
}