diff options
author | Johannes Schickel | 2016-03-04 15:08:10 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:31 +0100 |
commit | 2b3340474e6b1c7bbf12923f86c39f1d4d9b245e (patch) | |
tree | f804c1c7bd95051e762dfe9376d705d888a45274 /backends/graphics | |
parent | 39100b613272523c2e36be213cc827857a08f824 (diff) | |
download | scummvm-rg350-2b3340474e6b1c7bbf12923f86c39f1d4d9b245e.tar.gz scummvm-rg350-2b3340474e6b1c7bbf12923f86c39f1d4d9b245e.tar.bz2 scummvm-rg350-2b3340474e6b1c7bbf12923f86c39f1d4d9b245e.zip |
OPENGL: Introduce convenience wrappers for get*Location in Shader.
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/opengl/shader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/graphics/opengl/shader.h b/backends/graphics/opengl/shader.h index f219861244..ec1e516d14 100644 --- a/backends/graphics/opengl/shader.h +++ b/backends/graphics/opengl/shader.h @@ -127,6 +127,9 @@ public: * @return The loctaion of -1 if attribute was not found. */ GLint getAttributeLocation(const char *name) const; + GLint getAttributeLocation(const Common::String &name) const { + return getAttributeLocation(name.c_str()); + } /** * Return location for uniform with given name. @@ -135,6 +138,9 @@ public: * @return The location or -1 if uniform was not found. */ GLint getUniformLocation(const char *name) const; + GLint getUniformLocation(const Common::String &name) const { + return getUniformLocation(name.c_str()); + } /** * Bind value to uniform. |