Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mesa_wgl.h 3.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* $Id: mesa_wgl.h,v 1.4 1999/11/22 14:05:44 brianp Exp $ */
  2. /*
  3. * Mesa 3-D graphics library
  4. * Version: 3.1
  5. *
  6. * Copyright (C) 1999 Brian Paul All Rights Reserved.
  7. *
  8. * Permission is hereby granted, free of charge, to any person obtaining a
  9. * copy of this software and associated documentation files (the "Software"),
  10. * to deal in the Software without restriction, including without limitation
  11. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  12. * and/or sell copies of the Software, and to permit persons to whom the
  13. * Software is furnished to do so, subject to the following conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be included
  16. * in all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  21. * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  22. * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  23. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  24. */
  25. /* prototypes for the Mesa WGL functions */
  26. /* relocated here so that I could make GLUT get them properly */
  27. #ifndef _mesa_wgl_h_
  28. #define _mesa_wgl_h_
  29. #include <gl/gl.h>
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. #ifdef _MSC_VER
  34. # pragma warning( disable : 4615 ) /* pragma warning : unknown user warning type*/
  35. # pragma warning( push )
  36. # pragma warning( disable : 4273 ) /* 'function' : inconsistent DLL linkage. dllexport assumed. */
  37. #endif
  38. WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC);
  39. WGLAPI int GLAPIENTRY wglMakeCurrent(HDC,HGLRC);
  40. WGLAPI int GLAPIENTRY wglSetPixelFormat(HDC, int, const PIXELFORMATDESCRIPTOR *);
  41. WGLAPI int GLAPIENTRY wglSwapBuffers(HDC hdc);
  42. WGLAPI HDC GLAPIENTRY wglGetCurrentDC(void);
  43. WGLAPI HGLRC GLAPIENTRY wglCreateContext(HDC);
  44. WGLAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC,int);
  45. WGLAPI HGLRC GLAPIENTRY wglGetCurrentContext(void);
  46. WGLAPI PROC GLAPIENTRY wglGetProcAddress(const char*);
  47. WGLAPI int GLAPIENTRY wglChoosePixelFormat(HDC, const PIXELFORMATDESCRIPTOR *);
  48. WGLAPI int GLAPIENTRY wglCopyContext(HGLRC, HGLRC, unsigned int);
  49. WGLAPI int GLAPIENTRY wglDeleteContext(HGLRC);
  50. WGLAPI int GLAPIENTRY wglDescribeLayerPlane(HDC, int, int, unsigned int,LPLAYERPLANEDESCRIPTOR);
  51. WGLAPI int GLAPIENTRY wglDescribePixelFormat(HDC,int, unsigned int, LPPIXELFORMATDESCRIPTOR);
  52. WGLAPI int GLAPIENTRY wglGetLayerPaletteEntries(HDC, int, int, int,COLORREF *);
  53. WGLAPI int GLAPIENTRY wglGetPixelFormat(HDC hdc);
  54. WGLAPI int GLAPIENTRY wglMakeCurrent(HDC, HGLRC);
  55. WGLAPI int GLAPIENTRY wglRealizeLayerPalette(HDC, int, int);
  56. WGLAPI int GLAPIENTRY wglSetLayerPaletteEntries(HDC, int, int, int,const COLORREF *);
  57. WGLAPI int GLAPIENTRY wglShareLists(HGLRC, HGLRC);
  58. WGLAPI int GLAPIENTRY wglSwapLayerBuffers(HDC, unsigned int);
  59. WGLAPI int GLAPIENTRY wglUseFontBitmapsA(HDC, unsigned long, unsigned long, unsigned long);
  60. WGLAPI int GLAPIENTRY wglUseFontBitmapsW(HDC, unsigned long, unsigned long, unsigned long);
  61. WGLAPI int GLAPIENTRY wglUseFontOutlinesA(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
  62. WGLAPI int GLAPIENTRY wglUseFontOutlinesW(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT);
  63. WGLAPI int GLAPIENTRY SwapBuffers(HDC);
  64. WGLAPI int GLAPIENTRY ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR *);
  65. WGLAPI int GLAPIENTRY DescribePixelFormat(HDC,int,unsigned int,LPPIXELFORMATDESCRIPTOR);
  66. WGLAPI int GLAPIENTRY GetPixelFormat(HDC);
  67. WGLAPI int GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *);
  68. #ifdef _MSC_VER
  69. # pragma warning( pop )
  70. #endif
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74. #endif /* _mesa_wgl_h_ */