|
- /*
- ==============================================================================
-
- This file is part of the JUCE library - "Jules' Utility Class Extensions"
- Copyright 2004-11 by Raw Material Software Ltd.
-
- ------------------------------------------------------------------------------
-
- JUCE can be redistributed and/or modified under the terms of the GNU General
- Public License (Version 2), as published by the Free Software Foundation.
- A copy of the license is included in the JUCE distribution, or can be found
- online at www.gnu.org/licenses.
-
- JUCE 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.
-
- ------------------------------------------------------------------------------
-
- To release a closed-source product which uses JUCE, commercial licenses are
- available: visit www.rawmaterialsoftware.com/juce for more information.
-
- ==============================================================================
- */
-
- #ifndef __JUCE_OPENGL_JUCEHEADER__
- #define __JUCE_OPENGL_JUCEHEADER__
-
- #include "../juce_gui_extra/juce_gui_extra.h"
-
- #undef JUCE_OPENGL
- #define JUCE_OPENGL 1
-
- #if JUCE_IOS || JUCE_ANDROID
- #define JUCE_OPENGL_ES 1
- #define JUCE_USE_OPENGL_FIXED_FUNCTION 0
- #endif
-
- #if JUCE_WINDOWS
- #ifndef APIENTRY
- #define APIENTRY __stdcall
- #define CLEAR_TEMP_APIENTRY 1
- #endif
- #ifndef WINGDIAPI
- #define WINGDIAPI __declspec(dllimport)
- #define CLEAR_TEMP_WINGDIAPI 1
- #endif
- #include <gl/GL.h>
- #ifdef CLEAR_TEMP_WINGDIAPI
- #undef WINGDIAPI
- #undef CLEAR_TEMP_WINGDIAPI
- #endif
- #ifdef CLEAR_TEMP_APIENTRY
- #undef APIENTRY
- #undef CLEAR_TEMP_APIENTRY
- #endif
- #elif JUCE_LINUX
- #include <GL/gl.h>
- #undef KeyPress
- #elif JUCE_IOS
- #include <OpenGLES/ES2/gl.h>
- #elif JUCE_MAC
- #include <OpenGL/gl.h>
- #include "OpenGL/glext.h"
- #elif JUCE_ANDROID
- #include <GLES2/gl2.h>
- #endif
-
- #if ! defined (JUCE_USE_OPENGL_SHADERS)
- #define JUCE_USE_OPENGL_SHADERS 1
- #endif
-
- #ifndef JUCE_USE_OPENGL_FIXED_FUNCTION
- #define JUCE_USE_OPENGL_FIXED_FUNCTION 1
- #endif
-
- //=============================================================================
- namespace juce
- {
-
- #include "opengl/juce_OpenGLHelpers.h"
-
- // START_AUTOINCLUDE opengl
- #ifndef __JUCE_DRAGGABLE3DORIENTATION_JUCEHEADER__
- #include "opengl/juce_Draggable3DOrientation.h"
- #endif
- #ifndef __JUCE_MATRIX3D_JUCEHEADER__
- #include "opengl/juce_Matrix3D.h"
- #endif
- #ifndef __JUCE_OPENGLCONTEXT_JUCEHEADER__
- #include "opengl/juce_OpenGLContext.h"
- #endif
- #ifndef __JUCE_OPENGLFRAMEBUFFER_JUCEHEADER__
- #include "opengl/juce_OpenGLFrameBuffer.h"
- #endif
- #ifndef __JUCE_OPENGLGRAPHICSCONTEXT_JUCEHEADER__
- #include "opengl/juce_OpenGLGraphicsContext.h"
- #endif
- #ifndef __JUCE_OPENGLHELPERS_JUCEHEADER__
- #include "opengl/juce_OpenGLHelpers.h"
- #endif
- #ifndef __JUCE_OPENGLIMAGE_JUCEHEADER__
- #include "opengl/juce_OpenGLImage.h"
- #endif
- #ifndef __JUCE_OPENGLPIXELFORMAT_JUCEHEADER__
- #include "opengl/juce_OpenGLPixelFormat.h"
- #endif
- #ifndef __JUCE_OPENGLRENDERER_JUCEHEADER__
- #include "opengl/juce_OpenGLRenderer.h"
- #endif
- #ifndef __JUCE_OPENGLSHADERPROGRAM_JUCEHEADER__
- #include "opengl/juce_OpenGLShaderProgram.h"
- #endif
- #ifndef __JUCE_OPENGLTEXTURE_JUCEHEADER__
- #include "opengl/juce_OpenGLTexture.h"
- #endif
- #ifndef __JUCE_QUATERNION_JUCEHEADER__
- #include "opengl/juce_Quaternion.h"
- #endif
- #ifndef __JUCE_VECTOR3D_JUCEHEADER__
- #include "opengl/juce_Vector3D.h"
- #endif
- // END_AUTOINCLUDE
-
- }
-
- #endif // __JUCE_OPENGL_JUCEHEADER__
|