Skip to content

added screenshot functionality#1300

Closed
retuci0 wants to merge 2 commits intosmartcmd:mainfrom
retuci0:screenshot
Closed

added screenshot functionality#1300
retuci0 wants to merge 2 commits intosmartcmd:mainfrom
retuci0:screenshot

Conversation

@retuci0
Copy link
Contributor

@retuci0 retuci0 commented Mar 16, 2026

Description

added "working" screenshot system

Changes

Previous Behavior

no screenshot functionality :(

Root Cause

it's cool

New Behavior

you can now take an in-game screenshot by pressing F2

Fix Implementation

captures the current frame by copying the swap chain's back buffer to a CPU-readable staging texture, processes the pixel data to composite transparency over black and convert to BGRA, then saves it as a .png file using WIC

AI Use Disclosure

no ai was used

@itsRevela
Copy link

#1262

@mattsumi
Copy link
Collaborator

This PR will be closed because:

It is duplicate of #1262.

Look at our CONTRIBUTING.md for more info.

@mattsumi mattsumi closed this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants