diff options
author | Brian Paul <[email protected]> | 2013-11-16 13:55:50 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-11-18 08:56:35 -0700 |
commit | cadec45c3dce3979082f3cab4558b0f48b923128 (patch) | |
tree | 2191f5f19bcf85e31c4662916926bfc9b3fe7d0d /include | |
parent | 7cf40c1cb33bdc78cf2297fa4dc5f249179b39a9 (diff) |
osmesa: add support for postprocess filters
Add new OSMesaPostprocess() function to allow using the gallium
postprocessing filters. This only works for OSMesa with gallium
drivers, not the legacy swrast OSMesa.
Bump OSMESA_MAJOR/MINOR_VERSION numbers to 10.0
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/osmesa.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/include/GL/osmesa.h b/include/GL/osmesa.h index 10c472d49dc..16ee89ae446 100644 --- a/include/GL/osmesa.h +++ b/include/GL/osmesa.h @@ -60,8 +60,8 @@ extern "C" { #include <GL/gl.h> -#define OSMESA_MAJOR_VERSION 6 -#define OSMESA_MINOR_VERSION 5 +#define OSMESA_MAJOR_VERSION 10 +#define OSMESA_MINOR_VERSION 0 #define OSMESA_PATCH_VERSION 0 @@ -270,6 +270,21 @@ OSMesaGetProcAddress( const char *funcName ); GLAPI void GLAPIENTRY OSMesaColorClamp(GLboolean enable); + +/** + * Enable/disable Gallium post-process filters. + * This should be called after a context is created, but before it is + * made current for the first time. After a context has been made + * current, this function has no effect. + * If the enable_value param is zero, the filter is disabled. Otherwise + * the filter is enabled, and the value may control the filter's quality. + * New in Mesa 10.0 + */ +GLAPI void GLAPIENTRY +OSMesaPostprocess(OSMesaContext osmesa, const char *filter, + unsigned enable_value); + + #ifdef __cplusplus } #endif |