Exemple #1
0
        public void RenderTaskSetScreenToFrameBufferFunction()
        {
            tlog.Debug(tag, $"RenderTaskSetScreenToFrameBufferFunction 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 (FrameBuffer buffer = new FrameBuffer(1, 2, 3))
                {
                    try
                    {
                        testingTarget.SetScreenToFrameBufferFunction(new SWIGTYPE_p_f_r_Dali__Vector2__bool(buffer.SwigCPtr.Handle));

                        var result = testingTarget.GetScreenToFrameBufferFunction();
                        tlog.Debug(tag, "ScreenToFrameBufferFunction : " + result);
                    }
                    catch (Exception e)
                    {
                        tlog.Debug(tag, e.Message.ToString());
                        Assert.Fail("Caught Exception :  Failed!");
                    }
                }

                testingTarget.Dispose();
            }

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