OLD | NEW |
1 #ifndef EGLCONFIG_INCLUDED | 1 #ifndef EGLCONFIG_INCLUDED |
2 #define EGLCONFIG_INCLUDED | 2 #define EGLCONFIG_INCLUDED |
3 | 3 |
4 | 4 |
5 #include <assert.h> | 5 #include <assert.h> |
6 #include "egltypedefs.h" | 6 #include "egltypedefs.h" |
7 | 7 |
8 | 8 |
9 #define _EGL_CONFIG_FIRST_ATTRIB EGL_BUFFER_SIZE | 9 #define _EGL_CONFIG_FIRST_ATTRIB EGL_BUFFER_SIZE |
10 #define _EGL_CONFIG_LAST_ATTRIB EGL_CONFORMANT | 10 #define _EGL_CONFIG_LAST_ATTRIB EGL_CONFORMANT |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 */ | 42 */ |
43 static INLINE EGLint | 43 static INLINE EGLint |
44 _eglIndexConfig(const _EGLConfig *conf, EGLint key) | 44 _eglIndexConfig(const _EGLConfig *conf, EGLint key) |
45 { | 45 { |
46 (void) conf; | 46 (void) conf; |
47 if (key >= _EGL_CONFIG_FIRST_ATTRIB && | 47 if (key >= _EGL_CONFIG_FIRST_ATTRIB && |
48 key < _EGL_CONFIG_FIRST_ATTRIB + _EGL_CONFIG_NUM_CONTIGUOUS_ATTRIBS) | 48 key < _EGL_CONFIG_FIRST_ATTRIB + _EGL_CONFIG_NUM_CONTIGUOUS_ATTRIBS) |
49 return key - _EGL_CONFIG_FIRST_ATTRIB; | 49 return key - _EGL_CONFIG_FIRST_ATTRIB; |
50 | 50 |
51 switch (key) { | 51 switch (key) { |
| 52 #ifdef EGL_NOK_texture_from_pixmap |
52 case EGL_Y_INVERTED_NOK: | 53 case EGL_Y_INVERTED_NOK: |
53 return _EGL_CONFIG_FIRST_EXTRA_ATTRIB; | 54 return _EGL_CONFIG_FIRST_EXTRA_ATTRIB; |
| 55 #endif |
54 default: | 56 default: |
55 return -1; | 57 return -1; |
56 } | 58 } |
57 } | 59 } |
58 | 60 |
59 | 61 |
60 /** | 62 /** |
61 * Reset all keys in the config to a given value. | 63 * Reset all keys in the config to a given value. |
62 */ | 64 */ |
63 static INLINE void | 65 static INLINE void |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 165 |
164 extern EGLBoolean | 166 extern EGLBoolean |
165 _eglGetConfigAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, EGLint
attribute, EGLint *value); | 167 _eglGetConfigAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, EGLint
attribute, EGLint *value); |
166 | 168 |
167 | 169 |
168 extern EGLBoolean | 170 extern EGLBoolean |
169 _eglGetConfigs(_EGLDriver *drv, _EGLDisplay *dpy, EGLConfig *configs, EGLint con
fig_size, EGLint *num_config); | 171 _eglGetConfigs(_EGLDriver *drv, _EGLDisplay *dpy, EGLConfig *configs, EGLint con
fig_size, EGLint *num_config); |
170 | 172 |
171 | 173 |
172 #endif /* EGLCONFIG_INCLUDED */ | 174 #endif /* EGLCONFIG_INCLUDED */ |
OLD | NEW |