summaryrefslogtreecommitdiff
path: root/src/cairo_bindings.h
blob: 11704064cf1744286cd887c05e69c8a004579d5a (plain)
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
#ifndef HONEY_CAIRO_H
#define HONEY_CAIRO_H

#include "common.h"

/* @file cairo_bindings.h
 * @brief Define some binding functions for creating and manipulating cairo surfaces,
 * as well as enabling turning them into OpenGL textures.
 */

extern int honey_cairo_mt_ref;

int honey_setup_cairo(lua_State* L);

int honey_cairo_new(lua_State* L);

int honey_cairo_update_texture(lua_State* L);

int honey_cairo_get_texture(lua_State* L);

int honey_cairo_destroy(lua_State* L);

/* drawing functions */

int honey_cairo_move_to(lua_State* L);

int honey_cairo_line_to(lua_State* L);

int honey_cairo_stroke(lua_State* L);

int honey_cairo_set_color(lua_State* L);

#endif