[15552] | 1 | /* $Id: icd_drv.h 62848 2016-08-01 21:32:03Z vboxsync $ */
|
---|
| 2 | /** @file
|
---|
| 3 | * VirtualBox Windows NT/2000/XP guest OpenGL ICD header
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[62521] | 7 | * Copyright (C) 2006-2016 Oracle Corporation
|
---|
[15552] | 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 |
|
---|
[62848] | 18 | #ifndef ___ICDDRV_H___
|
---|
| 19 | #define ___ICDDRV_H___
|
---|
[15552] | 20 |
|
---|
[62848] | 21 | #include <iprt/win/windows.h>
|
---|
[15552] | 22 |
|
---|
[62848] | 23 | typedef struct ICDTABLE
|
---|
[15552] | 24 | {
|
---|
| 25 | DWORD size;
|
---|
| 26 | PROC table[336];
|
---|
| 27 | } ICDTABLE, *PICDTABLE;
|
---|
| 28 |
|
---|
| 29 | void APIENTRY DrvReleaseContext(HGLRC hglrc);
|
---|
| 30 | BOOL APIENTRY DrvValidateVersion(DWORD version);
|
---|
| 31 | PICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback);
|
---|
| 32 | BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat);
|
---|
| 33 | HGLRC APIENTRY DrvCreateContext(HDC hdc);
|
---|
| 34 | HGLRC APIENTRY DrvCreateLayerContext(HDC hdc, int iLayerPlane);
|
---|
| 35 | BOOL APIENTRY DrvDescribeLayerPlane(HDC hdc,int iPixelFormat,
|
---|
| 36 | int iLayerPlane, UINT nBytes,
|
---|
| 37 | LPLAYERPLANEDESCRIPTOR plpd);
|
---|
| 38 | int APIENTRY DrvGetLayerPaletteEntries(HDC hdc, int iLayerPlane,
|
---|
| 39 | int iStart, int cEntries,
|
---|
| 40 | COLORREF *pcr);
|
---|
| 41 | int APIENTRY DrvDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR pfd);
|
---|
| 42 | BOOL APIENTRY DrvDeleteContext(HGLRC hglrc);
|
---|
| 43 | BOOL APIENTRY DrvCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask);
|
---|
| 44 | BOOL APIENTRY DrvShareLists(HGLRC hglrc1, HGLRC hglrc2);
|
---|
| 45 | int APIENTRY DrvSetLayerPaletteEntries(HDC hdc, int iLayerPlane,
|
---|
| 46 | int iStart, int cEntries,
|
---|
| 47 | CONST COLORREF *pcr);
|
---|
| 48 | BOOL APIENTRY DrvRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize);
|
---|
| 49 | BOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes);
|
---|
| 50 | BOOL APIENTRY DrvSwapBuffers(HDC hdc);
|
---|
| 51 |
|
---|
[62848] | 52 | #endif /* !___ICDDRV_H___ */
|
---|