Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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()

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

Definition at line 402 of file qwindowsglcontext.cpp.

References QWindowsOpenGLAdditionalFormat::formatFlags, QWindowsOpengl32DLL::moduleIsNotOpengl32(), QOpenGLStaticContext::opengl32, QWindowsGLAccumBuffer, and QWindowsGLDirectRendering.

Here is the call graph for this function:

◆ createContext()

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

Definition at line 458 of file qwindowsglcontext.cpp.

References QOpenGLStaticContext::opengl32.

◆ qPixelFormatFromSurfaceFormat()

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

◆ qSurfaceFormatFromPixelFormat()

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