VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/icd_drv.h@ 19420

Last change on this file since 19420 was 15820, checked in by vboxsync, 16 years ago

crOpenGL: reverted r41328 - this brokes OpenGL on win32 guests.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1/* $Id: icd_drv.h 15820 2009-01-06 15:37:59Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox Windows NT/2000/XP guest OpenGL ICD header
6 */
7
8/*
9 * Copyright (C) 2006-2008 Sun Microsystems, Inc.
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 *
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
20 * Clara, CA 95054 USA or visit http://www.sun.com if you need
21 * additional information or have any questions.
22 */
23
24#ifndef __ICDDRV_H__
25#define __ICDDRV_H__
26
27#include <windows.h>
28
29typedef struct _icdTable
30{
31 DWORD size;
32 PROC table[336];
33} ICDTABLE, *PICDTABLE;
34
35void APIENTRY DrvReleaseContext(HGLRC hglrc);
36BOOL APIENTRY DrvValidateVersion(DWORD version);
37PICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback);
38BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat);
39HGLRC APIENTRY DrvCreateContext(HDC hdc);
40HGLRC APIENTRY DrvCreateLayerContext(HDC hdc, int iLayerPlane);
41BOOL APIENTRY DrvDescribeLayerPlane(HDC hdc,int iPixelFormat,
42 int iLayerPlane, UINT nBytes,
43 LPLAYERPLANEDESCRIPTOR plpd);
44int APIENTRY DrvGetLayerPaletteEntries(HDC hdc, int iLayerPlane,
45 int iStart, int cEntries,
46 COLORREF *pcr);
47int APIENTRY DrvDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR pfd);
48BOOL APIENTRY DrvDeleteContext(HGLRC hglrc);
49BOOL APIENTRY DrvCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask);
50BOOL APIENTRY DrvShareLists(HGLRC hglrc1, HGLRC hglrc2);
51int APIENTRY DrvSetLayerPaletteEntries(HDC hdc, int iLayerPlane,
52 int iStart, int cEntries,
53 CONST COLORREF *pcr);
54BOOL APIENTRY DrvRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize);
55BOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes);
56BOOL APIENTRY DrvSwapBuffers(HDC hdc);
57
58#endif /* __ICDDRV_H__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette