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.

amesa.h 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* $Id: amesa.h,v 1.2 2000/02/09 19:03:28 brianp Exp $ */
  2. /*
  3. * Mesa 3-D graphics library
  4. * Version: 3.3
  5. *
  6. * Copyright (C) 1999-2000 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. /* Allegro (DJGPP) driver by Bernhard Tschirren (bernie-t@geocities.com) */
  26. #ifndef AMESA_H
  27. #define AMESA_H
  28. #define AMESA_MAJOR_VERSION 3
  29. #define AMESA_MINOR_VERSION 3
  30. typedef struct amesa_visual *AMesaVisual;
  31. typedef struct amesa_buffer *AMesaBuffer;
  32. typedef struct amesa_context *AMesaContext;
  33. extern AMesaVisual AMesaCreateVisual(GLboolean dbFlag, GLint depth,
  34. GLint depthSize,
  35. GLint stencilSize,
  36. GLint accumSize);
  37. extern void AMesaDestroyVisual(AMesaVisual visual);
  38. extern AMesaBuffer AMesaCreateBuffer(AMesaVisual visual,
  39. GLint width, GLint height);
  40. extern void AMesaDestroyBuffer(AMesaBuffer buffer);
  41. extern AMesaContext AMesaCreateContext(AMesaVisual visual,
  42. AMesaContext sharelist);
  43. extern void AMesaDestroyContext(AMesaContext context);
  44. extern GLboolean AMesaMakeCurrent(AMesaContext context, AMesaBuffer buffer);
  45. extern void AMesaSwapBuffers(AMesaBuffer buffer);
  46. #endif /* AMESA_H */