public DxtDataHandler(BitmapContent content) { _content = content; WriteData = new OutputOptions.WriteDataDelegate(WriteDataInternal); BeginImage = new OutputOptions.ImageDelegate(BeginImageInternal); }
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); }
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); }
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); }