コード例 #1
0
ファイル: TSModelView.cs プロジェクト: wonrst/TizenFX
        public void ModelViewConstructorWith3Urls()
        {
            tlog.Debug(tag, $"ModelViewConstructorWith3Urls START");

            var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);

            Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
            Assert.IsInstanceOf <ModelView>(testingTarget, "Should be an instance of ModelView type.");

            testingTarget.Dispose();

            tlog.Debug(tag, $"ModelViewConstructorWith3Urls END (OK)");
        }
コード例 #2
0
ファイル: TSModelView.cs プロジェクト: wonrst/TizenFX
        public void ModelViewLightPosition()
        {
            tlog.Debug(tag, $"ModelViewLightPosition START");

            var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);

            Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
            Assert.IsInstanceOf <ModelView>(testingTarget, "Should be an instance of ModelView type.");

            tlog.Debug(tag, testingTarget.LightPosition.ToString());
            testingTarget.LightPosition = new Vector3(0.3f, 0.1f, 0.8f);
            tlog.Debug(tag, testingTarget.LightPosition.ToString());

            testingTarget.Dispose();
            tlog.Debug(tag, $"ModelViewLightPosition END (OK)");
        }
コード例 #3
0
ファイル: TSModelView.cs プロジェクト: wonrst/TizenFX
        public void ModelViewIlluminationType()
        {
            tlog.Debug(tag, $"ModelViewIlluminationType START");

            var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);

            Assert.IsNotNull(testingTarget, "Can't create success object ModelView");
            Assert.IsInstanceOf <ModelView>(testingTarget, "Should be an instance of ModelView type.");

            tlog.Debug(tag, testingTarget.IlluminationType.ToString());
            testingTarget.IlluminationType = 2;
            tlog.Debug(tag, testingTarget.IlluminationType.ToString());

            testingTarget.Dispose();
            tlog.Debug(tag, $"ModelViewIlluminationType END (OK)");
        }