示例#1
0
        public CalibrationTestTab()
        {
            InitializeComponent();

            _testMode = TestModes.None;
            _currentPointTest = EmptyPointTest;

            _camImageFirst.TemporaryPoint.IsNullChanged += LeftImageTempPointChanged;
            _camImageSec.TemporaryPoint.IsNullChanged += RightImageTempPointChanged;
        }
示例#2
0
        public NiAlphaProperty(NiFile niFile) : base(niFile)
        {
            flags  = niFile.Reader.ReadInt16();
            cutoff = niFile.Reader.ReadByte();

            // flags into useful values
            alphaBlend           = (flags & 1) == 1;
            sourceBlendMode      = (BlendModes)(BitConverter.GetBytes(flags >> 1)[0] & 15);
            destinationBlendMode = (BlendModes)(BitConverter.GetBytes(flags >> 5)[0] & 15);
            alphaTest            = (flags & 9) == 1;
            alphaTestMode        = (TestModes)(BitConverter.GetBytes(flags >> 10)[0] & 15);
            zWrite = (flags & 13) == 1 ? 1 : 0;
        }
示例#3
0
 private void _butEpiLineTest_Click(object sender, RoutedEventArgs e)
 {
     CurrentTestMode = TestModes.EpiLineTest;
 }