コード例 #1
0
ファイル: GraphicsContext3DQt.cpp プロジェクト: RobinWuDev/Qt
bool GraphicsContext3DPrivate::isOpenGLES() const
{
    if (m_platformContext)
        return m_platformContext->isOpenGLES();
#if USE(OPENGL_ES_2)
    return true;
#else
    return false;
#endif
}
コード例 #2
0
ファイル: GraphicsContext3DQt.cpp プロジェクト: RobinWuDev/Qt
bool GraphicsContext3DPrivate::isValid() const
{
    if (!m_platformContext || !m_platformContext->isValid())
        return false;
    return m_platformContext->isOpenGLES() || m_platformContext->format().majorVersion() >= 2;
}