aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/glsl/glslsymbols.h
diff options
context:
space:
mode:
authorRhys Weatherley <[email protected]>2010-12-01 15:44:50 +1000
committerRhys Weatherley <[email protected]>2010-12-01 15:44:50 +1000
commite117f04fabde000f4c0aae7cc1a82c58da1ba4c3 (patch)
tree5f359f97cbb0f98892bc6c3265dda0dcb2cbe5de /src/libs/glsl/glslsymbols.h
parentecf4baec663e5c2368056a6a79efa7078719026c (diff)
Show different icons for GLSL variable categories
Attributes, uniforms, varyings, and constants are shown with a distinguished icon that is different from regular variables.
Diffstat (limited to 'src/libs/glsl/glslsymbols.h')
-rw-r--r--src/libs/glsl/glslsymbols.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/glsl/glslsymbols.h b/src/libs/glsl/glslsymbols.h
index 6506c62fa7d..bf610dd3a24 100644
--- a/src/libs/glsl/glslsymbols.h
+++ b/src/libs/glsl/glslsymbols.h
@@ -59,10 +59,14 @@ public:
virtual const Type *type() const;
void setType(const Type *type);
+ int qualifiers() const { return _qualifiers; }
+ void setQualifiers(int qualifiers) { _qualifiers = qualifiers; }
+
virtual Variable *asVariable() { return this; }
private:
const Type *_type;
+ int _qualifiers;
};
class GLSL_EXPORT Block: public Scope