Top |
GObject ╰── GInitiallyUnowned ╰── ChamplainRenderer ├── ChamplainErrorTileRenderer ╰── ChamplainImageRenderer
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).
void champlain_renderer_set_data (ChamplainRenderer *renderer
,const guint8 *data
,guint size
);
Sets the data which is used to render tiles by the renderer.
renderer |
||
data |
data used for tile rendering. |
[array length=size] |
size |
size of the data in bytes |
Since: 0.8
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()
.
Since: 0.8
struct ChamplainRenderer;
The ChamplainRenderer structure contains only private data and should be accessed using the provided API
Since: 0.8