Namespaces | |
| namespace | juce |
Macros | |
| #define | JUCE_OPENGL_H_INCLUDED |
| #define | JUCE_OPENGL 1 |
| #define | JUCE_OPENGL_ES 1 |
| #define | JUCE_MEDIUMP "mediump" |
| Config: JUCE_OPENGL_ES Builds juce_opengl against OpenGL ES rather than desktop OpenGL. | |
| #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. | |
| #define | JUCE_LOWP "lowp" |
| This macro is a helper for use in GLSL shader code which needs to compile on both GLES and desktop GL. | |
| #define JUCE_OPENGL_H_INCLUDED |
| #define JUCE_OPENGL 1 |
| #define JUCE_OPENGL_ES 1 |
| #define JUCE_MEDIUMP "mediump" |
Config: JUCE_OPENGL_ES Builds juce_opengl against OpenGL ES rather than desktop OpenGL.
This is only a choice on Linux and BSD, for systems whose graphics drivers only provide OpenGL ES, such as many embedded Arm boards. It is always enabled on iOS and Android and cannot be enabled on macOS or Windows.
Building against OpenGL ES requires linking libGLESv2 rather than libGL. With CMake, enable it with the NEEDS_OPENGL_ES target option rather than by defining this macro, since that option also links the right libraries. In the Projucer, enable the module flag, or add JUCE_OPENGL_ES=1 to the preprocessor definitions of a Linux exporter when the project also targets other platforms. 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" |
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.