예제 #1
0
        public MainWindow()
        {
            InitializeComponent();
            files = new ObservableCollection <FDFile>();

            lvFiles.ItemsSource = files;
            exePath             = Assembly.GetEntryAssembly().Location;
            exePath             = exePath.Remove(exePath.Length - 17, 17);

            FileType[] types = new FileType[3];

            types[(int)FileType.Unknown] = FileType.Unknown;
            types[(int)FileType.Image]   = FileType.Image;
            types[(int)FileType.Model]   = FileType.Model;


            TextureChannel[] channels = new TextureChannel[(int)TextureChannel.NUM];

            for (int i = 0; i < (int)TextureChannel.NUM; i++)
            {
                channels[i] = (TextureChannel)i;
            }

            TextureChannelType[] channelTypes = new TextureChannelType[(int)TextureChannelType.NUM];

            for (int i = 0; i < (int)TextureChannelType.NUM; i++)
            {
                channelTypes[i] = (TextureChannelType)i;
            }

            cbType.ItemsSource          = types;
            cbImageChannels.ItemsSource = channels;
            cbImageSizes.ItemsSource    = channelTypes;

            imageOptionsGroup.Visibility = Visibility.Hidden;
            modelOptionsGroup.Visibility = Visibility.Hidden;

            tvDstPath.Text = exePath + "ouput\\";
            Directory.CreateDirectory("output");
        }
예제 #2
0
 public FDTextureFile(string path) : base(path, FileType.Image)
 {
     channel     = TextureChannel.RGBA;
     channelType = TextureChannelType.Uint8;
 }
예제 #3
0
 public FDTextureFile(FDFile file) : base(file, FileType.Image)
 {
     channel     = TextureChannel.RGBA;
     channelType = TextureChannelType.Uint8;
 }