Clone of mesa.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

directfbgl.h 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. (c) Copyright 2001 convergence integrated media GmbH.
  3. All rights reserved.
  4. Written by Denis Oliver Kropp <dok@convergence.de> and
  5. Andreas Hundt <andi@convergence.de>.
  6. This library is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU Lesser 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. This library is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with this library; if not, write to the
  16. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. Boston, MA 02111-1307, USA.
  18. */
  19. #ifndef __DIRECTFBGL_H__
  20. #define __DIRECTFBGL_H__
  21. #include <directfb.h>
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. typedef struct {
  27. int buffer_size;
  28. int depth_size;
  29. int stencil_size;
  30. int aux_buffers;
  31. int red_size;
  32. int green_size;
  33. int blue_size;
  34. int alpha_size;
  35. int accum_red_size;
  36. int accum_green_size;
  37. int accum_blue_size;
  38. int accum_alpha_size;
  39. DFBBoolean double_buffer;
  40. DFBBoolean stereo;
  41. } DFBGLAttributes;
  42. DEFINE_INTERFACE( IDirectFBGL,
  43. /** Context handling **/
  44. /*
  45. * Acquire the hardware lock.
  46. */
  47. DFBResult (*Lock) (
  48. IDirectFBGL *thiz
  49. );
  50. /*
  51. * Release the lock.
  52. */
  53. DFBResult (*Unlock) (
  54. IDirectFBGL *thiz
  55. );
  56. /*
  57. * Query the OpenGL attributes.
  58. */
  59. DFBResult (*GetAttributes) (
  60. IDirectFBGL *thiz,
  61. DFBGLAttributes *attributes
  62. );
  63. )
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif