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>.
Loading...
Searching...
No Matches
GDI Namespace Reference

Functions

static QSurfaceFormat qSurfaceFormatFromPixelFormat (const PIXELFORMATDESCRIPTOR &pfd, QWindowsOpenGLAdditionalFormat *additionalIn=nullptr)
 
static PIXELFORMATDESCRIPTOR qPixelFormatFromSurfaceFormat (const QSurfaceFormat &format, const QWindowsOpenGLAdditionalFormat &additional)
 
static int choosePixelFormat (HDC hdc, const QSurfaceFormat &format, const QWindowsOpenGLAdditionalFormat &additional, PIXELFORMATDESCRIPTOR *obtainedPfd)
 
static HGLRC createContext (HDC hdc, HGLRC shared)
 

Function Documentation

◆ choosePixelFormat()

static int GDI::choosePixelFormat ( HDC hdc,
const QSurfaceFormat & format,
const QWindowsOpenGLAdditionalFormat & additional,
PIXELFORMATDESCRIPTOR * obtainedPfd )
static

Definition at line 402 of file qwindowsglcontext.cpp.

References QSurfaceFormat::DoubleBuffer, initPixelFormatDescriptor(), isAcceptableFormat(), isDirectRendering(), QOpenGLStaticContext::opengl32, qCDebug, qPixelFormatFromSurfaceFormat(), qWarning, QWindowsGLAccumBuffer, QWindowsGLDirectRendering, and testFlag().

Referenced by QWindowsGLContext::QWindowsGLContext().

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

◆ createContext()

static HGLRC GDI::createContext ( HDC hdc,
HGLRC shared )
inlinestatic

Definition at line 458 of file qwindowsglcontext.cpp.

References QOpenGLStaticContext::opengl32, and qErrnoWarning().

Referenced by QWindowsGLContext::QWindowsGLContext().

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

◆ qPixelFormatFromSurfaceFormat()

static PIXELFORMATDESCRIPTOR GDI::qPixelFormatFromSurfaceFormat ( const QSurfaceFormat & format,
const QWindowsOpenGLAdditionalFormat & additional )
static

Definition at line 352 of file qwindowsglcontext.cpp.

References initPixelFormatDescriptor(), QWindowsGLAccumBuffer, QWindowsGLDirectRendering, QWindowsGLRenderToPixmap, and QSurfaceFormat::SingleBuffer.

Referenced by choosePixelFormat().

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

◆ qSurfaceFormatFromPixelFormat()

static QSurfaceFormat GDI::qSurfaceFormatFromPixelFormat ( const PIXELFORMATDESCRIPTOR & pfd,
QWindowsOpenGLAdditionalFormat * additionalIn = nullptr )
static

Definition at line 318 of file qwindowsglcontext.cpp.

References QSurfaceFormat::DoubleBuffer, QWindowsOpenGLAdditionalFormat::formatFlags, hasGLOverlay(), isDirectRendering(), QSurfaceFormat::OpenGL, QWindowsGLAccumBuffer, QWindowsGLDirectRendering, QWindowsGLOverlay, QWindowsGLRenderToPixmap, QSurfaceFormat::setRenderableType(), and testFlag().

Referenced by QWindowsGLContext::QWindowsGLContext(), and QWindowsGLContext::QWindowsGLContext().

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