summaryrefslogtreecommitdiffstats
path: root/vcl/inc/openglgdiimpl.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2015-01-20 14:48:48 +0100
committerLuboš Luňák <l.lunak@collabora.com>2015-01-27 18:42:48 +0100
commitdf290c63451723ae05833cf5f13342d4c93f94cc (patch)
treecd0deacf8103562dd94f6fa14607ce2f8f585e4b /vcl/inc/openglgdiimpl.hxx
parentvcldemo: revert argument parsing breakage. (diff)
downloadcore-df290c63451723ae05833cf5f13342d4c93f94cc.tar.gz
core-df290c63451723ae05833cf5f13342d4c93f94cc.zip
make it possible to easily have variants of glsl programs
Now it's possible to add a preamble to the compiled program, so there can be just one program with #ifdef's inside and the small variants can be selected using #define in the preamble instead of having several almost identical programs. Change-Id: I6c5112313b91b6269ebdecdfc896e0f96209ea2b
Diffstat (limited to 'vcl/inc/openglgdiimpl.hxx')
-rw-r--r--vcl/inc/openglgdiimpl.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx
index 5ae6ab8668b3..77b148d391b3 100644
--- a/vcl/inc/openglgdiimpl.hxx
+++ b/vcl/inc/openglgdiimpl.hxx
@@ -73,7 +73,7 @@ protected:
bool CheckOffscreenTexture();
public:
- bool UseProgram( const OUString& rVertexShader, const OUString& rFragmentShader );
+ bool UseProgram( const OUString& rVertexShader, const OUString& rFragmentShader, const OString& preamble = "" );
bool UseSolid( SalColor nColor, sal_uInt8 nTransparency );
bool UseSolid( SalColor nColor, double fTransparency );
bool UseSolid( SalColor nColor );