internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line = parser.Line; if (id == "image") { Image = parser.ParseSFImageValue(); } else if (id == "repeatS") { RepeatS = parser.ParseBoolValue(); } else if (id == "repeatT") { RepeatT = parser.ParseBoolValue(); } else if (id == "textureProperties") { X3DNode node = parser.ParseSFNodeValue(); if (node != null) { TextureProperties = node as IX3DTexturePropertiesNode; if (TextureProperties == null) { parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } } else { return(false); } return(true); }
internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { int line=parser.Line; if(id=="image") Image=parser.ParseSFImageValue(); else if(id=="repeatS") RepeatS=parser.ParseBoolValue(); else if(id=="repeatT") RepeatT=parser.ParseBoolValue(); else if(id=="textureProperties") { X3DNode node=parser.ParseSFNodeValue(); if(node!=null) { TextureProperties=node as IX3DTexturePropertiesNode; if(TextureProperties==null) parser.ErrorParsingNode(VRMLReaderError.UnexpectedNodeType, this, id, node, line); } } else return false; return true; }