Exemple #1
0
        public void RenderTaskSetCullMode()
        {
            tlog.Debug(tag, $"RenderTaskSetCullMode 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 (Vector4 color = new Vector4(0.3f, 0.5f, 0.4f, 0.6f))
                {
                    try
                    {
                        testingTarget.SetCullMode(true);

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

                testingTarget.Dispose();
            }

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