forked from libretro/libretro-lutro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraphics.h
More file actions
41 lines (33 loc) · 627 Bytes
/
Copy pathgraphics.h
File metadata and controls
41 lines (33 loc) · 627 Bytes
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
37
38
39
40
41
#ifndef GRAPHICS_H
#define GRAPHICS_H
#include <stdlib.h>
#include "runtime.h"
#include "painter.h"
typedef struct
{
bitmap_t* data;
int ref;
} gfx_Image;
typedef struct
{
unsigned x;
unsigned y;
unsigned w;
unsigned h;
unsigned sw;
unsigned sh;
} gfx_Quad;
typedef struct
{
int r;
int g;
int b;
int a;
} gfx_Color;
typedef painter_t gfx_Canvas;
void lutro_graphics_init(lua_State* L);
int lutro_graphics_preload(lua_State *L);
void lutro_graphics_reinit(lua_State *L);
void lutro_graphics_begin_frame(lua_State *L);
void lutro_graphics_end_frame(lua_State *L);
#endif // GRAPHICS_H