Advertisement
Guest User

eglvivante.h

a guest
Aug 2nd, 2014
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.67 KB | None | 0 0
  1. /****************************************************************************
  2. *
  3. *    Copyright (c) 2005 - 2011 by Vivante Corp.  All rights reserved.
  4. *
  5. *    The material in this file is confidential and contains trade secrets
  6. *    of Vivante Corporation. This is proprietary information owned by
  7. *    Vivante Corporation. No part of this work may be disclosed,
  8. *    reproduced, copied, transmitted, or used in any way for any purpose,
  9. *    without the express written permission of Vivante Corporation.
  10. *
  11. *****************************************************************************
  12. *
  13. *    Auto-generated file on 8/7/2011. Do not edit!!!
  14. *
  15. *****************************************************************************/
  16.  
  17.  
  18.  
  19.  
  20. /*
  21.  * Vivante specific definitions and declarations for EGL library.
  22.  */
  23.  
  24. #ifndef __eglvivante_h_
  25. #define __eglvivante_h_
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. #define EGLAPIENTRY
  32.  
  33. #define LINUX  //horrible
  34. #define EGL_API_FB
  35.  
  36. #if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
  37. /* Win32 and Windows CE platforms. */
  38. #include <windows.h>
  39. typedef HDC             EGLNativeDisplayType;
  40. typedef HWND            EGLNativeWindowType;
  41. typedef HBITMAP         EGLNativePixmapType;
  42.  
  43. #elif defined(LINUX) && defined(EGL_API_FB)
  44. /* Linux platform for FBDEV. */
  45. typedef struct _FBDisplay * EGLNativeDisplayType;
  46. typedef struct _FBWindow *  EGLNativeWindowType;
  47. typedef struct _FBPixmap *  EGLNativePixmapType;
  48.  
  49. EGLNativeDisplayType
  50. dfbGetDisplay(
  51.     void
  52.     );
  53.  
  54. void
  55. dfbGetDisplayGeometry(
  56.     EGLNativeDisplayType Display,
  57.     int * Width,
  58.     int * Height
  59.     );
  60.  
  61. void
  62. dfbDestroyDisplay(
  63.     EGLNativeDisplayType Display
  64.     );
  65.  
  66. EGLNativeWindowType
  67. dfbCreateWindow(
  68.     EGLNativeDisplayType Display,
  69.     int X,
  70.     int Y,
  71.     int Width,
  72.     int Height
  73.     );
  74.  
  75. void
  76. dfbGetWindowGeometry(
  77.     EGLNativeWindowType Window,
  78.     int * X,
  79.     int * Y,
  80.     int * Width,
  81.     int * Height
  82.     );
  83.  
  84. void
  85. dfbDestroyWindow(
  86.     EGLNativeWindowType Window
  87.     );
  88.  
  89. EGLNativePixmapType
  90. dfbCreatePixmap(
  91.     EGLNativeDisplayType Display,
  92.     int Width,
  93.     int Height
  94.     );
  95.  
  96. void
  97. dfbGetPixmapGeometry(
  98.     EGLNativePixmapType Pixmap,
  99.     int * Width,
  100.     int * Height
  101.     );
  102.  
  103. void
  104. dfbDestroyPixmap(
  105.     EGLNativePixmapType Pixmap
  106.     );
  107.  
  108. #elif defined(ANDROID)
  109.  
  110.  
  111. #if ANDROID_SDK_VERSION >= 9
  112. struct ANativeWindow;
  113. typedef struct ANativeWindow *              EGLNativeWindowType;
  114. #else
  115. struct android_native_window_t;
  116. typedef struct android_native_window_t *    EGLNativeWindowType;
  117. #endif
  118.  
  119. struct egl_native_pixmap_t;
  120. typedef struct egl_native_pixmap_t *        EGLNativePixmapType;
  121. typedef void*                               EGLNativeDisplayType;
  122.  
  123. #elif defined(LINUX)
  124. /* X11 platform. */
  125. #include <X11/Xlib.h>
  126. #include <X11/Xutil.h>
  127.  
  128. typedef Display *   EGLNativeDisplayType;
  129. typedef Window      EGLNativeWindowType;
  130.  
  131. #ifdef CUSTOM_PIXMAP
  132. typedef void *      EGLNativePixmapType;
  133. #else
  134. typedef Pixmap      EGLNativePixmapType;
  135. #endif /* CUSTOM_PIXMAP */
  136.  
  137. /* Rename some badly named X defines. */
  138. #ifdef Status
  139. #   define XStatus      int
  140. #   undef Status
  141. #endif
  142. #ifdef Always
  143. #   define XAlways      2
  144. #   undef Always
  145. #endif
  146.  
  147. #else
  148.  
  149. #error "Platform not recognized"
  150.  
  151. /* VOID */
  152. typedef void *  EGLNativeDisplayType;
  153. typedef void *  EGLNativeWindowType;
  154. typedef void *  EGLNativePixmapType;
  155.  
  156. #endif
  157.  
  158. #if defined(__EGL_EXPORTS) && !defined(EGLAPI)
  159. #if defined(_WIN32) && !defined(__SCITECH_SNAP__)
  160. #  define EGLAPI    __declspec(dllexport)
  161. # else
  162. #  define EGLAPI
  163. # endif
  164. #endif
  165.  
  166. #ifdef __cplusplus
  167. }
  168. #endif
  169.  
  170. #endif /* __eglvivante_h_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement