JUCE
Namespaces | Macros
juce_opengl.h File Reference

Namespaces

 juce
 Classes for IIR filter processing.
 

Macros

#define JUCE_OPENGL_H_INCLUDED
 
#define JUCE_OPENGL   1
 
#define JUCE_OPENGL_ES   1
 
#define JUCE_GLSL_VERSION   ""
 This macro is a helper for use in GLSL shader code which needs to compile on both OpenGL 2.1 and OpenGL 3.0. More...
 
#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. More...
 
#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. More...
 
#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. More...
 

Macro Definition Documentation

◆ JUCE_OPENGL_H_INCLUDED

#define JUCE_OPENGL_H_INCLUDED

◆ JUCE_OPENGL

#define JUCE_OPENGL   1

◆ JUCE_OPENGL_ES

#define JUCE_OPENGL_ES   1

◆ JUCE_GLSL_VERSION

#define JUCE_GLSL_VERSION   ""

This macro is a helper for use in GLSL shader code which needs to compile on both OpenGL 2.1 and OpenGL 3.0.

It's mandatory in OpenGL 3.0 to specify the GLSL version.

◆ JUCE_MEDIUMP

#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.

◆ JUCE_HIGHP

#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.

◆ JUCE_LOWP

#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.