1 /* dstep -I/path/to/ndk-r9d/toolchains/llvm-3.4/prebuilt/linux-x86/lib/clang/3.4/include /path/to/ndk-r9d/platforms/android-9/arch-x86/usr/include/EGL/egl.h -o egl.d*/ 2 3 module EGL.egl; 4 5 import EGL.eglplatform; 6 7 version (Android): 8 extern (C): 9 @system: 10 nothrow: 11 @nogc: 12 13 alias uint EGLBoolean; 14 alias uint EGLenum; 15 alias void* EGLConfig; 16 alias void* EGLContext; 17 alias void* EGLDisplay; 18 alias void* EGLSurface; 19 alias void* EGLClientBuffer; 20 alias void function() __eglMustCastToProperFunctionPointerType; 21 22 enum EGL_VERSION_1_0 = 1; 23 enum EGL_VERSION_1_1 = 1; 24 enum EGL_VERSION_1_2 = 1; 25 enum EGL_VERSION_1_3 = 1; 26 enum EGL_VERSION_1_4 = 1; 27 enum EGL_FALSE = 0; 28 enum EGL_TRUE = 1; 29 enum EGL_DEFAULT_DISPLAY = null; 30 enum EGL_NO_CONTEXT = null; 31 enum EGL_NO_DISPLAY = null; 32 enum EGL_NO_SURFACE = null; 33 enum EGL_DONT_CARE = -1; 34 enum EGL_SUCCESS = 0x3000; 35 enum EGL_NOT_INITIALIZED = 0x3001; 36 enum EGL_BAD_ACCESS = 0x3002; 37 enum EGL_BAD_ALLOC = 0x3003; 38 enum EGL_BAD_ATTRIBUTE = 0x3004; 39 enum EGL_BAD_CONFIG = 0x3005; 40 enum EGL_BAD_CONTEXT = 0x3006; 41 enum EGL_BAD_CURRENT_SURFACE = 0x3007; 42 enum EGL_BAD_DISPLAY = 0x3008; 43 enum EGL_BAD_MATCH = 0x3009; 44 enum EGL_BAD_NATIVE_PIXMAP = 0x300A; 45 enum EGL_BAD_NATIVE_WINDOW = 0x300B; 46 enum EGL_BAD_PARAMETER = 0x300C; 47 enum EGL_BAD_SURFACE = 0x300D; 48 enum EGL_CONTEXT_LOST = 0x300E; 49 enum EGL_BUFFER_SIZE = 0x3020; 50 enum EGL_ALPHA_SIZE = 0x3021; 51 enum EGL_BLUE_SIZE = 0x3022; 52 enum EGL_GREEN_SIZE = 0x3023; 53 enum EGL_RED_SIZE = 0x3024; 54 enum EGL_DEPTH_SIZE = 0x3025; 55 enum EGL_STENCIL_SIZE = 0x3026; 56 enum EGL_CONFIG_CAVEAT = 0x3027; 57 enum EGL_CONFIG_ID = 0x3028; 58 enum EGL_LEVEL = 0x3029; 59 enum EGL_MAX_PBUFFER_HEIGHT = 0x302A; 60 enum EGL_MAX_PBUFFER_PIXELS = 0x302B; 61 enum EGL_MAX_PBUFFER_WIDTH = 0x302C; 62 enum EGL_NATIVE_RENDERABLE = 0x302D; 63 enum EGL_NATIVE_VISUAL_ID = 0x302E; 64 enum EGL_NATIVE_VISUAL_TYPE = 0x302F; 65 enum EGL_SAMPLES = 0x3031; 66 enum EGL_SAMPLE_BUFFERS = 0x3032; 67 enum EGL_SURFACE_TYPE = 0x3033; 68 enum EGL_TRANSPARENT_TYPE = 0x3034; 69 enum EGL_TRANSPARENT_BLUE_VALUE = 0x3035; 70 enum EGL_TRANSPARENT_GREEN_VALUE = 0x3036; 71 enum EGL_TRANSPARENT_RED_VALUE = 0x3037; 72 enum EGL_NONE = 0x3038; 73 enum EGL_BIND_TO_TEXTURE_RGB = 0x3039; 74 enum EGL_BIND_TO_TEXTURE_RGBA = 0x303A; 75 enum EGL_MIN_SWAP_INTERVAL = 0x303B; 76 enum EGL_MAX_SWAP_INTERVAL = 0x303C; 77 enum EGL_LUMINANCE_SIZE = 0x303D; 78 enum EGL_ALPHA_MASK_SIZE = 0x303E; 79 enum EGL_COLOR_BUFFER_TYPE = 0x303F; 80 enum EGL_RENDERABLE_TYPE = 0x3040; 81 enum EGL_MATCH_NATIVE_PIXMAP = 0x3041; 82 enum EGL_CONFORMANT = 0x3042; 83 enum EGL_SLOW_CONFIG = 0x3050; 84 enum EGL_NON_CONFORMANT_CONFIG = 0x3051; 85 enum EGL_TRANSPARENT_RGB = 0x3052; 86 enum EGL_RGB_BUFFER = 0x308E; 87 enum EGL_LUMINANCE_BUFFER = 0x308F; 88 enum EGL_NO_TEXTURE = 0x305C; 89 enum EGL_TEXTURE_RGB = 0x305D; 90 enum EGL_TEXTURE_RGBA = 0x305E; 91 enum EGL_TEXTURE_2D = 0x305F; 92 enum EGL_PBUFFER_BIT = 0x0001; 93 enum EGL_PIXMAP_BIT = 0x0002; 94 enum EGL_WINDOW_BIT = 0x0004; 95 enum EGL_VG_COLORSPACE_LINEAR_BIT = 0x0020; 96 enum EGL_VG_ALPHA_FORMAT_PRE_BIT = 0x0040; 97 enum EGL_MULTISAMPLE_RESOLVE_BOX_BIT = 0x0200; 98 enum EGL_SWAP_BEHAVIOR_PRESERVED_BIT = 0x0400; 99 enum EGL_OPENGL_ES_BIT = 0x0001; 100 enum EGL_OPENVG_BIT = 0x0002; 101 enum EGL_OPENGL_ES2_BIT = 0x0004; 102 enum EGL_OPENGL_BIT = 0x0008; 103 enum EGL_VENDOR = 0x3053; 104 enum EGL_VERSION = 0x3054; 105 enum EGL_EXTENSIONS = 0x3055; 106 enum EGL_CLIENT_APIS = 0x308D; 107 enum EGL_HEIGHT = 0x3056; 108 enum EGL_WIDTH = 0x3057; 109 enum EGL_LARGEST_PBUFFER = 0x3058; 110 enum EGL_TEXTURE_FORMAT = 0x3080; 111 enum EGL_TEXTURE_TARGET = 0x3081; 112 enum EGL_MIPMAP_TEXTURE = 0x3082; 113 enum EGL_MIPMAP_LEVEL = 0x3083; 114 enum EGL_RENDER_BUFFER = 0x3086; 115 enum EGL_VG_COLORSPACE = 0x3087; 116 enum EGL_VG_ALPHA_FORMAT = 0x3088; 117 enum EGL_HORIZONTAL_RESOLUTION = 0x3090; 118 enum EGL_VERTICAL_RESOLUTION = 0x3091; 119 enum EGL_PIXEL_ASPECT_RATIO = 0x3092; 120 enum EGL_SWAP_BEHAVIOR = 0x3093; 121 enum EGL_MULTISAMPLE_RESOLVE = 0x3099; 122 enum EGL_BACK_BUFFER = 0x3084; 123 enum EGL_SINGLE_BUFFER = 0x3085; 124 enum EGL_VG_COLORSPACE_sRGB = 0x3089; 125 enum EGL_VG_COLORSPACE_LINEAR = 0x308A; 126 enum EGL_VG_ALPHA_FORMAT_NONPRE = 0x308B; 127 enum EGL_VG_ALPHA_FORMAT_PRE = 0x308C; 128 enum EGL_DISPLAY_SCALING = 10000; 129 enum EGL_UNKNOWN = -1; 130 enum EGL_BUFFER_PRESERVED = 0x3094; 131 enum EGL_BUFFER_DESTROYED = 0x3095; 132 enum EGL_OPENVG_IMAGE = 0x3096; 133 enum EGL_CONTEXT_CLIENT_TYPE = 0x3097; 134 enum EGL_CONTEXT_CLIENT_VERSION = 0x3098; 135 enum EGL_MULTISAMPLE_RESOLVE_DEFAULT = 0x309A; 136 enum EGL_MULTISAMPLE_RESOLVE_BOX = 0x309B; 137 enum EGL_OPENGL_ES_API = 0x30A0; 138 enum EGL_OPENVG_API = 0x30A1; 139 enum EGL_OPENGL_API = 0x30A2; 140 enum EGL_DRAW = 0x3059; 141 enum EGL_READ = 0x305A; 142 enum EGL_CORE_NATIVE_ENGINE = 0x305B; 143 enum EGL_COLORSPACE = EGL_VG_COLORSPACE; 144 enum EGL_ALPHA_FORMAT = EGL_VG_ALPHA_FORMAT; 145 enum EGL_COLORSPACE_sRGB = EGL_VG_COLORSPACE_sRGB; 146 enum EGL_COLORSPACE_LINEAR = EGL_VG_COLORSPACE_LINEAR; 147 enum EGL_ALPHA_FORMAT_NONPRE = EGL_VG_ALPHA_FORMAT_NONPRE; 148 enum EGL_ALPHA_FORMAT_PRE = EGL_VG_ALPHA_FORMAT_PRE; 149 150 EGLint eglGetError(); 151 EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id); 152 EGLBoolean eglInitialize(EGLDisplay dpy, EGLint* major, EGLint* minor); 153 EGLBoolean eglTerminate(EGLDisplay dpy); 154 const(char)* eglQueryString(EGLDisplay dpy, EGLint name); 155 EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig* configs, EGLint config_size, EGLint* num_config); 156 EGLBoolean eglChooseConfig(EGLDisplay dpy, const(EGLint)* attrib_list, EGLConfig* configs, EGLint config_size, EGLint* num_config); 157 EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value); 158 EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const(EGLint)* attrib_list); 159 EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const(EGLint)* attrib_list); 160 EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const(EGLint)* attrib_list); 161 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface); 162 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint* value); 163 EGLBoolean eglBindAPI(EGLenum api); 164 EGLenum eglQueryAPI(); 165 EGLBoolean eglWaitClient(); 166 EGLBoolean eglReleaseThread(); 167 EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const(EGLint)* attrib_list); 168 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value); 169 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); 170 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); 171 EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval); 172 EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const(EGLint)* attrib_list); 173 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx); 174 EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx); 175 EGLContext eglGetCurrentContext(); 176 EGLSurface eglGetCurrentSurface(EGLint readdraw); 177 EGLDisplay eglGetCurrentDisplay(); 178 EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint* value); 179 EGLBoolean eglWaitGL(); 180 EGLBoolean eglWaitNative(EGLint engine); 181 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface); 182 EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target); 183 __eglMustCastToProperFunctionPointerType eglGetProcAddress(const(char)* procname);