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
5
extern
"C"
{
6
#endif
7
8
struct
ncplane
;
9
struct
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.
14
typedef
int (*
ncblitter
)(
struct
ncplane
*
n
,
int
linesize,
const
void
* data,
15
int
scaledy,
int
scaledx,
const
struct
blitterargs
* bargs);
16
17
void
set_pixel_blitter
(
ncblitter
blitfxn);
18
19
#ifdef __cplusplus
20
}
21
#endif
22
23
#endif
ncblitter
int(* ncblitter)(struct ncplane *n, int linesize, const void *data, int scaledy, int scaledx, const struct blitterargs *bargs)
Definition
blit.h:14
set_pixel_blitter
void set_pixel_blitter(ncblitter blitfxn)
Definition
blit.c:1289
n
vopts n
Definition
notcurses.h:3506
blitterargs
Definition
internal.h:372
ncplane
Definition
internal.h:76
src
lib
blit.h
Generated by
1.9.8