예제 #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;
}