// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 Alec Jacobson // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #ifndef IGL_OPENGL_OPENGL_CONVENIENCE_H #define IGL_OPENGL_OPENGL_CONVENIENCE_H // Always use this: // #include "OpenGL_convenience.h" // Convenience includer for opengl. // For now this includes glu, glew and glext (perhaps these should be // separated) /*#if __APPLE__ # include # include # include #elif defined(_WIN32) # define NOMINMAX # include # undef NOMINMAX # include # include #else # define GL_GLEXT_PROTOTYPES # include # include # include #endif*/ // From Nanogui #if defined(__APPLE__) #define GLFW_INCLUDE_GLCOREARB #elif defined(WIN32) #define GLEW_STATIC #include #else #define GLEW_STATIC #include #define GL_GLEXT_PROTOTYPES #endif //#define GLFW_INCLUDE_GLU #include #endif