Code to support at least translation, rotation and scale:
snode = new MappingNode(); TextureMapping* textureMapping = &(((MappingNode*)snode)->tex_mapping); textureMapping->type = TextureMapping::VECTOR; textureMapping->projection = TextureMapping::FLAT; xml_read_float3(&textureMapping->translation, node, "translation"); xml_read_float3(&textureMapping->rotation, node, "rotation"); xml_read_float3(&textureMapping->scale, node, "scale");