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 1.8KB

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