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.

foomesa.h 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* $Id: foomesa.h,v 1.1 1999/08/19 00:55:40 jtg Exp $ */
  2. /*
  3. * Mesa 3-D graphics library
  4. * Version: 3.0
  5. * Copyright (C) 1995-1998 Brian Paul
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Library General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Library General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Library General Public
  18. * License along with this library; if not, write to the Free
  19. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. /*
  22. * $Log: foomesa.h,v $
  23. * Revision 1.1 1999/08/19 00:55:40 jtg
  24. * Initial revision
  25. *
  26. * Revision 1.1 1998/06/02 01:34:18 brianp
  27. * Initial revision
  28. *
  29. */
  30. /*
  31. * Example Foo/Mesa interface. See src/ddsample.c for more info.
  32. */
  33. #ifndef FOOMESA_H
  34. #define FOOMESA_H
  35. typedef struct foo_mesa_visual *FooMesaVisual;
  36. typedef struct foo_mesa_buffer *FooMesaBuffer;
  37. typedef struct foo_mesa_context *FooMesaContext;
  38. #ifdef BEOS
  39. #pragma export on
  40. #endif
  41. extern FooMesaVisual FooMesaChooseVisual( /* your params */ );
  42. extern void FooMesaDestroyVisual( FooMesaVisual visual );
  43. extern FooMesaBuffer FooMesaCreateBuffer( FooMesaVisual visual,
  44. void *your_window_id );
  45. extern void FooMesaDestroyBuffer( FooMesaBuffer buffer );
  46. extern FooMesaContext FooMesaCreateContext( FooMesaVisual visual,
  47. FooMesaContext sharelist );
  48. extern void FooMesaDestroyContext( FooMesaContext context );
  49. extern void FooMesaMakeCurrent( FooMesaContext context, FooMesaBuffer buffer );
  50. extern void FooMesaSwapBuffers( FooMesaBuffer buffer );
  51. /* Probably some more functions... */
  52. #ifdef BEOS
  53. #pragma export off
  54. #endif
  55. #endif