protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(DrawTexture).TakeScreenshot(); FrameGameSystem.Draw(DrawTexture).TakeScreenshot(); FrameGameSystem.Draw(DrawTexture).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(DrawTest1).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(DrawTest1).TakeScreenshot(); FrameGameSystem.Draw(DrawTest2).TakeScreenshot(); FrameGameSystem.Draw(DrawTest2Bis).TakeScreenshot(); FrameGameSystem.Draw(DrawTest3).TakeScreenshot(); FrameGameSystem.Draw(DrawTest4).TakeScreenshot(); FrameGameSystem.Draw(DrawTest5).TakeScreenshot(); FrameGameSystem.Draw(DrawTest6).TakeScreenshot(); FrameGameSystem.Draw(DrawTest7).TakeScreenshot(); FrameGameSystem.Draw(DrawTest8).TakeScreenshot(); FrameGameSystem.Draw(DrawTest9).TakeScreenshot(); FrameGameSystem.Draw(DrawTest10).TakeScreenshot(); if (Platform.IsWindowsDesktop) { FrameGameSystem.Draw(12, SelectionTest1); FrameGameSystem.Draw(13, SelectionTest2); FrameGameSystem.Draw(14, SelectionTest3); FrameGameSystem.Draw(15, SelectionTest4); FrameGameSystem.Draw(16, SelectionTest5); FrameGameSystem.Draw(17, SelectionTest6); FrameGameSystem.Draw(18, SelectionTest7); FrameGameSystem.Draw(19, SelectionTest8); FrameGameSystem.Draw(21, SelectionTest9); FrameGameSystem.Draw(22, SelectionGraphicTest1).TakeScreenshot(22); FrameGameSystem.Draw(23, SelectionGraphicTest2).TakeScreenshot(23); FrameGameSystem.Draw(24, SelectionGraphicTest3).TakeScreenshot(24); } }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(() => UpdateSprites(0.6f)).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(() => SetTimeAndDrawScene(0)).TakeScreenshot(); FrameGameSystem.Draw(() => SetTimeAndDrawScene(0.27f)).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(ToggleSnapping).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(() => SetTimeAndDrawPrimitives(0)).TakeScreenshot(); FrameGameSystem.Draw(() => SetTimeAndDrawPrimitives(1.7f)).TakeScreenshot(); }
private void RegisterTestsForContent(UIElement content) { FrameGameSystem.Draw(() => SetContentTo(content)); FrameGameSystem.Draw(ScrollWithoutSnapping).TakeScreenshot(); FrameGameSystem.Draw(PerformManualUpdates).TakeScreenshot(); FrameGameSystem.Draw(ScrollWithSnapping).TakeScreenshot(); FrameGameSystem.Draw(PerformManualUpdates).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(() => ++ renderTargetToDisplayIndex).TakeScreenshot(); FrameGameSystem.Draw(() => ++ renderTargetToDisplayIndex).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(() => SetRotationAndDraw(0)).TakeScreenshot(); FrameGameSystem.Draw(() => SetRotationAndDraw(3.1415f)).TakeScreenshot(); FrameGameSystem.Draw(() => SetRotationAndDraw(4)).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(TurnBorderElement).TakeScreenshot(); FrameGameSystem.Draw(FlattenBorderElement).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.Draw(DrawSmallerElement).TakeScreenshot(); FrameGameSystem.Draw(DrawRealSizeElement).TakeScreenshot(); FrameGameSystem.Draw(DrawBiggerElement).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(DisplayNextMipmapLevel).TakeScreenshot(); FrameGameSystem.Draw(DisplayNextMipmapLevel).TakeScreenshot(); FrameGameSystem.Draw(DisplayNextMipmapLevel).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.Draw(() => SpriteAnimation.Stop(spriteComponent)).TakeScreenshot(); FrameGameSystem.Update(() => SetFrameAndUpdateBall(20, 15)).TakeScreenshot(); FrameGameSystem.Update(() => SetSpriteImage(ballSprite2)).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(() => SetVirtualResolutionAndDraw(new Vector2(1, 1))).TakeScreenshot(); FrameGameSystem.Draw(() => SetVirtualResolutionAndDraw(new Vector2(1.5f, 1.5f))).TakeScreenshot(); FrameGameSystem.Draw(() => SetVirtualResolutionAndDraw(new Vector2(0.5f, 0.5f))).TakeScreenshot(); FrameGameSystem.Draw(() => SetVirtualResolutionAndDraw(new Vector2(1.75f, 1.25f))).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(() => ChangeImageColor(Color.Brown)).TakeScreenshot(); FrameGameSystem.Draw(() => ChangeImageColor(Color.Blue)).TakeScreenshot(); FrameGameSystem.Draw(() => ChangeImageColor(Color.Red)).TakeScreenshot(); FrameGameSystem.Draw(() => ChangeImageColor(Color.Lime)).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; // Since click are evaluated before measuring/arranging/drawing, we need to render the UI at least once (see UIRenderFeature.Draw) FrameGameSystem.Draw(() => { }).TakeScreenshot(); FrameGameSystem.Draw(Click).TakeScreenshot(); FrameGameSystem.Draw(Click).TakeScreenshot(); FrameGameSystem.Draw(Click).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.TakeScreenshot(5); // skip some frames in order to be sure that the picking will work FrameGameSystem.Draw(Draw1).TakeScreenshot(); FrameGameSystem.Draw(Draw2).TakeScreenshot(); FrameGameSystem.Draw(Draw3).TakeScreenshot(); FrameGameSystem.Draw(Draw4).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(() => ChangeMaterial(1)).TakeScreenshot(); FrameGameSystem.Draw(() => ChangeMaterial(1)).TakeScreenshot(); FrameGameSystem.Draw(() => ChangeMaterial(1)).Draw(() => ChangeModel(1)).TakeScreenshot(); FrameGameSystem.Draw(() => ChangeMaterial(1)).Draw(() => ChangeModel(-1)).TakeScreenshot(); FrameGameSystem.Draw(() => ChangeMaterial(1)).TakeScreenshot(); FrameGameSystem.Draw(() => ChangeMaterial(1)).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.Draw(0, UpdateTextBlockText).TakeScreenshot(0); FrameGameSystem.Draw(1, Draw1).TakeScreenshot(1); FrameGameSystem.Draw(2, Draw2).TakeScreenshot(2); FrameGameSystem.Draw(3, () => SetElement2Matrix(Matrix.Translation(0, 0, -132))).Draw(4, Draw3).TakeScreenshot(4); FrameGameSystem.Draw(5, () => SetElement2Matrix(Matrix.Translation(0, 0, 204))).Draw(6, Draw4).TakeScreenshot(6); FrameGameSystem.Draw(7, () => SetElement2Matrix(Matrix.RotationYawPitchRoll(-0.1f, -0.2f, 0.3f))).Draw(8, Draw5).TakeScreenshot(8); FrameGameSystem.Draw(Draw6).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.Draw(Draw0).TakeScreenshot(); FrameGameSystem.Draw(Draw1).TakeScreenshot(); FrameGameSystem.Draw(Draw2).TakeScreenshot(); FrameGameSystem.Draw(Draw3).TakeScreenshot(); FrameGameSystem.Draw(Draw4).TakeScreenshot(); FrameGameSystem.Draw(Draw5).TakeScreenshot(); FrameGameSystem.Draw(Draw6).TakeScreenshot(); FrameGameSystem.Draw(Draw7).TakeScreenshot(); FrameGameSystem.Draw(Draw8).TakeScreenshot(); FrameGameSystem.Draw(Draw9).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(Test1); FrameGameSystem.Draw(Test2); FrameGameSystem.Draw(Test3); FrameGameSystem.Draw(Test4); FrameGameSystem.Draw(Test5); FrameGameSystem.Draw(Test6); FrameGameSystem.Draw(Draw1).TakeScreenshot(); FrameGameSystem.Draw(Draw2).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.Draw(DrawTest1).TakeScreenshot(); FrameGameSystem.Draw(DrawTest2).TakeScreenshot(); FrameGameSystem.Draw(DrawTest3).TakeScreenshot(); FrameGameSystem.Draw(DrawTest4).TakeScreenshot(); FrameGameSystem.Draw(DrawTest5).TakeScreenshot(); FrameGameSystem.Draw(DrawTest6).TakeScreenshot(); FrameGameSystem.Draw(DrawTest7).TakeScreenshot(); FrameGameSystem.Draw(DrawTest8).TakeScreenshot(); FrameGameSystem.Draw(DrawTest9).TakeScreenshot(); FrameGameSystem.Draw(DrawTest10).TakeScreenshot(); FrameGameSystem.Draw(DrawTest11).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.DrawOrder = -1; FrameGameSystem.TakeScreenshot(); FrameGameSystem.Draw(1, Test1); FrameGameSystem.Draw(2, PrepareTest2); FrameGameSystem.Draw(3, Test2); FrameGameSystem.Draw(4, PrepareTest3); FrameGameSystem.Draw(5, Test3); FrameGameSystem.Draw(6, PrepareTest4); FrameGameSystem.Draw(7, Test4); FrameGameSystem.Draw(8, PrepareTest5); FrameGameSystem.Draw(9, Test5); FrameGameSystem.Draw(10, PrepareTest6); FrameGameSystem.Draw(11, Test6); FrameGameSystem.Draw(12, Draw1).TakeScreenshot(12); FrameGameSystem.Draw(13, Draw2).TakeScreenshot(13); }
protected override void RegisterTests() { base.RegisterTests(); // Initial frame (no anim FrameGameSystem.Draw(() => { }).TakeScreenshot(); FrameGameSystem.Draw(() => { // T = 0 var playingAnimation = knight.Get <AnimationComponent>().Play("Run"); playingAnimation.Enabled = false; }).TakeScreenshot(); FrameGameSystem.Draw(() => { // T = 0.5sec var playingAnimation = knight.Get <AnimationComponent>().PlayingAnimations.First(); playingAnimation.CurrentTime = TimeSpan.FromSeconds(0.5f); }).TakeScreenshot(); FrameGameSystem.Draw(() => { // Blend with Idle (both weighted 1.0f) var playingAnimation = knight.Get <AnimationComponent>().Blend("Idle", 1.0f, TimeSpan.Zero); playingAnimation.Enabled = false; }).TakeScreenshot(); FrameGameSystem.Draw(() => { // Update the model itself knight.Get <AnimationComponent>().Play("ChangeModel1"); }).TakeScreenshot(); FrameGameSystem.Draw(() => { // Update the model itself (blend it at 2 vs 1 to force it to be active directly) var playingAnimation = knight.Get <AnimationComponent>().Blend("ChangeModel2", 2.0f, TimeSpan.Zero); playingAnimation.Enabled = false; }).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(DrawCustomEffect).TakeScreenshot(); }
protected override void RegisterTests() { base.RegisterTests(); FrameGameSystem.Draw(DrawSpriteFont).TakeScreenshot(); }