Beispiel #1
0
 private ContentReader(ContentTypeReaderManager manager, ContentManager contentManager, Stream input)
 {
     _manager           = manager;
     _contentManager    = contentManager;
     _input             = new BinaryReader(input);
     _contentReaderList = new List <ContentTypeReader>();
 }
Beispiel #2
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     manager.RegisterTypeReader <BoundingSphere>(new BoundingSphereReader());
     manager.RegisterTypeReader <Matrix4>(new MatrixReader());
     manager.RegisterTypeReader <VertexBuffer>(new VertexBufferReader());
     manager.RegisterTypeReader <IndexBuffer>(new IndexBufferReader());
     manager.RegisterTypeReader <Material>(new MaterialReader());
     manager.RegisterTypeReader <BoneAnimationClip>(new BoneAnimationClipReader());
 }
Beispiel #3
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     typeReader = manager.GetTypeReader(typeof(T));
 }
Beispiel #4
0
 public virtual void Initialize(ContentTypeReaderManager manager)
 {
 }
 public override void Initialize(ContentTypeReaderManager manager)
 {
     manager.RegisterTypeReader(typeof(Vector3), new Vector3Reader());
 }
Beispiel #6
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
 }
Beispiel #7
0
 public static ContentReader Create(ContentTypeReaderManager manager, ContentManager contentManager, Stream input)
 {
     return(Create(manager, contentManager, input, "MEB"));
 }
Beispiel #8
0
 public static ContentReader Create(ContentTypeReaderManager manager, ContentManager contentManager, Stream input, string identifier)
 {
     input = PrepareStream(input, identifier);
     return(new ContentReader(manager, contentManager, input));
 }
Beispiel #9
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     manager.RegisterTypeReader <Matrix4>(new MatrixReader());
 }
Beispiel #10
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     manager.RegisterTypeReader <Shader>(new ShaderSourceReader());
     manager.RegisterTypeReader <IUniformValue>(new UniformValueReader());
     manager.RegisterTypeReader <Color4>(new ColorReader());
 }
Beispiel #11
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     manager.RegisterTypeReader <Texture2D>(new Texture2DReader());
 }
Beispiel #12
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     keyReader   = manager.GetTypeReader(typeof(TKey));
     valueReader = manager.GetTypeReader(typeof(TValue));
 }
Beispiel #13
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     manager.RegisterTypeReader <Quaternion>(new QuaternionReader());
 }
Beispiel #14
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     manager.RegisterTypeReader <VectorKey>(new VectorKeyReader());
     manager.RegisterTypeReader <QuaternionKey>(new QuaternionKeyReader());
 }
Beispiel #15
0
 public override void Initialize(ContentTypeReaderManager manager)
 {
     manager.RegisterTypeReader <VertexFormat>(new VertexDeclarationReader());
 }