Logo Mibo

RaylibDiagnostics Module

Screen capture for the raylib backend.

Functions and values

Function or value Description

captureScreenshot path

Full Usage: captureScreenshot path

Parameters:
    path : string - The file path. A missing directory is created.

Saves the current frame buffer to a PNG file at the given path.

Call this after the last draw call of the frame, so the frame is complete. The readback and the PNG encoding run on the calling thread, so expect one slow frame per capture.

path : string

The file path. A missing directory is created.

Type something to start searching.