diff nodejs/mbfly_njs.h @ 687:da12923a789a

Migrate paints.cc to use gen_v8_binding.m4
author Thinker K.F. Li <thinker@branda.to>
date Sat, 07 Aug 2010 21:37:57 +0800
parents 7685c57e29d0
children 86c6ebf1de25
line wrap: on
line diff
--- a/nodejs/mbfly_njs.h	Sat Aug 07 19:43:17 2010 +0800
+++ b/nodejs/mbfly_njs.h	Sat Aug 07 21:37:57 2010 +0800
@@ -44,6 +44,13 @@
 
 /* From paints.cc */
 void xnjsmb_paints_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> rt_temp);
+paint_t *xnjsmb_paint_color_new(njs_runtime_t *rt,
+				float r, float g, float b, float a,
+				const char **err);
+paint_t *xnjsmb_paint_image_new(njs_runtime_t *rt, mb_img_data_t *img,
+				const char **err);
+v8::Handle<v8::Value> export_xnjsmb_auto_paint_color_new(paint_t *paint);
+v8::Handle<v8::Value> export_xnjsmb_auto_paint_image_new(paint_t *paint);
 
 /* From font.cc */
 void xnjsmb_font_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> mb_rt_temp);