Example #1
0
        public DxtDataHandler(BitmapContent content)
        {
            _content = content;

            WriteData = new OutputOptions.WriteDataDelegate(WriteDataInternal);
            BeginImage = new OutputOptions.ImageDelegate(BeginImageInternal);
        }
        public DxtDataHandler(BitmapContent content)
        {
            _content = content;

            WriteData  = new OutputOptions.WriteDataDelegate(WriteDataInternal);
            BeginImage = new OutputOptions.ImageDelegate(BeginImageInternal);
        }
Example #3
0
 public DxtDataHandler(byte[] result, OutputOptions outputOptions)
 {
     _result    = result;
     WriteData  = new OutputOptions.WriteDataDelegate(WriteDataInternal);
     BeginImage = new OutputOptions.ImageDelegate(BeginImageInternal);
     // Keep the delegate from being re-located or collected by the garbage collector.
     delegateHandleBeginImage = GCHandle.Alloc(BeginImage);
     delegateHandleWriteData  = GCHandle.Alloc(WriteData);
     outputOptions.SetOutputHandler(BeginImage, WriteData);
 }
Example #4
0
        public DxtDataHandler(TextureContent content, Format format)
        {
            _content = content;

            _currentMipLevel = 0;
            _levelWidth = content.Faces[0][0].Width;
            _levelHeight = content.Faces[0][0].Height;
            _format = format;

            WriteData = new OutputOptions.WriteDataDelegate(writeData);
            BeginImage = new OutputOptions.ImageDelegate(beginImage);
        }
Example #5
0
        public DXTDataHandler(TextureContent content, Format format)
        {
            _content = content;

            _currentMipLevel = 0;
            _levelWidth      = content.Faces[0][0].Width;
            _levelHeight     = content.Faces[0][0].Height;
            _format          = format;

            WriteData  = new OutputOptions.WriteDataDelegate(writeData);
            BeginImage = new OutputOptions.ImageDelegate(beginImage);
        }