class

PointClickEngine::Graphics::Utils::ScreenshotManager

Inherits Reference < Object

Screenshot manager for game integration

Constructors

new(directory : String = "screenshots", format : Screenshot::Format = Screenshot::Format::PNG, capture_key : RL::KeyboardKey = RL::KeyboardKey::F12)
Source

Instance methods

capture_key
Source
capture_key=(capture_key : RL::KeyboardKey)
Source
directory
Source
directory=(directory : String)
Source
enabled
Source
enabled=(enabled : Bool)
Source
format
Source
format=(format : Screenshot::Format)
Source
on_screenshot

Callbacks

Source
on_screenshot=(on_screenshot : Proc(String, Nil) | Nil)

Callbacks

Source
on_sequence_end
Source
on_sequence_end=(on_sequence_end : Proc(Nil) | Nil)
Source
on_sequence_start
Source
on_sequence_start=(on_sequence_start : Proc(Nil) | Nil)
Source
recording?

Check if recording

Source
sequence
Source
sequence=(sequence : Screenshot::Sequence | Nil)
Source
start_sequence

Start sequence recording

Source
take_screenshot

Take a screenshot

Source
toggle_sequence

Toggle sequence recording

Source
update(delta_time : Float32)

Update manager

Source