add 'frame' argument to gui.screenshot

This commit is contained in:
MihailRis 2026-09-17 22:07:18 +03:00
parent 5ae4c1b27b
commit 69edfc8c8a
7 changed files with 41 additions and 1 deletions

View file

@ -6,6 +6,7 @@
#include <memory>
class Texture;
class ImageData;
class Framebuffer : public Bindable {
uint fbo;
@ -36,6 +37,8 @@ public:
std::shared_ptr<Texture> getSharedTexture() const;
std::unique_ptr<ImageData> readData() const;
/// @brief Get framebuffer width
uint getWidth() const;
/// @brief Get framebuffer height