glxext.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef _glxext_h_
  2. #define _glxext_h_
  3. /*
  4. * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
  5. * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a
  8. * copy of this software and associated documentation files (the "Software"),
  9. * to deal in the Software without restriction, including without limitation
  10. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11. * and/or sell copies of the Software, and to permit persons to whom the
  12. * Software is furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice including the dates of first publication and
  15. * either this permission notice or a reference to
  16. * http://oss.sgi.com/projects/FreeB/
  17. * shall be included in all copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  20. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  22. * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  23. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
  24. * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  25. * SOFTWARE.
  26. *
  27. * Except as contained in this notice, the name of Silicon Graphics, Inc.
  28. * shall not be used in advertising or otherwise to promote the sale, use or
  29. * other dealings in this Software without prior written authorization from
  30. * Silicon Graphics, Inc.
  31. */
  32. /*
  33. * Added by VA Linux for XFree86 4.0.x
  34. */
  35. typedef struct {
  36. int type;
  37. void (*resetExtension) (void);
  38. Bool (*initVisuals) (VisualPtr * visualp,
  39. DepthPtr * depthp,
  40. int *nvisualp,
  41. int *ndepthp,
  42. int *rootDepthp,
  43. VisualID * defaultVisp,
  44. unsigned long sizes, int bitsPerRGB);
  45. void (*setVisualConfigs) (int nconfigs,
  46. __GLXvisualConfig * configs, void **privates);
  47. } __GLXextensionInfo;
  48. extern GLboolean __glXFreeContext(__GLXcontext * glxc);
  49. extern void __glXFlushContextCache(void);
  50. extern void __glXFreeGLXWindow(__glXWindow * pGlxWindow);
  51. extern void __glXFreeGLXPixmap(__GLXpixmap * pGlxPixmap);
  52. extern void __glXNoSuchRenderOpcode(GLbyte *);
  53. extern int __glXNoSuchSingleOpcode(__GLXclientState *, GLbyte *);
  54. extern void __glXErrorCallBack(GLenum code);
  55. extern void __glXClearErrorOccured(void);
  56. extern GLboolean __glXErrorOccured(void);
  57. extern void __glXResetLargeCommandStatus(__GLXclientState *);
  58. extern int __glXQueryContextInfoEXT(__GLXclientState * cl, GLbyte * pc);
  59. extern int __glXSwapQueryContextInfoEXT(__GLXclientState * cl, char *pc);
  60. extern Bool __glXCoreType(void);
  61. #endif /* _glxext_h_ */