Пример #1
0
SoMaterial *
IfReplacer::createMaterialForPath(SoPath *path)
{
    material = NULL;

    // Apply an SoCallbackAction to the path, and create the material
    // after we get to the tail node
    SoCallbackAction cba;
    cba.addPostTailCallback(materialTailCB, this);
    cba.apply(path);

    ASSERT(material != NULL);

    return material;
}