mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
963a0662b4
This adds a clutter backend for running under the wayland window system. Initial cogl framebuffer integration by Robert Bragg.
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/*
|
|
* Cogl
|
|
*
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
*
|
|
* Copyright (C) 2007,2008,2009 Intel Corporation.
|
|
*
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include "cogl.h"
|
|
|
|
#ifdef HAVE_STANDALONE_EGL
|
|
#include <EGL/egl.h>
|
|
#include <EGL/eglext.h>
|
|
#define NativeDisplayType EGLNativeDisplayType
|
|
#define NativeWindowType EGLNativeWindowType
|
|
#else
|
|
#include <GLES/egl.h>
|
|
#include <GLES/eglext.h>
|
|
#endif
|
|
|
|
CoglFuncPtr
|
|
_cogl_winsys_get_proc_address (const char *name)
|
|
{
|
|
return (CoglFuncPtr) eglGetProcAddress (name);
|
|
}
|
|
|