예제 #1
0
 public SceneNode(Node node, Func <Node, SceneNode> sceneNodeFactory, SceneContext context,
                  Func <Mesh, MeshNode> meshNodeFactory)
 {
     _node             = node;
     _sceneNodeFactory = sceneNodeFactory;
     _context          = context;
     _meshNodeFactory  = meshNodeFactory;
 }
예제 #2
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;
 }
예제 #3
0
 public TextureProvider(TextureSearcher textureSearcher, ITextureLoader <TBitmap> loader, SceneContext sceneContext)
 {
     _textureSearcher = textureSearcher;
     _loader          = loader;
     _sceneContext    = sceneContext;
 }