VirtualBox

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

Last change on this file since 78942 was 76563, checked in by vboxsync, 6 years ago

Additions: Use GA_INCLUDED_ and variations_ as header guard prefixes with scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 2.3 KB
Line 
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
26typedef struct ICDTABLE
27{
28 DWORD size;
29 PROC table[336];
30} ICDTABLE, *PICDTABLE;
31
32void APIENTRY DrvReleaseContext(HGLRC hglrc);
33BOOL APIENTRY DrvValidateVersion(DWORD version);
34PICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback);
35BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat);
36HGLRC APIENTRY DrvCreateContext(HDC hdc);
37HGLRC APIENTRY DrvCreateLayerContext(HDC hdc, int iLayerPlane);
38BOOL APIENTRY DrvDescribeLayerPlane(HDC hdc,int iPixelFormat,
39 int iLayerPlane, UINT nBytes,
40 LPLAYERPLANEDESCRIPTOR plpd);
41int APIENTRY DrvGetLayerPaletteEntries(HDC hdc, int iLayerPlane,
42 int iStart, int cEntries,
43 COLORREF *pcr);
44int APIENTRY DrvDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR pfd);
45BOOL APIENTRY DrvDeleteContext(HGLRC hglrc);
46BOOL APIENTRY DrvCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask);
47BOOL APIENTRY DrvShareLists(HGLRC hglrc1, HGLRC hglrc2);
48int APIENTRY DrvSetLayerPaletteEntries(HDC hdc, int iLayerPlane,
49 int iStart, int cEntries,
50 CONST COLORREF *pcr);
51BOOL APIENTRY DrvRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize);
52BOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes);
53BOOL APIENTRY DrvSwapBuffers(HDC hdc);
54
55#endif /* !GA_INCLUDED_SRC_common_crOpenGL_icd_drv_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