Blender V4.5
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 224 of file GHOST_ContextWGL.cc.

References clone_window(), and L.

Referenced by clone_window(), and DummyContextWGL::DummyContextWGL().

◆ is_crappy_intel_card()

bool is_crappy_intel_card ( )
static

◆ makeAttribList()

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

Definition at line 275 of file GHOST_ContextWGL.cc.

References makeAttribList(), and out.

Referenced by makeAttribList().

◆ reportContextString()

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

◆ weight_pixel_format()

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

Definition at line 138 of file GHOST_ContextWGL.cc.

References weight_pixel_format().

Referenced by choose_pixel_format_legacy(), and weight_pixel_format().