Clone of mesa.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* $Id: amesa.h,v 1.1 1999/08/19 00:55:40 jtg 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. /*
  26. * $Log: amesa.h,v $
  27. * Revision 1.1 1999/08/19 00:55:40 jtg
  28. * Initial revision
  29. *
  30. * Revision 1.1 1999/03/16 01:24:13 brianp
  31. * initial check-in
  32. *
  33. */
  34. /* Allegro (DJGPP) driver by Bernhard Tschirren (bernie-t@geocities.com) */
  35. #ifndef AMESA_H
  36. #define AMESA_H
  37. typedef struct amesa_visual *AMesaVisual;
  38. typedef struct amesa_buffer *AMesaBuffer;
  39. typedef struct amesa_context *AMesaContext;
  40. extern AMesaVisual AMesaCreateVisual(GLboolean dbFlag, GLint depth,
  41. GLint depthSize,
  42. GLint stencilSize,
  43. GLint accumSize);
  44. extern void AMesaDestroyVisual(AMesaVisual visual);
  45. extern AMesaBuffer AMesaCreateBuffer(AMesaVisual visual,
  46. GLint width, GLint height);
  47. extern void AMesaDestroyBuffer(AMesaBuffer buffer);
  48. extern AMesaContext AMesaCreateContext(AMesaVisual visual,
  49. AMesaContext sharelist);
  50. extern void AMesaDestroyContext(AMesaContext context);
  51. extern GLboolean AMesaMakeCurrent(AMesaContext context, AMesaBuffer buffer);
  52. extern void AMesaSwapBuffers(AMesaBuffer buffer);
  53. #endif /* AMESA_H */