mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-27 18:08:09 +08:00
19 lines
664 B
C#
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();
|
|
}
|
|
}
|
|
} |