Notcurses 3.0.16
a blingful library for TUIs and character graphics
Loading...
Searching...
No Matches
blit.h
Go to the documentation of this file.
1#ifndef NOTCURSES_BLIT
2#define NOTCURSES_BLIT
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8struct ncplane;
9struct blitterargs;
10
11// scaledy and scaledx are output geometry from scaling; data is output data
12// from scaling. we might actually need more pixels due to framing concerns,
13// in which case just assume transparent input pixels where needed.
14typedef int (*ncblitter)(struct ncplane* n, int linesize, const void* data,
15 int scaledy, int scaledx, const struct blitterargs* bargs);
16
17void set_pixel_blitter(ncblitter blitfxn);
18
19#ifdef __cplusplus
20}
21#endif
22
23#endif
int(* ncblitter)(struct ncplane *n, int linesize, const void *data, int scaledy, int scaledx, const struct blitterargs *bargs)
Definition blit.h:14
void set_pixel_blitter(ncblitter blitfxn)
Definition blit.c:1289
vopts n
Definition notcurses.h:3506