aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorJohannes Schickel2016-03-04 15:08:10 +0100
committerJohannes Schickel2016-03-16 20:29:31 +0100
commit2b3340474e6b1c7bbf12923f86c39f1d4d9b245e (patch)
treef804c1c7bd95051e762dfe9376d705d888a45274 /backends/graphics
parent39100b613272523c2e36be213cc827857a08f824 (diff)
downloadscummvm-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.h6
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.