Blender V4.3
GHOST_ContextWGL.cc File Reference
#include "GHOST_ContextWGL.hh"
#include <tchar.h>
#include <cassert>
#include <cstdio>
#include <vector>

Go to the source code of this file.

Classes

struct  DummyContextWGL
 

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.cc.

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

◆ 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 224 of file GHOST_ContextWGL.cc.

References count, and L.

Referenced by DummyContextWGL::DummyContextWGL().

◆ is_crappy_intel_card()

static bool is_crappy_intel_card ( )
static

Definition at line 23 of file GHOST_ContextWGL.cc.

Referenced by GHOST_ContextWGL::initializeDrawingContext().

◆ makeAttribList()

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

Definition at line 275 of file GHOST_ContextWGL.cc.

◆ reportContextString()

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

Definition at line 513 of file GHOST_ContextWGL.cc.

Referenced by GHOST_ContextWGL::initializeDrawingContext().

◆ weight_pixel_format()

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

Definition at line 134 of file GHOST_ContextWGL.cc.

Referenced by choose_pixel_format_legacy().