2015-12-08 07:31:57 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2016-07-19 17:35:25 +00:00
|
|
|
* Copyright (C) 2015-2016 Mario Luzeiro <mrluzeiro@ua.pt>
|
|
|
|
* Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
|
2015-12-08 07:31:57 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file openGL_includes.h
|
|
|
|
* @brief includes in a proper way the openGL related includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OPENGL_INCLUDES_H
|
|
|
|
#define OPENGL_INCLUDES_H
|
|
|
|
|
2016-01-07 00:24:11 +00:00
|
|
|
#ifdef __APPLE__
|
2023-11-16 14:09:24 +00:00
|
|
|
#ifndef GL_SILENCE_DEPRECATION
|
2019-12-28 16:05:03 +00:00
|
|
|
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
|
|
|
|
// Luckily we can silence warnings about its deprecation.
|
|
|
|
#define GL_SILENCE_DEPRECATION 1
|
2023-11-16 14:09:24 +00:00
|
|
|
#endif
|
2016-01-07 00:24:11 +00:00
|
|
|
#include <OpenGL/gl.h>
|
|
|
|
#include <OpenGL/glu.h>
|
2015-12-08 07:31:57 +00:00
|
|
|
#else
|
2021-06-03 03:57:45 +00:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
// required for the windows gl.h to work
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
|
|
|
|
2016-01-07 00:24:11 +00:00
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glu.h>
|
2015-12-08 07:31:57 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif // OPENGL_INCLUDES_H
|