ChamplainRenderer

## ChamplainRenderer ChamplainRenderer — A base class of renderers |

## Synopsis

    struct              ChamplainRenderer;
    void                champlain_renderer_set_data         (ChamplainRenderer *renderer,
                                                             const gchar *data,
                                                             guint size);
    void                champlain_renderer_render           (ChamplainRenderer *renderer,
                                                             ChamplainTile *tile);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----ChamplainRenderer
                   +----ChamplainErrorTileRenderer
                   +----ChamplainImageRenderer
                   +----ChamplainMemphisRenderer

## Description

A renderer is used to render tiles textures. A tile is rendered based on the provided data - this can be arbitrary data the given renderer understands (e.g. raw bitmap data, vector xml map representation and so on).

## Details

### struct ChamplainRenderer

    struct ChamplainRenderer;

### champlain_renderer_set_data ()

    void                champlain_renderer_set_data         (ChamplainRenderer *renderer,
                                                             const gchar *data,
                                                             guint size);

Sets the data which is used to render tiles by the renderer.

`renderer` : | a ChamplainRenderer
`data` : | data used for tile rendering
`size` : | size of the data in bytes

Since 0.8

### champlain_renderer_render ()

    void                champlain_renderer_render           (ChamplainRenderer *renderer,
                                                             ChamplainTile *tile);

Renders the texture for the provided tile and calls `champlain_tile_set_content()` to set the content of the tile. When the rendering is finished, the renderer emits the "render-complete" signal. The tile has to be displayed manually by calling `champlain_tile_display_content()`.

`renderer` : | a ChamplainRenderer
`tile` : | the tile to render

Since 0.8