Exemple #1
0
        public void RenderTaskViewportToLocal()
        {
            tlog.Debug(tag, $"RenderTaskViewportToLocal START");

            using (Animatable ani = new Animatable())
            {
                var testingTarget = new RenderTask(ani.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "Can't create success object RenderTask.");
                Assert.IsInstanceOf <RenderTask>(testingTarget, "Should return RenderTask instance.");

                using (View view = new View())
                {
                    var result = testingTarget.ViewportToLocal(view, 0.3f, 0.5f, out float localX, out float localY);
                    tlog.Debug(tag, "WorldToViewport : " + result);
                }

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"RenderTaskViewportToLocal END (OK)");
        }