コード例 #1
0
ファイル: Surface.cpp プロジェクト: 91yuan/ilixi
cairo_t*
Surface::cairoContext()
{
    if (!_cairoContext)
        _cairoContext = cairo_create(cairoSurface());
    return _cairoContext;
}
コード例 #2
0
ファイル: Surface.cpp プロジェクト: Ecro/ilixi
cairo_t*
Surface::cairoContext()
{
    if (!_cairoContext)
    {
#ifdef ILIXI_HAVE_CAIROGLES
        if (_surfaceGL)
            _cairoContext = cairo_create(_surfaceGL);
        else
#endif
            _cairoContext = cairo_create(cairoSurface());
    }
    return _cairoContext;
}