private ContentReader(ContentTypeReaderManager manager, ContentManager contentManager, Stream input) { _manager = manager; _contentManager = contentManager; _input = new BinaryReader(input); _contentReaderList = new List <ContentTypeReader>(); }
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()); }
public override void Initialize(ContentTypeReaderManager manager) { typeReader = manager.GetTypeReader(typeof(T)); }
public virtual void Initialize(ContentTypeReaderManager manager) { }
public override void Initialize(ContentTypeReaderManager manager) { manager.RegisterTypeReader(typeof(Vector3), new Vector3Reader()); }
public override void Initialize(ContentTypeReaderManager manager) { }
public static ContentReader Create(ContentTypeReaderManager manager, ContentManager contentManager, Stream input) { return(Create(manager, contentManager, input, "MEB")); }
public static ContentReader Create(ContentTypeReaderManager manager, ContentManager contentManager, Stream input, string identifier) { input = PrepareStream(input, identifier); return(new ContentReader(manager, contentManager, input)); }
public override void Initialize(ContentTypeReaderManager manager) { manager.RegisterTypeReader <Matrix4>(new MatrixReader()); }
public override void Initialize(ContentTypeReaderManager manager) { manager.RegisterTypeReader <Shader>(new ShaderSourceReader()); manager.RegisterTypeReader <IUniformValue>(new UniformValueReader()); manager.RegisterTypeReader <Color4>(new ColorReader()); }
public override void Initialize(ContentTypeReaderManager manager) { manager.RegisterTypeReader <Texture2D>(new Texture2DReader()); }
public override void Initialize(ContentTypeReaderManager manager) { keyReader = manager.GetTypeReader(typeof(TKey)); valueReader = manager.GetTypeReader(typeof(TValue)); }
public override void Initialize(ContentTypeReaderManager manager) { manager.RegisterTypeReader <Quaternion>(new QuaternionReader()); }
public override void Initialize(ContentTypeReaderManager manager) { manager.RegisterTypeReader <VectorKey>(new VectorKeyReader()); manager.RegisterTypeReader <QuaternionKey>(new QuaternionKeyReader()); }
public override void Initialize(ContentTypeReaderManager manager) { manager.RegisterTypeReader <VertexFormat>(new VertexDeclarationReader()); }