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

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

            WriteData  = new OutputOptions.WriteDataDelegate(WriteDataInternal);
            BeginImage = new OutputOptions.ImageDelegate(BeginImageInternal);
        }
예제 #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);
 }
예제 #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);
        }
예제 #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);
        }