SimpleApplicationTests.cs 704 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. using Urho;
  8. using Urho.Shapes;
  9. namespace Playgrounds.Console
  10. {
  11. public class SimpleApplicationTests : SimpleApplication
  12. {
  13. public SimpleApplicationTests(ApplicationOptions options) : base(options) { }
  14. public static void RunApp()
  15. {
  16. var app = new SimpleApplicationTests(new ApplicationOptions());
  17. app.Run();
  18. }
  19. protected override void Start()
  20. {
  21. base.Start();
  22. var child = RootNode.CreateChild();
  23. child.Rotation = new Quaternion(0, 45, 0);
  24. var box = child.CreateComponent<Box>();
  25. RootNode.CreateComponent<WirePlane>();
  26. }
  27. }
  28. }