コード例 #1
0
ファイル: DxtTexLibTest.cs プロジェクト: rock6tsai/paradox
        public void DecompressTest(string file)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.DecompressTest(image, library);

            image.Dispose();
        }
コード例 #2
0
ファイル: FITexLibTest.cs プロジェクト: vol16bit/xenko
        public void CorrectGammaTest(string file)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.CorrectGammaTest(image, library);

            image.Dispose();
        }
コード例 #3
0
ファイル: DxtTexLibTest.cs プロジェクト: rock6tsai/paradox
        public void PreMultiplyAlphaTest(String file)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.PreMultiplyAlphaTest(image, library);

            image.Dispose();
        }
コード例 #4
0
ファイル: DxtTexLibTest.cs プロジェクト: rock6tsai/paradox
        public void GenerateMipMapTest(string file, Filter.MipMapGeneration filter)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.GenerateMipMapTest(image, library, filter);

            image.Dispose();
        }
コード例 #5
0
ファイル: DxtTexLibTest.cs プロジェクト: rock6tsai/paradox
        public void CompressTest(string file, Paradox.Graphics.PixelFormat format)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.CompressTest(image, library, format);

            image.Dispose();
        }
コード例 #6
0
ファイル: FITexLibTest.cs プロジェクト: vol16bit/xenko
        public void FlipTest(string file, Orientation orientation)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.FlipTest(image, library, orientation);

            image.Dispose();
        }
コード例 #7
0
        public void StartLibraryTest(string file)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.StartLibraryTest(image, library);

            image.Dispose();
        }
コード例 #8
0
        public void CompressTest(string file, Xenko.Graphics.PixelFormat format)
        {
            TexImage image = LoadInput(file);

            TexLibraryTest.CompressTest(image, library, format);

            image.Dispose();
        }
コード例 #9
0
ファイル: PvrttTexLibTest.cs プロジェクト: yongweisun/paradox
        public void ExportMinMipMapTest(String file, int minMipMapSize)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.ExportMinMipMapTest(image, library, minMipMapSize);

            image.Dispose();
        }
コード例 #10
0
ファイル: PvrttTexLibTest.cs プロジェクト: yongweisun/paradox
        public void SwitchChannelsTest(string file)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.SwitchChannelsTest(image, library);

            image.Dispose();
        }
コード例 #11
0
ファイル: PvrttTexLibTest.cs プロジェクト: yongweisun/paradox
        public void ExportTest(String file)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.ExportTest(image, library, file);

            image.Dispose();
        }
コード例 #12
0
ファイル: PvrttTexLibTest.cs プロジェクト: yongweisun/paradox
        public void FactorRescaleTest(string file, Filter.Rescaling filter)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.FactorRescaleTest(image, library, filter);

            image.Dispose();
        }
コード例 #13
0
ファイル: PvrttTexLibTest.cs プロジェクト: yongweisun/paradox
        public void GenerateNormalMapTest(string file, string outFile)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.GenerateNormalMapTest(image, library);

            image.Dispose();
        }
コード例 #14
0
ファイル: AtitcTexLibraryTest.cs プロジェクト: tiomke/paradox
        public void DecompressTest(string file)
        {
            TexImage image = LoadInput(file);

            TexLibraryTest.DecompressTest(image, library);

            image.Dispose();
        }
コード例 #15
0
ファイル: AtitcTexLibraryTest.cs プロジェクト: rohitshe/Code
        public void StartLibraryTest(string file)
        {
            TexImage image = LoadInput(file);

            TexLibraryTest.StartLibraryTest(image, library);

            AtitcTextureLibraryData libraryData = (AtitcTextureLibraryData)image.LibraryData[library];

            Assert.IsTrue(libraryData.Textures.Length == image.SubImageArray.Length);

            image.Dispose();
        }
コード例 #16
0
ファイル: PvrttTexLibTest.cs プロジェクト: rock6tsai/paradox
        public void StartLibraryTest(string file)
        {
            TexImage image = new TexImage();

            var dxtLib = new DxtTexLib();

            dxtLib.Execute(image, new LoadingRequest(TestTools.InputTestFolder + file, false));
            image.CurrentLibrary = dxtLib;
            dxtLib.EndLibrary(image);

            TexLibraryTest.StartLibraryTest(image, library);

            image.Dispose();
        }
コード例 #17
0
ファイル: FITexLibTest.cs プロジェクト: vol16bit/xenko
        public void FixedRescale3DTest()
        {
            DxtTexLib lib   = new DxtTexLib();
            TexImage  image = new TexImage();

            lib.Execute(image, new LoadingRequest(Module.PathToInputImages + "Texture3D_WMipMaps_BGRA8888.dds", false));
            image.Name = "Texture3D_WMipMaps_BGRA8888.dds";
            lib.EndLibrary(image);
            library.StartLibrary(image);
            image.CurrentLibrary = library;
            TexLibraryTest.FactorRescaleTest(image, library, Filter.Rescaling.Lanczos3);

            image.Dispose();
        }
コード例 #18
0
ファイル: DxtTexLibTest.cs プロジェクト: vol16bit/xenko
        public void StartLibraryTest(string file)
        {
            TexImage image = TestTools.Load(library, file);

            TexLibraryTest.StartLibraryTest(image, library);

            DxtTextureLibraryData libraryData = (DxtTextureLibraryData)image.LibraryData[library];

            Assert.IsTrue(libraryData.DxtImages.Length == image.SubImageArray.Length);
            for (int i = 0; i < libraryData.DxtImages.Length; ++i) // Checking on features
            {
                Assert.IsTrue(libraryData.DxtImages[i].RowPitch == image.SubImageArray[i].RowPitch);
            }

            image.CurrentLibrary = null; // If we don't set the CurrentLibrary to null, the Dispose() method of TexImage will try calling the EndMethod, which won't work if no operation has been made on the image since the StartLibrary call. This case can't happen.

            image.Dispose();
        }