123456789101112131415161718192021222324252627282930313233343536 |
- // This file is part of libigl, a simple c++ geometry processing library.
- //
- // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
- //
- // 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 OPENGL_CONVENIENCE_H
- #define OPENGL_CONVENIENCE_H
- #ifndef IGL_NO_OPENGL
- // 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 <OpenGL/gl.h>
- # include <OpenGL/glu.h>
- #elif defined(_WIN32)
- # define NOMINMAX
- # include <Windows.h>
- # undef NOMINMAX
- # include <GL/glew.h>
- # include <GL/gl.h>
- #else
- # define GL_GLEXT_PROTOTYPES
- # include <GL/gl.h>
- # include <GL/glext.h>
- # include <GL/glu.h>
- #endif
- #endif
- #endif
|