|
|
/* $Id$ */
|
|
|
|
|
|
/*
|
|
|
* This file is part of OpenTTD.
|
|
|
* OpenTTD 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, version 2.
|
|
|
* OpenTTD 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 OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
*/
|
|
|
|
|
|
/** @file opengl_v.cpp OpenGL video driver support. */
|
|
|
|
|
|
#include "../stdafx.h"
|
|
|
|
|
|
/* Define to disable buffer syncing. Will increase max fast forward FPS but produces artifacts. Mainly useful for performance testing. */
|
|
|
// #define NO_GL_BUFFER_SYNC
|
|
|
/* Define to allow software rendering backends. */
|
|
|
// #define GL_ALLOW_SOFTWARE_RENDERER
|
|
|
|
|
|
#if defined(_WIN32)
|
|
|
# include <windows.h>
|
|
|
#endif
|
|
|
|
|
|
#define GL_GLEXT_PROTOTYPES
|
|
|
#if defined(__APPLE__)
|
|
|
# define GL_SILENCE_DEPRECATION
|
|
|
# include <OpenGL/gl3.h>
|