Beispiel #1
0
int CrDpInit(PCR_DISPLAY pDisplay)
{
    int rc = CrVrScrCompositorInit(&pDisplay->Compositor);
    if (RT_SUCCESS(rc))
    {
        const GLint visBits = CR_RGB_BIT | CR_DOUBLE_BIT;
        if (crServerMuralInit(&pDisplay->Mural, "", visBits, -1) >= 0)
        {
            return VINF_SUCCESS;
//            crServerMuralTerm(&pDisplay->Mural);
        }
        else
        {
            crWarning("crServerMuralInit failed!");
            rc = VERR_GENERAL_FAILURE;
        }
        CrVrScrCompositorTerm(&pDisplay->Compositor);
    }
    else
    {
        crWarning("CrVrScrCompositorInit failed, rc %d", rc);
    }
    CRASSERT(RT_FAILURE(rc));
    return rc;
}
CrFbDisplayWindowRootVr::CrFbDisplayWindowRootVr(const RTRECT *pViewportRect, uint64_t parentId) :
    CrFbDisplayWindow(pViewportRect, parentId)
{
    CrVrScrCompositorInit(&mCompositor, NULL);
}