/* $Id: icd_drv.h 76563 2019-01-01 03:53:56Z vboxsync $ */ /** @file * VirtualBox Windows NT/2000/XP guest OpenGL ICD header */ /* * Copyright (C) 2006-2019 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. */ #ifndef GA_INCLUDED_SRC_common_crOpenGL_icd_drv_h #define GA_INCLUDED_SRC_common_crOpenGL_icd_drv_h #ifndef RT_WITHOUT_PRAGMA_ONCE # pragma once #endif #include typedef struct ICDTABLE { DWORD size; PROC table[336]; } ICDTABLE, *PICDTABLE; void APIENTRY DrvReleaseContext(HGLRC hglrc); BOOL APIENTRY DrvValidateVersion(DWORD version); PICDTABLE APIENTRY DrvSetContext(HDC hdc, HGLRC hglrc, void *callback); BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat); HGLRC APIENTRY DrvCreateContext(HDC hdc); HGLRC APIENTRY DrvCreateLayerContext(HDC hdc, int iLayerPlane); BOOL APIENTRY DrvDescribeLayerPlane(HDC hdc,int iPixelFormat, int iLayerPlane, UINT nBytes, LPLAYERPLANEDESCRIPTOR plpd); int APIENTRY DrvGetLayerPaletteEntries(HDC hdc, int iLayerPlane, int iStart, int cEntries, COLORREF *pcr); int APIENTRY DrvDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR pfd); BOOL APIENTRY DrvDeleteContext(HGLRC hglrc); BOOL APIENTRY DrvCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask); BOOL APIENTRY DrvShareLists(HGLRC hglrc1, HGLRC hglrc2); int APIENTRY DrvSetLayerPaletteEntries(HDC hdc, int iLayerPlane, int iStart, int cEntries, CONST COLORREF *pcr); BOOL APIENTRY DrvRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize); BOOL APIENTRY DrvSwapLayerBuffers(HDC hdc, UINT fuPlanes); BOOL APIENTRY DrvSwapBuffers(HDC hdc); #endif /* !GA_INCLUDED_SRC_common_crOpenGL_icd_drv_h */