Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Functions | |
static int | choosePixelFormat (HDC hdc, const QOpenGLStaticContext &staticContext, const QSurfaceFormat &format, const QWindowsOpenGLAdditionalFormat &additional, PIXELFORMATDESCRIPTOR *obtainedPfd) |
static QSurfaceFormat | qSurfaceFormatFromHDC (const QOpenGLStaticContext &staticContext, HDC hdc, int pixelFormat, QWindowsOpenGLAdditionalFormat *additionalIn=nullptr) |
static HGLRC | createContext (const QOpenGLStaticContext &staticContext, HDC hdc, const QSurfaceFormat &format, const QWindowsOpenGLAdditionalFormat &, HGLRC shared=nullptr) |
|
static |
Definition at line 474 of file qwindowsglcontext.cpp.
References Qt::dec(), QSurfaceFormat::DefaultSwapBehavior, QSurfaceFormat::DoubleBuffer, Qt::hex(), i, initPixelFormatDescriptor(), isAcceptableFormat(), Qt::noshowbase(), QOpenGLStaticContext::opengl32, qCDebug, QWindowsGLAccumBuffer, QWindowsGLDirectRendering, QWindowsGLOverlay, QWindowsGLRenderToPixmap, QOpenGLStaticContext::SampleBuffers, Qt::showbase(), QSurfaceFormat::SingleBuffer, QColorSpace::SRgb, testFlag(), QSurfaceFormat::TripleBuffer, WGL_ACCELERATION_ARB, WGL_ACCUM_BITS_ARB, WGL_ALPHA_BITS_ARB, WGL_BLUE_BITS_ARB, WGL_COLOR_BITS_ARB, WGL_DEPTH_BITS_ARB, WGL_DOUBLE_BUFFER_ARB, WGL_DRAW_TO_WINDOW_ARB, WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT, WGL_FULL_ACCELERATION_ARB, WGL_GREEN_BITS_ARB, WGL_NO_ACCELERATION_ARB, WGL_NUMBER_OVERLAYS_ARB, WGL_PIXEL_TYPE_ARB, WGL_RED_BITS_ARB, WGL_SAMPLE_BUFFERS_ARB, WGL_SAMPLES_ARB, WGL_STENCIL_BITS_ARB, WGL_STEREO_ARB, WGL_SUPPORT_OPENGL_ARB, and WGL_TYPE_RGBA_ARB.
Referenced by QWindowsGLContext::QWindowsGLContext().
|
static |
Definition at line 701 of file qwindowsglcontext.cpp.
References QSurfaceFormat::CompatibilityProfile, QSurfaceFormat::CoreProfile, QSurfaceFormat::DebugContext, Qt::dec(), QSurfaceFormat::DeprecatedFunctions, Qt::hex(), LOSE_CONTEXT_ON_RESET_ARB, QSurfaceFormat::NoProfile, qCDebug, qErrnoWarning(), qMin(), qPrintable, RESET_NOTIFICATION_STRATEGY_ARB, QSurfaceFormat::ResetNotification, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, WGL_CONTEXT_CORE_PROFILE_BIT_ARB, WGL_CONTEXT_DEBUG_BIT_ARB, WGL_CONTEXT_FLAGS_ARB, WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB, WGL_CONTEXT_MAJOR_VERSION_ARB, WGL_CONTEXT_MINOR_VERSION_ARB, and WGL_CONTEXT_PROFILE_MASK_ARB.
Referenced by QWindowsGLContext::QWindowsGLContext().
|
static |
Definition at line 629 of file qwindowsglcontext.cpp.
References QSurfaceFormat::DoubleBuffer, i, QSurfaceFormat::OpenGL, qErrnoWarning(), QWindowsGLAccumBuffer, QWindowsGLDirectRendering, QWindowsGLOverlay, QOpenGLStaticContext::SampleBuffers, QSurfaceFormat::setRenderableType(), QSurfaceFormat::SingleBuffer, QColorSpace::SRgb, QOpenGLStaticContext::sRGBCapableFramebuffer, QSurfaceFormat::StereoBuffers, testFlag(), WGL_ACCELERATION_ARB, WGL_ACCUM_BITS_ARB, WGL_ALPHA_BITS_ARB, WGL_BLUE_BITS_ARB, WGL_DEPTH_BITS_ARB, WGL_DOUBLE_BUFFER_ARB, WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT, WGL_FULL_ACCELERATION_ARB, WGL_GREEN_BITS_ARB, WGL_NUMBER_OVERLAYS_ARB, WGL_PIXEL_TYPE_ARB, WGL_RED_BITS_ARB, WGL_SAMPLE_BUFFERS_ARB, WGL_SAMPLES_ARB, WGL_STENCIL_BITS_ARB, and WGL_STEREO_ARB.
Referenced by QWindowsGLContext::QWindowsGLContext().