Path: blob/21.2-virgl/src/gallium/frontends/wgl/stw_wgl.h
4561 views
/**************************************************************************1*2* Copyright 2009 VMware, Inc.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* The above copyright notice and this permission notice (including the14* next paragraph) shall be included in all copies or substantial portions15* of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS18* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.20* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR21* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,22* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE23* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*25**************************************************************************/2627#ifndef STW_WGL_H_28#define STW_WGL_H_293031#include <windows.h>3233#include <GL/gl.h>343536/*37* Undeclared APIs exported by opengl32.dll38*/3940WINGDIAPI BOOL WINAPI41wglSwapBuffers(HDC hdc);4243WINGDIAPI int WINAPI44wglChoosePixelFormat(HDC hdc,45CONST PIXELFORMATDESCRIPTOR *ppfd);4647WINGDIAPI int WINAPI48wglDescribePixelFormat(HDC hdc,49int iPixelFormat,50UINT nBytes,51LPPIXELFORMATDESCRIPTOR ppfd);5253WINGDIAPI int WINAPI54wglGetPixelFormat(HDC hdc);5556WINGDIAPI BOOL WINAPI57wglSetPixelFormat(HDC hdc,58int iPixelFormat,59CONST PIXELFORMATDESCRIPTOR *ppfd);6061WINGDIAPI HDC APIENTRY62wglGetCurrentReadDCARB( VOID );6364WINGDIAPI BOOL APIENTRY65wglMakeContextCurrentARB(66HDC hDrawDC,67HDC hReadDC,68HGLRC hglrc );697071#ifndef WGL_SWAPMULTIPLE_MAX7273typedef struct _WGLSWAP74{75HDC hdc;76UINT uiFlags;77} WGLSWAP;7879#define WGL_SWAPMULTIPLE_MAX 168081WINGDIAPI DWORD WINAPI82wglSwapMultipleBuffers(UINT n,83CONST WGLSWAP *ps);8485#endif /* !WGL_SWAPMULTIPLE_MAX */868788#endif /* STW_WGL_H_ */899091