public ImageFrame(ImageLibrary parentLib, int image, Texture2D tex, float offsetX, float offsetY, string name, KeyValuePair <short, short> palletLink, Texture2D localPalletTex = null) { mParentLib = parentLib; m_Image = image; mLocalPalletTex = localPalletTex; mLoaclPalletTexLink = palletLink; SetTexture2D(tex, offsetX, offsetY, name); }
public ImageFrame(ImageLibrary parentLib, int image, int width, int height, float offsetX, float offsetY, string name, KeyValuePair <short, short> palletLink, byte[] indexs, byte[] pallet) { mParentLib = parentLib; m_Image = image; mLocalPalletTex = null; mLoaclPalletTexLink = palletLink; m_TempData = new ImageFrameData(); m_TempData.data = indexs; m_TempData.pallet = pallet; m_TempData.width = width; m_TempData.height = height; m_TempData.offX = offsetX; m_TempData.offY = offsetY; m_TempData.name = name; }