mirror of
https://github.com/brl/mutter.git
synced 2024-12-29 14:22:13 +00:00
59d06d486d
The tesselator code uses some defines that it expects to be in the GL headers such as GLAPI and GLAPIENTRY. These are used to mark the entry points as exportable on each platform. We don't really want the tesselator code to use these but we also don't want to modify the C files so instead they are #defined to be empty in the stub glu.h. That header is only included internally when building the tesselator/ files so it shouldn't affect the rest of Cogl. GLES also doesn't have a GLdouble type so we just #define this to be a regular double.
41 lines
1.3 KiB
C
41 lines
1.3 KiB
C
/*
|
|
* Cogl
|
|
*
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
*
|
|
* Copyright (C) 2010 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/>.
|
|
*
|
|
*/
|
|
|
|
/* This is just a wrapper to use our simplified version of glu.h so
|
|
that the tesselator code can still #include <GL/glu.h> */
|
|
|
|
#include "../tesselator.h"
|
|
|
|
/* These aren't defined on GLES and we don't really want the
|
|
tesselator code to use them but we're also trying to avoid
|
|
modifying the C files so we just force them to be empty here */
|
|
|
|
#undef GLAPI
|
|
#define GLAPI
|
|
|
|
#undef GLAPIENTRY
|
|
#define GLAPIENTRY
|
|
|
|
/* GLES doesn't define a GLdouble type so lets just force it to a
|
|
regular double */
|
|
#define GLdouble double
|