(Unity): implemented Texture2D images.

This commit is contained in:
morkt
2017-04-14 09:43:46 +04:00
parent a42b34fbec
commit 0cb1783363
5 changed files with 238 additions and 84 deletions

View File

@@ -39,6 +39,7 @@ namespace GameRes.Formats.Unity
IBinaryStream m_input;
int m_format;
public Stream Source { get { return m_input.AsStream; } }
public int Format { get { return m_format; } }
public long Position {
get { return m_input.Position; }
@@ -59,6 +60,11 @@ namespace GameRes.Formats.Unity
public Func<long> ReadInt64;
public Func<long> ReadId;
public void SetupReaders (Asset asset)
{
SetupReaders (asset.Format, asset.IsLittleEndian);
}
/// <summary>
/// Setup reader endianness accordingly.
/// </summary>