From: Enlightenment C. <no...@cv...> - 2007-12-10 23:04:36
|
Enlightenment CVS committal Author : turran Project : e17 Module : proto/enesim Dir : e17/proto/enesim/src/lib Modified Files: Enesim.h Makefile.am enesim_private.h Log Message: + Disable building the scanline directory + Add DeCasteljau bezier subdivision (the flat test isnt done yet) + Clean the renderer to use new API + Make extenders for different types (float, int) + Fix the vector components / container to use new Edata_Array API =================================================================== RCS file: /cvs/e/e17/proto/enesim/src/lib/Enesim.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- Enesim.h 2 Dec 2007 23:28:43 -0000 1.5 +++ Enesim.h 10 Dec 2007 23:04:04 -0000 1.6 @@ -107,7 +107,7 @@ ENESIM_SCANLINES }; -typedef void (*Enesim_Scanline_Callback)(void *sl, void *data); +typedef void (*Enesim_Scanline_Callback)(void *sl, int type, void *data); typedef struct _Enesim_Scanline Enesim_Scanline; /**< Scanline Handler */ EAPI Enesim_Scanline *enesim_scanline_alias_new(void); @@ -136,7 +136,7 @@ typedef struct _Enesim_Rasterizer Enesim_Rasterizer; /**< Rasterizer Handler */ EAPI void enesim_rasterizer_vertex_add(Enesim_Rasterizer *r, float x, float y); -EAPI int enesim_rasterizer_generate(Enesim_Rasterizer *r, int sl, Enesim_Scanline_Callback cb, void *data); +EAPI int enesim_rasterizer_generate(Enesim_Rasterizer *r, Enesim_Scanline_Callback cb, void *data); EAPI void enesim_rasterizer_delete(Enesim_Rasterizer *r); EAPI void enesim_rasterizer_fill_rule_set(Enesim_Rasterizer *r, Enesim_Rasterizer_Fill_Rule rule); @@ -239,6 +239,8 @@ { ENESIM_CMD_MOVE_TO, ENESIM_CMD_LINE_TO, + ENESIM_CMD_CURVE3, + ENESIM_CMD_CURVE4, ENESIM_CMD_END, ENESIM_CMDS }; @@ -266,7 +268,7 @@ * @defgroup Enesim_Component_Path_Group Path Source Component * @{ */ -EAPI Enesim_Component * enesim_path_new(void); +EAPI Enesim_Component * enesim_path_new(int num_vertices); EAPI void enesim_path_move_to(Enesim_Component *p, int x, int y); EAPI void enesim_path_line_to(Enesim_Component *p, int x, int y); EAPI void enesim_path_curve3(Enesim_Component *p, float x1, float y1, float x2, =================================================================== RCS file: /cvs/e/e17/proto/enesim/src/lib/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- Makefile.am 19 Oct 2007 15:30:06 -0000 1.2 +++ Makefile.am 10 Dec 2007 23:04:04 -0000 1.3 @@ -1,4 +1,4 @@ -SUBDIRS = raster vector +SUBDIRS = raster util vector MAINTAINERCLEANFILES = \ Makefile.in @@ -13,11 +13,13 @@ libenesim_la_LIBADD = \ raster/libenesim_raster.la \ +util/libenesim_util.la \ vector/libenesim_vector.la \ @EDATA_LIBS@ libenesim_la_DEPENDENCIES = \ raster/libenesim_raster.la \ +util/libenesim_util.la \ vector/libenesim_vector.la libenesim_la_LDFLAGS = -version-info 1:0:0 =================================================================== RCS file: /cvs/e/e17/proto/enesim/src/lib/enesim_private.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- enesim_private.h 13 Nov 2007 00:23:45 -0000 1.5 +++ enesim_private.h 10 Dec 2007 23:04:04 -0000 1.6 @@ -8,7 +8,7 @@ #include <stdlib.h> #include <limits.h> -#include "Edata.h" +//#include "Edata.h" #ifndef DEBUG #define NDEBUG |