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.

ggimesa.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* $Id: ggimesa.h,v 1.3 2000/02/09 19:03:28 brianp Exp $ */
  2. /*
  3. * Mesa 3-D graphics library
  4. * Version: 3.3
  5. * Copyright (C) 1995-2000 Brian Paul
  6. * Copyright (C) 1998 Uwe Maurer
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Library General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Library General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Library General Public
  19. * License along with this library; if not, write to the Free
  20. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. #ifndef GGIMESA_H
  23. #define GGIMESA_H
  24. #define GGIMESA_MAJOR_VERSION 3
  25. #define GGIMESA_MINOR_VERSION 3
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. #include "GL/gl.h"
  30. typedef struct ggi_mesa_context *GGIMesaContext;
  31. #include <ggi/ggi.h>
  32. extern GGIMesaContext GGIMesaCreateContext(void);
  33. extern void GGIMesaDestroyContext(GGIMesaContext ctx);
  34. extern void GGIMesaMakeCurrent(GGIMesaContext ctx);
  35. extern GGIMesaContext GGIMesaGetCurrentContext(void);
  36. extern void GGIMesaSwapBuffers(void);
  37. extern int GGIMesaSetVisual(GGIMesaContext ctx, ggi_visual_t vis,
  38. GLboolean rgb_flag, GLboolean db_flag);
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif