Jump to content

Recommended Posts

Posted

How would I use World::GetFrameCaptures() to have my app take a screenshot of the game? I know Steam can do this, but I'd like the application to be able to do this alone. 

    void Program::TakeScreenshot()
    {
        if (mainapp != NULL)
        {
            auto f = stage->gameworld->GetFrameCaptures();
            //auto game = mainapp->As<GraphicsWindow>();
            //if (game) game->framebuffer->Capture();
        }
    }

 

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Posted

Call Framebuffer::Capture to take the screenshot. The result will not be available immediately.

In your main loop, call world->GetFrameCaptures() each loop, and handle any results it gives you there.

In the next build this will be changed to Framebuffer::GetCaptures(), and it will return a resizable array of pixmaps.

  • Like 1

Let's build cool stuff and have fun. :)

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...