Files
Pal3.Unity/Assets/Scripts/Core/DataLoader/BmpTextureLoader.cs
T
Jiaqi Liu afbe502500 Update license header and fix Encamp command
Update license header and fix Encamp command
2022-02-28 18:28:12 -08:00

19 lines
664 B
C#

// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2022, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Core.DataLoader
{
using DataReader.Bmp;
using UnityEngine;
public class BmpTextureLoader : ITextureLoader
{
public Texture2D LoadTexture(byte[] data, out bool hasAlphaChannel)
{
hasAlphaChannel = false;
return new BmpLoader().LoadBmp(data).ToTexture2D();
}
}
}