1 | /* $Id: icd_drv.h 76563 2019-01-01 03:53:56Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox Windows NT/2000/XP guest OpenGL ICD header
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2019 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef GA_INCLUDED_SRC_common_crOpenGL_icd_drv_h
|
---|
19 | #define GA_INCLUDED_SRC_common_crOpenGL_icd_drv_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #include <iprt/win/windows.h>
|
---|
25 |
|
---|
26 | typedef struct ICDTABLE
|
---|
27 | {
|
---|
28 | DWORD size;
|
---|
29 | PROC table[336];
|
---|
30 | } ICDTABLE, *PICDTABLE;
|
---|
31 |
|
---|
32 | void APIENTRY DrvReleaseContext(HGLRC hglrc);
|
---|
33 | BOOL APIENTRY DrvValidateVersion(DWORD version);
|
---|
34 | PICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback);
|
---|
35 | BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat);
|
---|
36 | HGLRC APIENTRY DrvCreateContext(HDC hdc);
|
---|
37 | HGLRC APIENTRY DrvCreateLayerContext(HDC hdc, int iLayerPlane);
|
---|
38 | BOOL APIENTRY DrvDescribeLayerPlane(HDC hdc,int iPixelFormat,
|
---|
39 | int iLayerPlane, UINT nBytes,
|
---|
40 | LPLAYERPLANEDESCRIPTOR plpd);
|
---|
41 | int APIENTRY DrvGetLayerPaletteEntries(HDC hdc, int iLayerPlane,
|
---|
42 | int iStart, int cEntries,
|
---|
43 | COLORREF *pcr);
|
---|
44 | int APIENTRY DrvDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR pfd);
|
---|
45 | BOOL APIENTRY DrvDeleteContext(HGLRC hglrc);
|
---|
46 | BOOL APIENTRY DrvCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask);
|
---|
47 | BOOL APIENTRY DrvShareLists(HGLRC hglrc1, HGLRC hglrc2);
|
---|
48 | int APIENTRY DrvSetLayerPaletteEntries(HDC hdc, int iLayerPlane,
|
---|
49 | int iStart, int cEntries,
|
---|
50 | CONST COLORREF *pcr);
|
---|
51 | BOOL APIENTRY DrvRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize);
|
---|
52 | BOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes);
|
---|
53 | BOOL APIENTRY DrvSwapBuffers(HDC hdc);
|
---|
54 |
|
---|
55 | #endif /* !GA_INCLUDED_SRC_common_crOpenGL_icd_drv_h */
|
---|