Blender V5.0
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()

int choose_pixel_format_legacy ( HDC hDC,
PIXELFORMATDESCRIPTOR & preferredPFD )
static

◆ clone_window()

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

References count, and L.

Referenced by DummyContextWGL::DummyContextWGL().

◆ is_crappy_intel_card()

bool is_crappy_intel_card ( )
static

Definition at line 23 of file GHOST_ContextWGL.cc.

Referenced by GHOST_ContextWGL::initializeDrawingContext().

◆ makeAttribList()

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

Definition at line 276 of file GHOST_ContextWGL.cc.

References out.

◆ reportContextString()

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

Definition at line 490 of file GHOST_ContextWGL.cc.

References name.

Referenced by GHOST_ContextWGL::initializeDrawingContext().

◆ weight_pixel_format()

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

Definition at line 139 of file GHOST_ContextWGL.cc.

Referenced by choose_pixel_format_legacy().