A set of miscellaneous openGL helper functions.
More...
#include <juce_OpenGLHelpers.h>
A set of miscellaneous openGL helper functions.
◆ resetErrorState()
static void OpenGLHelpers::resetErrorState |
( |
| ) |
|
|
static |
Clears the GL error state.
◆ isContextActive()
static bool OpenGLHelpers::isContextActive |
( |
| ) |
|
|
static |
Returns true if the current thread has an active OpenGL context.
◆ clear()
static void OpenGLHelpers::clear |
( |
Colour | colour | ) |
|
|
static |
Clears the current context using the given colour.
◆ enableScissorTest()
static void OpenGLHelpers::enableScissorTest |
( |
Rectangle< int > | clip | ) |
|
|
static |
◆ isExtensionSupported()
static bool OpenGLHelpers::isExtensionSupported |
( |
const char * | extensionName | ) |
|
|
static |
Checks whether the current context supports the specified extension.
◆ getExtensionFunction()
static void * OpenGLHelpers::getExtensionFunction |
( |
const char * | functionName | ) |
|
|
static |
Returns the address of a named GL extension function.
◆ getGLSLVersionString()
static String OpenGLHelpers::getGLSLVersionString |
( |
| ) |
|
|
static |
Returns a version string such as "#version 150" suitable for prefixing a GLSL shader on this platform.
◆ translateVertexShaderToV3()
static String OpenGLHelpers::translateVertexShaderToV3 |
( |
const String & | | ) |
|
|
static |
Makes some simple textual changes to a shader program to try to convert old GLSL keywords to their v3 equivalents.
Before doing this, the function will check whether the current context is actually using a later version of the language, and if not it will not make any changes. Obviously this is not a real parser, so will only work on simple code!
◆ translateFragmentShaderToV3()
static String OpenGLHelpers::translateFragmentShaderToV3 |
( |
const String & | | ) |
|
|
static |
Makes some simple textual changes to a shader program to try to convert old GLSL keywords to their v3 equivalents.
Before doing this, the function will check whether the current context is actually using a later version of the language, and if not it will not make any changes. Obviously this is not a real parser, so will only work on simple code!
The documentation for this class was generated from the following file: