Enlightenment CVS committal

Author  : turran
Project : e17
Module  : proto/enesim

Dir     : e17/proto/enesim/src/lib


Modified Files:
        enesim_private.h Enesim.h 


Log Message:
- Refactor the rasterizers
- Initial code for Kiia's aa polygon rasterizer (doesnt generate anything yet)
- Stub file for mask based "scanlines" (got to find a better word for this)
- Add a helper to keep track of min and max values

===================================================================
RCS file: /cvs/e/e17/proto/enesim/src/lib/enesim_private.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- enesim_private.h    21 Oct 2007 22:39:28 -0000      1.4
+++ enesim_private.h    13 Nov 2007 00:23:45 -0000      1.5
@@ -6,23 +6,27 @@
  * @{
  */
 
-#include <assert.h>
 #include <stdlib.h>
+#include <limits.h>
 #include "Edata.h"
 
+#ifndef DEBUG
+#define NDEBUG
+#define ENESIM_WARNING(format, ...)
+#else
+#define
+#define ENESIM_WARNING(format, ...) \
+fprintf(stderr, "[Enesim] (%s:%d - %s()):\n" format "\n\n", __FILE__, 
__LINE__, __FUNCTION__, ##__VA_ARGS__)
+#endif
+
+#include <assert.h>
+
 #ifdef MIN
 #undef MIN
 #endif
 #define MIN(a, b) (((a) < (b)) ? (a) : (b))
 
 /* FIXME move the above to other place */
-typedef struct _Enesim_Rectangle
-{
-       int     x;
-       int     y;
-       int     w;
-       int     h;
-} Enesim_Rectangle;
 
 /**
  * To be documented
@@ -31,17 +35,6 @@
 static inline int enesim_rectangle_is_empty(Enesim_Rectangle *r)
 {
        return ((r->w < 1) || (r->h < 1));
-}
-/**
- * To be documented
- * FIXME: To be fixed
- */
-static inline void enesim_rectangle_from_coords(Enesim_Rectangle *r, int x, 
int y, int w, int h)
-{
-       r->x = x;
-       r->y = y;
-       r->w = w;
-       r->h = h;
 }
 /**
  * To be documented
===================================================================
RCS file: /cvs/e/e17/proto/enesim/src/lib/Enesim.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Enesim.h    19 Oct 2007 16:21:07 -0000      1.3
+++ Enesim.h    13 Nov 2007 00:23:45 -0000      1.4
@@ -52,6 +52,26 @@
 typedef unsigned int           DATA32;
 typedef unsigned short int     DATA16;
 typedef unsigned char          DATA8;
+typedef struct _Enesim_Rectangle
+{
+       int     x;
+       int     y;
+       int     w;
+       int     h;
+} Enesim_Rectangle;
+
+/**
+ * To be documented
+ * FIXME: To be fixed
+ */
+static inline void enesim_rectangle_from_coords(Enesim_Rectangle *r, int x, 
int y, int w, int h)
+{
+       r->x = x;
+       r->y = y;
+       r->w = w;
+       r->h = h;
+}
+
 /**
  * @defgroup Enesim_Scanline_Group Scanline
  * @{
@@ -70,8 +90,19 @@
 typedef struct _Enesim_Rasterizer Enesim_Rasterizer; /**< Rasterizer Handler */
 EAPI void enesim_rasterizer_vertex_add(Enesim_Rasterizer *r, float x, float y);
 EAPI void enesim_rasterizer_generate(Enesim_Rasterizer *r, Enesim_Scanline 
*sl);
-EAPI void enesim_rasterizer_boundings_set(Enesim_Rasterizer *r, int x, int y, 
int w, int h);
-EAPI Enesim_Rasterizer * enesim_rasterizer_new(void);
+EAPI void enesim_rasterizer_delete(Enesim_Rasterizer *r);
+EAPI Enesim_Rasterizer * enesim_rasterizer_cpsc_new(Enesim_Rectangle 
boundaries);
+
+typedef enum
+{
+       ENESIM_RASTERIZER_KIIA_COUNT_8,
+       ENESIM_RASTERIZER_KIIA_COUNT_16,
+       ENESIM_RASTERIZER_KIIA_COUNT_32,
+       ENESIM_RASTERIZER_KIIA_COUNTS
+} Enesim_Rasterizer_Kiia_Count;
+
+EAPI Enesim_Rasterizer * 
enesim_rasterizer_kiia_new(Enesim_Rasterizer_Kiia_Count count,
+               Enesim_Rectangle boundaries);
 
 /** @} */ //End of Enesim_Rasterizer_Group
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to