コード例 #1
0
 public MaterialFactory(GraphicsDevice device, GraphicsResourceTracker disposables)
 {
     _Device      = device;
     _TexFactory  = new TextureFactory(device, disposables);
     _Disposables = disposables;
 }
コード例 #2
0
 public TextureFactory(GraphicsDevice device, GraphicsResourceTracker disposables)
 {
     _Device      = device;
     _Disposables = disposables;
 }
コード例 #3
0
 internal void Reset()
 {
     _Disposables = new GraphicsResourceTracker();
     _MatFactory  = new EffectsFactory(_Device, _Disposables);
     _MeshWriter  = new MeshPrimitiveWriter();
 }