enesim  0.0.23.1
Drawinglibrary
Functions
Map_Quad
Renderer

Map_Quad based renderer inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_map_quad_new (void)
 Creates a new map_quad renderer.
EAPI void enesim_renderer_map_quad_source_surface_set (Enesim_Renderer *r, Enesim_Surface *src)
 Sets the source surface to use as the source data .
EAPI Enesim_Surfaceenesim_renderer_map_quad_source_surface_get (Enesim_Renderer *r)
 Gets the source surface used as the source data .
EAPI void enesim_renderer_map_quad_vertex_color_set (Enesim_Renderer *r, int index, Enesim_Argb color)
 Sets the non-premul color for a vertex.
EAPI Enesim_Argb enesim_renderer_map_quad_vertex_color_get (Enesim_Renderer *r, int index)
 Gets the color of a vertex.
EAPI void enesim_renderer_map_quad_vertex_position_set (Enesim_Renderer *r, int index, double x, double y)
 Sets a vertex's coordinates.
EAPI void enesim_renderer_map_quad_vertex_position_get (Enesim_Renderer *r, int index, double *x, double *y)
 Gets a vertex's coordinates.

Detailed Description

Map_Quad based renderer inherits from \1.


Function Documentation

Creates a new map_quad renderer.

Returns:
The renderer

Sets the source surface to use as the source data .

Parameters:
[in]rThe map quad renderer
[in]srcThe surface to map [Transfer full]

Gets the source surface used as the source data .

Parameters:
[in]rThe map quad renderer
Returns:
The surface to map [Transfer none]
EAPI void enesim_renderer_map_quad_vertex_color_set ( Enesim_Renderer r,
int  index,
Enesim_Argb  color 
)

Sets the non-premul color for a vertex.

Parameters:
[in]rThe map quad renderer
[in]indexThe vertex index
[in]colorThe argb color

Gets the color of a vertex.

Parameters:
[in]rThe map quad renderer
[in]indexThe vertex index
Returns:
the color of the vertex
EAPI void enesim_renderer_map_quad_vertex_position_set ( Enesim_Renderer r,
int  index,
double  x,
double  y 
)

Sets a vertex's coordinates.

Parameters:
[in]rThe map quad renderer
[in]indexThe vertex index
[in]xThe x coord of the vertex
[in]yThe y coord of the vertex
EAPI void enesim_renderer_map_quad_vertex_position_get ( Enesim_Renderer r,
int  index,
double *  x,
double *  y 
)

Gets a vertex's coordinates.

Parameters:
[in]rThe map quad renderer
[in]indexThe vertex index
[in]xThe x coord of the vertex to get
[in]yThe y coord of the vertex to get
 All Data Structures Variables