aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/graphics/opengl/shader.h')
-rw-r--r--backends/graphics/opengl/shader.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/backends/graphics/opengl/shader.h b/backends/graphics/opengl/shader.h
index 1aee8ed681..f219861244 100644
--- a/backends/graphics/opengl/shader.h
+++ b/backends/graphics/opengl/shader.h
@@ -33,12 +33,6 @@
namespace OpenGL {
-enum {
- kPositionAttribLocation = 0,
- kTexCoordAttribLocation = 1,
- kColorAttribLocation = 2
-};
-
/**
* A generic uniform value interface for a shader program.
*/
@@ -127,6 +121,14 @@ public:
void deactivate();
/**
+ * Return location for attribute with given name.
+ *
+ * @param name Name of the attribute to look up in the shader.
+ * @return The loctaion of -1 if attribute was not found.
+ */
+ GLint getAttributeLocation(const char *name) const;
+
+ /**
* Return location for uniform with given name.
*
* @param name Name of the uniform to look up in the shader.