コード例 #1
0
ファイル: OgreEGLContext.cpp プロジェクト: OGRECave/ogre
    void EGLContext::_updateInternalResources(EGLDisplay eglDisplay, ::EGLConfig glconfig, ::EGLSurface drawable)
    {
        mDrawable = drawable;
        mConfig = glconfig;
        mEglDisplay = eglDisplay;

        setCurrent();

        // Initialise GL3W
        if (gleswInit())
            LogManager::getSingleton().logMessage("Failed to initialize GL3W");
    }
コード例 #2
0
ファイル: EGLContext.cpp プロジェクト: wangyanxing/Demi3D
    void DiEGLContext::CreateInternalResources(EGLDisplay eglDisplay, ::EGLConfig glconfig, ::EGLSurface drawable, ::EGLContext shareContext)
    {
        mDrawable = drawable;
        mConfig = glconfig;
        mEglDisplay = eglDisplay;

        mContext = mGLUtil->CreateNewContext(mEglDisplay, mConfig, shareContext);

        if (!mContext)
        {
            DI_WARNING("Unable to create a suitable EGLContext");
        }

        BeginContext();

        // Initialise GL3W
        if (gleswInit())
            DI_WARNING("Failed to initialize GL3W");
    }