Enlightenment CVS committal
Author : turran
Project : e17
Module : proto/enesim
Dir : e17/proto/enesim/src/lib/vector/component
Modified Files:
transform.c source_csv.c component.h path.c component.c
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/vector/component/transform.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- transform.c 14 Oct 2007 17:49:28 -0000 1.2
+++ transform.c 10 Dec 2007 23:04:04 -0000 1.3
@@ -84,7 +84,7 @@
{
Enesim_Component *c;
- c = enesim_component_new();
+ c = enesim_component_new(0);
enesim_transform_init(c);
return c;
}
===================================================================
RCS file: /cvs/e/e17/proto/enesim/src/lib/vector/component/source_csv.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- source_csv.c 14 Oct 2007 17:49:28 -0000 1.2
+++ source_csv.c 10 Dec 2007 23:04:04 -0000 1.3
@@ -112,7 +112,7 @@
{
Enesim_Component *c;
- c = enesim_component_new();
+ c = enesim_component_new(0);
enesim_source_csv_init(c);
return c;
}
===================================================================
RCS file: /cvs/e/e17/proto/enesim/src/lib/vector/component/component.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- component.h 12 Oct 2007 11:04:53 -0000 1.1
+++ component.h 10 Dec 2007 23:04:04 -0000 1.2
@@ -38,7 +38,7 @@
ENESIM_COMPONENT_TYPES
};
-Enesim_Component * enesim_component_new(void);
+Enesim_Component * enesim_component_new(int num);
void enesim_component_notify(Enesim_Component *c);
int enesim_component_generate(Enesim_Component *c, int *num);
===================================================================
RCS file: /cvs/e/e17/proto/enesim/src/lib/vector/component/path.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- path.c 22 Oct 2007 18:51:18 -0000 1.3
+++ path.c 10 Dec 2007 23:04:04 -0000 1.4
@@ -9,7 +9,6 @@
typedef struct _Path
{
Enesim_Component *c;
-
} Path;
/*============================================================================*
@@ -19,6 +18,7 @@
static void enesim_path_generate(void *data, int *num)
{
Path *d = data;
+
}
static void enesim_path_free(void *data)
@@ -48,11 +48,11 @@
* To be documented
* FIXME: To be fixed
*/
-EAPI Enesim_Component * enesim_path_new(void)
+EAPI Enesim_Component * enesim_path_new(int num_vertices)
{
Enesim_Component *c;
- c = enesim_component_new();
+ c = enesim_component_new(num_vertices);
enesim_path_init(c);
return c;
}
@@ -78,7 +78,7 @@
*/
EAPI void enesim_path_close(Enesim_Component *p)
{
-
+ enesim_container_vertex_add(p->path, 0, 0, ENESIM_CMD_END);
}
/**
* To be documented
@@ -87,7 +87,9 @@
EAPI void enesim_path_curve3(Enesim_Component *p, float x1, float y1, float x2,
float y2, float x3, float y3)
{
-
+ enesim_container_vertex_add(p->path, x1, y1, ENESIM_CMD_CURVE3);
+ enesim_container_vertex_add(p->path, x2, y2, ENESIM_CMD_CURVE3);
+ enesim_container_vertex_add(p->path, x3, y3, ENESIM_CMD_CURVE3);
}
/**
* To be documented
@@ -96,5 +98,8 @@
EAPI void enesim_path_curve4(Enesim_Component *p, float x1, float y1, float x2,
float y2, float x3, float y3, float x4, float y4)
{
-
+ enesim_container_vertex_add(p->path, x1, y1, ENESIM_CMD_CURVE4);
+ enesim_container_vertex_add(p->path, x2, y2, ENESIM_CMD_CURVE4);
+ enesim_container_vertex_add(p->path, x3, y3, ENESIM_CMD_CURVE4);
+ enesim_container_vertex_add(p->path, x4, y4, ENESIM_CMD_CURVE4);
}
===================================================================
RCS file: /cvs/e/e17/proto/enesim/src/lib/vector/component/component.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- component.c 14 Oct 2007 17:49:28 -0000 1.2
+++ component.c 10 Dec 2007 23:04:04 -0000 1.3
@@ -1,10 +1,8 @@
#include <stdlib.h>
-#include "Enesim.h"
+#include "Enesim.h""
#include "enesim_private.h"
-#include "container.h"
-#include "component.h"
-#include "reader.h"
+#include "enesim_vector.h"
/*============================================================================*
* Local
*
@@ -28,13 +26,13 @@
* To be documented
* FIXME: To be fixed
*/
-Enesim_Component * enesim_component_new(void)
+Enesim_Component * enesim_component_new(int num_vertices)
{
Enesim_Component *c;
c = calloc(1, sizeof(Enesim_Component));
c->readers = edata_list_new();
- c->path = enesim_container_new(c, 0);
+ c->path = enesim_container_new(c, num_vertices);
/* ABSTRACT THIS */
c->path->alloc_cb = _alloc_cb;
return c;
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs