Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
ARB Namespace Reference

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)
 

Function Documentation

◆ choosePixelFormat()

static int ARB::choosePixelFormat ( HDC  hdc,
const QOpenGLStaticContext staticContext,
const QSurfaceFormat format,
const QWindowsOpenGLAdditionalFormat additional,
PIXELFORMATDESCRIPTOR *  obtainedPfd 
)
static

Definition at line 474 of file qwindowsglcontext.cpp.

References Qt::dec(), QSurfaceFormat::DefaultSwapBehavior, QWindowsOpengl32DLL::describePixelFormat(), QSurfaceFormat::DoubleBuffer, QOpenGLStaticContext::extensions, QWindowsOpenGLAdditionalFormat::formatFlags, QOpenGLStaticContext::hasExtensions(), 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, WGL_TYPE_RGBA_ARB, and QOpenGLStaticContext::wglChoosePixelFormatARB.

Referenced by QWindowsGLContext::QWindowsGLContext().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createContext()

◆ qSurfaceFormatFromHDC()