21 #ifndef RENDER_CANVAS_HPP 22 #define RENDER_CANVAS_HPP 45 cairo_surface_destroy(surface);
54 cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR);
55 cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, 1.0);
79 virtual void clear() = 0;
98 shared_ptr<RenderCanvas> canvas;
101 case TileIdentifier::Format::PNG:
104 case TileIdentifier::Format::SVG:
cairo_surface_t * surface
Format
Enumeration which contains all supported image formats.
shared_ptr< RenderCanvas > svgCanvas
shared_ptr< RenderCanvas > getCanvas(TileIdentifier::Format type)
Returns an empty shared_ptr if format is not supported.
shared_ptr< RenderCanvas > pngCanvas
shared_ptr< std::vector< uint8_t > > ImageType
This file is part of alaCarte.