ector: add typedef Ector_Buffer

This commit is contained in:
Jean-Philippe Andre 2015-12-08 15:11:57 +09:00
parent 952f27507d
commit 85f23d96e7
3 changed files with 9 additions and 3 deletions

View File

@ -6,9 +6,15 @@
#include "ector_generic_buffer.eo.h"
#include "software/ector_software_buffer_base.eo.h"
/**
* @typedef Ector_Buffer
* A generic pixel buffer type (2D). May be readable or writeable or both.
*/
typedef Ector_Generic_Buffer Ector_Buffer;
typedef struct _Ector_Generic_Buffer_Data
{
Eo *eo;
Ector_Buffer *eo;
unsigned int w, h;
unsigned char l, r, t, b;
Efl_Gfx_Colorspace cspace;

View File

@ -122,7 +122,7 @@ struct _Ector_Renderer_Generic_Shape_Data
struct _Ector_Renderer_Generic_Buffer_Data
{
Ector_Generic_Buffer *eo_buffer;
Ector_Buffer *eo_buffer;
struct {
Efl_Gfx_Fill_Spread spread;
int x, y, w, h;

View File

@ -15,7 +15,7 @@ typedef struct
{
Ector_Renderer_Generic_Base_Data *base;
Software_Rasterizer *surface;
Ector_Generic_Buffer *eo_buffer;
Ector_Buffer *eo_buffer;
} Ector_Renderer_Software_Buffer_Data;