-
Notifications
You must be signed in to change notification settings - Fork 2
/
upy_wrap.h
36 lines (29 loc) · 1.42 KB
/
upy_wrap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Copyright (C) 2020 Sean D'Epagnier <[email protected]>
*
* This Program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*/
#ifdef __cplusplus
#extern "C" {
#endif
void *ugfx_surface_from_surface_c(void *s);
void *ugfx_surface_from_data_c(int w, int h, int internal_bypp, const char *data32);
void *ugfx_surface_from_file_c(const char* filename, int bypp);
void ugfx_surface_c_free(void *s);
void ugfx_surface_c_load(void *s, const char* filename, int bypp);
void ugfx_surface_c_info(void *s, int *width, int *height, int *bypp, char **data);
void ugfx_surface_c_file_info(void *dest, const char *filename, int *width, int *height);
void ugfx_surface_c_blit_file(void *dest, const char *filename, int xoff, int yoff);
void ugfx_surface_c_blit(void *dest, void *src, int xoff, int yoff, bool flip);
void ugfx_surface_c_line(void *dest, int x1, int y1, int x2, int y2, unsigned int c);
void ugfx_surface_c_box(void *dest, int x1, int y1, int x2, int y2, unsigned int c);
void ugfx_surface_c_invert(void *dest, int x1, int y1, int x2, int y2);
void ugfx_surface_c_fill(void *dest, unsigned int c);
void *ugfx_spiscreen_c(int driver);
void ugfx_spiscreen_c_free(void *screen);
void ugfx_spiscreen_c_refresh(void *screen);
#ifdef __cplusplus
}
#endif