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)"); }
public void RenderTaskFinishedSignal() { tlog.Debug(tag, $"RenderTaskFinishedSignal 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."); try { testingTarget.FinishedSignal(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"RenderTaskFinishedSignal END (OK)"); }
public void RenderTaskSetRefreshRate() { tlog.Debug(tag, $"RenderTaskSetRefreshRate 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.SetRefreshRate(100); var result = testingTarget.GetRefreshRate(); tlog.Debug(tag, "RefreshRate : " + result); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } testingTarget.Dispose(); } tlog.Debug(tag, $"RenderTaskSetRefreshRate END (OK)"); }
public void RenderTaskSetScreenToFrameBufferMappingView() { tlog.Debug(tag, $"RenderTaskSetScreenToFrameBufferMappingView 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()) { try { testingTarget.SetScreenToFrameBufferMappingView(view); var result = testingTarget.GetScreenToFrameBufferMappingView(); tlog.Debug(tag, "ScreenToFrameBufferMappingView : " + result); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } testingTarget.Dispose(); } tlog.Debug(tag, $"RenderTaskSetScreenToFrameBufferMappingView END (OK)"); }
public void RenderTaskSetClearColor() { tlog.Debug(tag, $"RenderTaskSetClearColor START"); using (Animatable ani = new Animatable()) { ani.RegisterProperty("ArrowImage", new PropertyValue(arrowImage), Tizen.NUI.PropertyAccessMode.ReadWrite); 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."); try { testingTarget.SetClearColor(new Vector4(1.0f, 1.0f, 1.0f, 1.0f)); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"RenderTaskSetClearColor END (OK)"); }
public void RenderTaskSetFrameBuffer() { tlog.Debug(tag, $"RenderTaskSetFrameBuffer START"); using (View view = new View() { Size = new Size(100, 50) }) { var testingTarget = new RenderTask(view.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.SetFrameBuffer(buffer); var result = testingTarget.GetFrameBuffer(); tlog.Debug(tag, "FrameBuffer : " + result); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } } testingTarget.Dispose(); } tlog.Debug(tag, $"RenderTaskSetFrameBuffer END (OK)"); }
internal void SaveProjectIconEnd() { if (_savedTask) { _savedTask.Dispose(); _savedTask = null; } FlaxEngine.Object.Destroy(ref _savedBackBuffer); }
public void RenderTaskConstructor() { tlog.Debug(tag, $"RenderTaskConstructor START"); var testingTarget = new RenderTask(); Assert.IsNotNull(testingTarget, "Can't create success object RenderTask."); Assert.IsInstanceOf <RenderTask>(testingTarget, "Should return RenderTask instance."); testingTarget.Dispose(); tlog.Debug(tag, $"RenderTaskConstructor END (OK)"); }
public void RenderTaskRequiresSync() { tlog.Debug(tag, $"RenderTaskRequiresSync 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."); testingTarget.RequiresSync = true; tlog.Debug(tag, "RequiresSync :" + testingTarget.RequiresSync); testingTarget.Dispose(); } tlog.Debug(tag, $"RenderTaskRequiresSync END (OK)"); }
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)"); }
public void RenderTaskClearColor() { tlog.Debug(tag, $"RenderTaskClearColor 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.8f, 1.0f)) { testingTarget.ClearColor = color; tlog.Debug(tag, "ClearColor :" + testingTarget.ClearColor); } testingTarget.Dispose(); } tlog.Debug(tag, $"RenderTaskClearColor END (OK)"); }
public void RenderTaskViewportSize() { tlog.Debug(tag, $"RenderTaskViewportSize 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 (Vector2 size = new Vector2(100, 150)) { testingTarget.ViewportSize = size; tlog.Debug(tag, "ViewportSize :" + testingTarget.ViewportSize); } testingTarget.Dispose(); } tlog.Debug(tag, $"RenderTaskViewportSize END (OK)"); }