/* ============================================================================== This file is part of the JUCE 7 technical preview. Copyright (c) 2022 - Raw Material Software Limited You may use this code under the terms of the GPL v3 (see www.gnu.org/licenses). For the technical preview this file cannot be licensed commercially. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE DISCLAIMED. ============================================================================== */ /******************************************************************************* The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION ID: juce_opengl vendor: juce version: 6.1.6 name: JUCE OpenGL classes description: Classes for rendering OpenGL in a JUCE window. website: http://www.juce.com/juce license: GPL/Commercial minimumCppStandard: 14 dependencies: juce_gui_extra OSXFrameworks: OpenGL iOSFrameworks: OpenGLES linuxLibs: GL mingwLibs: opengl32 END_JUCE_MODULE_DECLARATION *******************************************************************************/ #pragma once #define JUCE_OPENGL_H_INCLUDED #include #undef JUCE_OPENGL #define JUCE_OPENGL 1 #if JUCE_IOS || JUCE_ANDROID #define JUCE_OPENGL_ES 1 #include "opengl/juce_gles2.h" #else #include "opengl/juce_gl.h" #endif #include //============================================================================== #if JUCE_OPENGL_ES || DOXYGEN /** This macro is a helper for use in GLSL shader code which needs to compile on both GLES and desktop GL. Since it's mandatory in GLES to mark a variable with a precision, but the keywords don't exist in normal GLSL, these macros define the various precision keywords only on GLES. */ #define JUCE_MEDIUMP "mediump" /** This macro is a helper for use in GLSL shader code which needs to compile on both GLES and desktop GL. Since it's mandatory in GLES to mark a variable with a precision, but the keywords don't exist in normal GLSL, these macros define the various precision keywords only on GLES. */ #define JUCE_HIGHP "highp" /** This macro is a helper for use in GLSL shader code which needs to compile on both GLES and desktop GL. Since it's mandatory in GLES to mark a variable with a precision, but the keywords don't exist in normal GLSL, these macros define the various precision keywords only on GLES. */ #define JUCE_LOWP "lowp" #else #define JUCE_MEDIUMP #define JUCE_HIGHP #define JUCE_LOWP #endif //============================================================================== namespace juce { class OpenGLTexture; class OpenGLFrameBuffer; class OpenGLShaderProgram; } #include "geometry/juce_Vector3D.h" #include "geometry/juce_Matrix3D.h" #include "geometry/juce_Quaternion.h" #include "geometry/juce_Draggable3DOrientation.h" #include "opengl/juce_OpenGLHelpers.h" #include "opengl/juce_OpenGLPixelFormat.h" #include "native/juce_OpenGLExtensions.h" #include "opengl/juce_OpenGLRenderer.h" #include "opengl/juce_OpenGLContext.h" #include "opengl/juce_OpenGLFrameBuffer.h" #include "opengl/juce_OpenGLGraphicsContext.h" #include "opengl/juce_OpenGLImage.h" #include "opengl/juce_OpenGLShaderProgram.h" #include "opengl/juce_OpenGLTexture.h" #include "utils/juce_OpenGLAppComponent.h"