Enlightenment CVS committal
Author : turran
Project : e17
Module : proto/enesim
Dir : e17/proto/enesim/src/lib/vector
Modified Files:
container.h enesim_vector.h container.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/container.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- container.h 12 Oct 2007 11:04:53 -0000 1.1
+++ container.h 10 Dec 2007 23:04:04 -0000 1.2
@@ -18,15 +18,15 @@
*/
struct _Enesim_Container
{
- Edata_Array *a;
- Enesim_Point *points;
- char *cmds;
- Enesim_Point *point_curr;
- char *cmd_curr;
- int num_vertices;
+ Edata_Array *a;
+ Enesim_Point *points;
+ char *cmds;
+ Enesim_Point *point_curr;
+ char *cmd_curr;
+ int num_vertices;
- void *data;
- void (*alloc_cb)(void *data);
+ void *data;
+ void (*alloc_cb)(void *data);
};
Enesim_Container * enesim_container_new(void *data, int vertices_ref);
===================================================================
RCS file: /cvs/e/e17/proto/enesim/src/lib/vector/enesim_vector.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- enesim_vector.h 12 Oct 2007 11:04:53 -0000 1.1
+++ enesim_vector.h 10 Dec 2007 23:04:04 -0000 1.2
@@ -1,6 +1,7 @@
#ifndef _VECTOR_H
#define _VECTOR_H
+#include "Edata.h"
#include "container.h"
#include "component.h"
#include "reader.h"
===================================================================
RCS file: /cvs/e/e17/proto/enesim/src/lib/vector/container.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- container.c 14 Oct 2007 17:49:29 -0000 1.2
+++ container.c 10 Dec 2007 23:04:04 -0000 1.3
@@ -1,6 +1,7 @@
#include <stdlib.h>
#include "Enesim.h"
+#include "Edata.h"
#include "enesim_private.h"
#include "container.h"
@@ -32,14 +33,14 @@
* To be documented
* FIXME: To be fixed
*/
-Enesim_Container * enesim_container_new(void *data, int vertices_ref)
+Enesim_Container * enesim_container_new(void *data, int num_vertices)
{
Enesim_Container *p;
p = calloc(1, sizeof(Enesim_Container));
p->data = data;
p->a = edata_array_new(p, EDATA_ARRAY_ALLOC(_a_alloc),
- EDATA_ARRAY_FREE(_a_free));
+ EDATA_ARRAY_FREE(_a_free), num_vertices);
return p;
}
/**
-------------------------------------------------------------------------
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