diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2015-01-20 14:48:48 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2015-01-27 18:42:48 +0100 |
commit | df290c63451723ae05833cf5f13342d4c93f94cc (patch) | |
tree | cd0deacf8103562dd94f6fa14607ce2f8f585e4b /vcl/inc/opengl/program.hxx | |
parent | d3ac5c2d68fe6affc03e200ff985b4da1d4cf2d0 (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.hxx | 2 |
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(); |