private static extern int tWriteTexture( IntPtr dst_tex, int dst_width, int dst_height, tTextureFormat dst_fmt, IntPtr src, int src_num, tDataFormat src_fmt);
public static bool Write(Texture2D dst_tex, IntPtr src, int src_num, tDataFormat src_fmt) { return tWriteTexture( dst_tex.GetNativeTexturePtr(), dst_tex.width, dst_tex.height, GetTextureFormat(dst_tex), src, src_num, src_fmt) != 0; }
public static bool Write(Texture2D dst_tex, IntPtr src, int src_num, tDataFormat src_fmt) { return(tWriteTexture( dst_tex.GetNativeTexturePtr(), dst_tex.width, dst_tex.height, GetTextureFormat(dst_tex), src, src_num, src_fmt) != 0); }
private static extern int tWriteTexture( IntPtr dst_tex, int dst_width, int dst_height, tTextureFormat dst_fmt, IntPtr src, int src_num, tDataFormat src_fmt);