1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#ifndef _WGLTOOL_H
/**
* glxtool.h
*
* Copyright (C) 2001 Sven Goethel
*
* GNU Library General Public License
* as published by the Free Software Foundation
*
* http://www.gnu.org/copyleft/lgpl.html
* General dynamical loading OpenGL (GL/GLU) support for:
*/
#define _WGLTOOL_H
#include "gltool.h"
#include "glcaps.h"
#include <windows.h>
#include <wingdi.h>
#include "wgl-disp-var.h"
/**
* do not call this one directly,
* use fetch_GL_FUNCS (gltool.h) instead
*/
LIBAPI void LIBAPIENTRY fetch_WGL_FUNCS
(const char * libGLName,
const char * libGLUName, int force,
int reload, int verbose);
LIBAPI void LIBAPIENTRY setPixelFormatByGLCapabilities(
PIXELFORMATDESCRIPTOR *pfd,
GLCapabilities *glCaps,
int offScreenRenderer,
HDC hdc);
// Set Pixel Format function - forward declaration
LIBAPI void LIBAPIENTRY SetDCPixelFormat(HDC hDC, HDC oldHDC, GLCapabilities *glCaps,
int offScreenRenderer, int verbose);
LIBAPI HPALETTE LIBAPIENTRY GetOpenGLPalette(HDC hDC);
LIBAPI HGLRC LIBAPIENTRY get_GC( HDC *hDC, GLCapabilities *glCaps,
HGLRC shareWith, int offScreenRenderer,
int width, int height, HBITMAP *pix,
int verbose);
LIBAPI int LIBAPIENTRY PixelFormatDescriptorFromDc( HDC Dc,
PIXELFORMATDESCRIPTOR *Pfd );
const char * LIBAPIENTRY GetTextualPixelFormatByHDC(HDC hdc);
const char * LIBAPIENTRY GetTextualPixelFormatByPFD(
PIXELFORMATDESCRIPTOR *ppfd, int format);
LIBAPI void LIBAPIENTRY CreateCompatibleDIBDC
(HDC *phDC, HBITMAP * hBitmap, int width, int height);
LIBAPI void LIBAPIENTRY resizeDIB(HDC hDC, HBITMAP *hOldBitmap,
HBITMAP *hBitmap);
LIBAPI HPALETTE LIBAPIENTRY setupPalette(HDC hDC);
LIBAPI int LIBAPIENTRY setGLCapabilities ( HDC hdc, int nPixelFormat,
GLCapabilities *glCaps );
#endif
|