summaryrefslogtreecommitdiff
path: root/vcl/inc/opengl/program.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/opengl/program.hxx
parentd3ac5c2d68fe6affc03e200ff985b4da1d4cf2d0 (diff)
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/opengl/program.hxx')
-rw-r--r--vcl/inc/opengl/program.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/opengl/program.hxx b/vcl/inc/opengl/program.hxx
index f904984ff362..8b42dd486fc4 100644
--- a/vcl/inc/opengl/program.hxx
+++ b/vcl/inc/opengl/program.hxx
@@ -43,7 +43,7 @@ public:
OpenGLProgram();
~OpenGLProgram();
- bool Load( const OUString& rVertexShader, const OUString& rFragmentShader );
+ bool Load( const OUString& rVertexShader, const OUString& rFragmentShader, const OString& preamble = "" );
bool Use();
bool Clean();