X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.cpp;h=6c766fd758161283006de48f0cdbc09666e8d305;hb=bd8816692056230c36504dcccd76c6946dff47b1;hp=0b9ecb54ca9d0aef569b9ebc4fe7477ec8202415;hpb=99719790df8a1215465a68c7b1d87a495bff87eb;p=libs%2Fgl.git diff --git a/source/glsl/syntax.cpp b/source/glsl/syntax.cpp index 0b9ecb54..6c766fd7 100644 --- a/source/glsl/syntax.cpp +++ b/source/glsl/syntax.cpp @@ -74,7 +74,6 @@ Statement::Statement(): Block::Block(): use_braces(false), - anonymous(false), parent(0) { } @@ -82,7 +81,6 @@ Block::Block(const Block &other): Node(other), body(other.body), use_braces(other.use_braces), - anonymous(other.anonymous), parent(0) { } @@ -119,6 +117,21 @@ void VariableReference::visit(NodeVisitor &visitor) } +InterfaceBlockReference::InterfaceBlockReference(): + declaration(0) +{ } + +InterfaceBlockReference::InterfaceBlockReference(const InterfaceBlockReference &other): + name(other.name), + declaration(0) +{ } + +void InterfaceBlockReference::visit(NodeVisitor &visitor) +{ + visitor.visit(*this); +} + + MemberAccess::MemberAccess(): declaration(0) { } @@ -256,11 +269,21 @@ void VariableDeclaration::visit(NodeVisitor &visitor) InterfaceBlock::InterfaceBlock(): - array(false) + array(false), + linked_block(0) { members.use_braces = true; } +InterfaceBlock::InterfaceBlock(const InterfaceBlock &other): + interface(other.interface), + name(other.name), + members(other.members), + instance_name(other.instance_name), + array(other.array), + linked_block(0) +{ } + void InterfaceBlock::visit(NodeVisitor &visitor) { visitor.visit(*this);