mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-24 12:26:20 +02:00
Pull request 326 split into general plugin APIs and contrib/plugins/fit-check: - reskate.capture (start, stop, discard, state, compare, kept, save): the screen recorded before the overlay draws, cut out by the game's depth or by colour, saved as GIF, APNG, PNG or WebM with an optional card; the "capture" permission. - reskate.room.turn: a stand-in pad's stick held over to turn the menu's preview. - reskate.menu.game and reskate.menu.grid: what the game's menu and its item grid show. - reskate.outfit.worn, board and title: what the skater wears, by name. - reskate.files.reveal: a data folder opened in Explorer. The plugin finds where the turn comes round, eases the stick off, picks evenly spaced frames and saves them with the board's parts or the outfit on the card.
14 lines
580 B
C++
14 lines
580 B
C++
#pragma once
|
|
#include "capture_recorder.h"
|
|
|
|
namespace dingosdk::overlay { struct FrameGrabHost; }
|
|
|
|
// The process's one screen recorder (reskate.capture), fed by the overlay's frame grab, and the menu's
|
|
// fonts its cards are drawn in (built into ReSkate.dll as FONT_HEADING, FONT_BODY and FONT_BRUSH).
|
|
namespace dingosdk::capture {
|
|
Recorder& recorder() noexcept;
|
|
// What the overlay asks before drawing each frame (overlay::set_frame_grab); process lifetime.
|
|
const overlay::FrameGrabHost* frame_grab() noexcept;
|
|
PanelFonts menu_fonts() noexcept;
|
|
} // namespace dingosdk::capture
|