Esempio n. 1
0
cairo_t*
Surface::cairoContext()
{
    if (!_cairoContext)
        _cairoContext = cairo_create(cairoSurface());
    return _cairoContext;
}
Esempio n. 2
0
cairo_t*
Surface::cairoContext()
{
    if (!_cairoContext)
    {
#ifdef ILIXI_HAVE_CAIROGLES
        if (_surfaceGL)
            _cairoContext = cairo_create(_surfaceGL);
        else
#endif
            _cairoContext = cairo_create(cairoSurface());
    }
    return _cairoContext;
}