OpenTTD Source 20250220-master-gf89924a727
screenshot_type.h File Reference

Types related to screenshot providers. More...

#include "gfx_type.h"
#include "provider_manager.h"

Go to the source code of this file.

Data Structures

class  ScreenshotProvider
 Base interface for a SoundLoader implementation. More...
 

Typedefs

using ScreenshotCallback = void(void *userdata, void *buf, uint y, uint pitch, uint n)
 Callback function signature for generating lines of pixel data to be written to the screenshot file.
 

Detailed Description

Types related to screenshot providers.

Definition in file screenshot_type.h.

Typedef Documentation

◆ ScreenshotCallback

using ScreenshotCallback = void(void *userdata, void *buf, uint y, uint pitch, uint n)

Callback function signature for generating lines of pixel data to be written to the screenshot file.

Parameters
userdataPointer to user data.
bufDestination buffer.
yLine number of the first line to write.
pitchNumber of pixels to write (1 byte for 8bpp, 4 bytes for 32bpp).
See also
Colour
Parameters
nNumber of lines to write.

Definition at line 24 of file screenshot_type.h.