]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.cpp
Recognize swizzles in GLSL
[libs/gl.git] / source / glsl / syntax.cpp
index cb77419763645be5987842b9bd7d654eb30e13c5..85d805d1b67aeea72ee41bcec1855222732dc5ef 100644 (file)
@@ -161,6 +161,18 @@ void MemberAccess::visit(NodeVisitor &visitor)
 }
 
 
+Swizzle::Swizzle():
+       count(0)
+{
+       fill(components, components+4, 0);
+}
+
+void Swizzle::visit(NodeVisitor &visitor)
+{
+       visitor.visit(*this);
+}
+
+
 void UnaryExpression::visit(NodeVisitor &visitor)
 {
        visitor.visit(*this);