Exemplo n.º 1
0
        public IEnumerator compress(string filepath, int width = 0, int height = 0)
        {
            var awaiter = new WaitForThread();

            ThreadPool.QueueUserWorkItem(state =>
            {
                ManagedCrunchWrapper.compress(native_instance_, filepath, width, height);
                awaiter.OnDone();
            });
            yield return(awaiter);
        }
Exemplo n.º 2
0
 public int get_dds_filesize()
 {
     return(ManagedCrunchWrapper.get_dds_filesize(native_instance_));
 }
Exemplo n.º 3
0
 public IntPtr decompress(string filepath)
 {
     return(ManagedCrunchWrapper.decompress(native_instance_, filepath));
 }
Exemplo n.º 4
0
 public void delete()
 {
     ManagedCrunchWrapper.delete_CrunchObject(native_instance_);
 }
Exemplo n.º 5
0
 public ManagedCrunchObject()
 {
     native_instance_ = ManagedCrunchWrapper.new_CrunchObject();
 }