コード例 #1
0
 public AssImpFileNode(Func <List <Mesh>, MeshesNode> meshesFactory,
                       Func <List <Material>, MaterialsNode> materialsFactory,
                       Func <List <EmbeddedTexture>, TexturesNode> texturesFactory,
                       Func <Node, SceneNode> sceneNodeFactory,
                       Func <List <Animation>, AnimationsNode> animationsNodeFactory,
                       MaterialProvider materialProvider,
                       SceneContext sceneContext)
 {
     _meshesFactory         = meshesFactory;
     _materialsFactory      = materialsFactory;
     _texturesFactory       = texturesFactory;
     _sceneNodeFactory      = sceneNodeFactory;
     _animationsNodeFactory = animationsNodeFactory;
     _materialProvider      = materialProvider;
     _sceneContext          = sceneContext;
 }
コード例 #2
0
 public MeshNode(Mesh mesh, ModelView modelView, MaterialProvider materialProvider)
 {
     _mesh             = mesh;
     _modelView        = modelView;
     _materialProvider = materialProvider;
 }