eglplatform.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * This confidential and proprietary software may be used only as
  3. * authorised by a licensing agreement from ARM Limited
  4. * (C) COPYRIGHT 2008-2010, 2013 ARM Limited
  5. * ALL RIGHTS RESERVED
  6. * The entire notice above must be reproduced on all authorised
  7. * copies and copies may only be made to the extent permitted
  8. * by a licensing agreement from ARM Limited.
  9. */
  10. #ifndef __EGLPLATFORM_H__
  11. #define __EGLPLATFORM_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifndef EGLAPIENTRY
  16. #define EGLAPIENTRY
  17. #endif
  18. #ifndef EGLAPIENTRYP
  19. #define EGLAPIENTRYP EGLAPIENTRY*
  20. #endif
  21. #ifndef EGLAPI
  22. #define EGLAPI extern
  23. #endif
  24. #include <EGL/fbdev_window.h>
  25. #include <KHR/khrplatform.h>
  26. typedef fbdev_window *NativeWindowType;
  27. typedef void *NativePixmapType;
  28. typedef void *NativeDisplayType;
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
  33. typedef NativeDisplayType EGLNativeDisplayType;
  34. typedef NativePixmapType EGLNativePixmapType;
  35. typedef NativeWindowType EGLNativeWindowType;
  36. /* Define EGLint. This must be an integral type large enough to contain
  37. * all legal attribute names and values passed into and out of EGL,
  38. * whether their type is boolean, bitmask, enumerant (symbolic
  39. * constant), integer, handle, or other.
  40. * While in general a 32-bit integer will suffice, if handles are
  41. * represented as pointers, then EGLint should be defined as a 64-bit
  42. * integer type.
  43. */
  44. typedef int EGLint;
  45. #endif /* __EGLPLATFORM_H__ */