OpenTTD Source: src/screenshot_type.h File Reference

OpenTTD Source 15.3

Data Structures | Typedefs
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 = std::function< void(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 = std::function<void (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

  userdata | Pointer to user data.
  buf | Destination buffer.
  y | Line number of the first line to write.
  pitch | Number of pixels to write (1 byte for 8bpp, 4 bytes for 32bpp).

See also
  Colour

Parameters

  n | Number of lines to write.

Definition at line 24 of file screenshot_type.h.