Blender  V2.93
Macros | Functions
GHOST_ContextWGL.cpp File Reference
#include "GHOST_ContextWGL.h"
#include <tchar.h>
#include <cassert>
#include <cstdio>
#include <vector>

Go to the source code of this file.

Macros

#define _MAX_PIXEL_FORMATS   32
 

Functions

static bool is_crappy_intel_card ()
 
static int weight_pixel_format (PIXELFORMATDESCRIPTOR &pfd, PIXELFORMATDESCRIPTOR &preferredPFD)
 
static int choose_pixel_format_legacy (HDC hDC, PIXELFORMATDESCRIPTOR &preferredPFD)
 
static HWND clone_window (HWND hWnd, LPVOID lpParam)
 
static void makeAttribList (std::vector< int > &out, bool stereoVisual, bool needAlpha)
 
static void reportContextString (const char *name, const char *dummy, const char *context)
 

Detailed Description

Definition of GHOST_ContextWGL class.

Definition in file GHOST_ContextWGL.cpp.

Macro Definition Documentation

◆ _MAX_PIXEL_FORMATS

#define _MAX_PIXEL_FORMATS   32

Function Documentation

◆ choose_pixel_format_legacy()

static int choose_pixel_format_legacy ( HDC  hDC,
PIXELFORMATDESCRIPTOR &  preferredPFD 
)
static

Definition at line 181 of file GHOST_ContextWGL.cpp.

References NULL, w(), and weight_pixel_format().

◆ clone_window()

static HWND clone_window ( HWND  hWnd,
LPVOID  lpParam 
)
static

Clone a window for the purpose of creating a temporary context to initialize WGL extensions. There is no generic way to clone the lpParam parameter, so the caller is responsible for cloning it themselves.

Definition at line 234 of file GHOST_ContextWGL.cpp.

References count, L, and NULL.

◆ is_crappy_intel_card()

static bool is_crappy_intel_card ( )
static

Definition at line 38 of file GHOST_ContextWGL.cpp.

References NULL.

Referenced by GHOST_ContextWGL::initializeDrawingContext().

◆ makeAttribList()

static void makeAttribList ( std::vector< int > &  out,
bool  stereoVisual,
bool  needAlpha 
)
static

Definition at line 367 of file GHOST_ContextWGL.cpp.

◆ reportContextString()

static void reportContextString ( const char *  name,
const char *  dummy,
const char *  context 
)
static

Definition at line 526 of file GHOST_ContextWGL.cpp.

References context.

Referenced by GHOST_ContextWGL::initializeDrawingContext().

◆ weight_pixel_format()

static int weight_pixel_format ( PIXELFORMATDESCRIPTOR &  pfd,
PIXELFORMATDESCRIPTOR &  preferredPFD 
)
static

Definition at line 146 of file GHOST_ContextWGL.cpp.

Referenced by choose_pixel_format_legacy().