summaryrefslogtreecommitdiff
path: root/src/cairo_bindings.h
blob: 314256b9283f544ef457ac696cb154a862f20c74 (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
34
35
36
37
#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_arc(lua_State* L);

int honey_cairo_stroke(lua_State* L);

int honey_cairo_set_color(lua_State* L);

int honey_cairo_set_line_width(lua_State* L);

#endif