Files
PixelJumperHero/Library/PackageCache/com.unity.2d.psdimporter@5.0.1/Editor/PSDPlugin/PDNWrapper/Surface.cs
2021-06-13 10:28:03 +02:00

30 lines
614 B
C#

using Unity.Collections;
using UnityEngine;
namespace PDNWrapper
{
internal class Surface
{
NativeArray<Color32> m_Color;
public Surface(int w, int h)
{
width = w;
height = h;
m_Color = new NativeArray<Color32>(width * height, Allocator.Persistent);
}
public void Dispose()
{
m_Color.Dispose();
}
public NativeArray<Color32> color
{
get { return m_Color; }
}
public int width { get; private set; }
public int height { get; private set; }
}
}