diff --git a/clutter/cogl/clutter-egl-headers.h b/clutter/cogl/clutter-egl-headers.h new file mode 100644 index 000000000..402ded259 --- /dev/null +++ b/clutter/cogl/clutter-egl-headers.h @@ -0,0 +1,46 @@ +/* Clutter. + * An OpenGL based 'interactive canvas' library. + * Authored By Matthew Allum + * Copyright (C) 2006-2007 OpenedHand + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + * + */ + +#ifndef __CLUTTER_EGL_HEADERS_H__ +#define __CLUTTER_EGL_HEADERS_H__ + +#include + +#if defined(COGL_HAS_GLES1) +#include +#include +#else + +#include +#define NativeDisplayType EGLNativeDisplayType +#define NativeWindowType EGLNativeWindowType + +#if defined(COGL_HAS_GLES2) +#include +#elif defined(COGL_HAS_GL) +#include +#else +#error Unknown Cogl backend +#endif + +#endif /* !COGL_HAS_GLES1 */ + +#endif /* __CLUTTER_EGL_HEADERS_H__ */