Example #1
0
 public SphericalWorldScreen(IContext context) : base(context, "spherical_world")
 {
     _sphere  = new Sphere(Context, 255, 5000);
     _sky     = new Sky(Context);
     _sun     = new Sun();
     _camera  = new SphericalWorldCamera();
     _counter = new FpsCounter();
     Register(new DynamicLabel(context, "fps_counter", new UniRectangle(5, 5, 100, 50),
                               () => _counter.Value + "FPS"));
 }
Example #2
0
 public SphericalWorldScreen(IContext context)
     : base(context, "spherical_world")
 {
     _sphere = new Sphere(Context, 255, 5000);
     _sky = new Sky(Context);
     _sun = new Sun();
     _camera = new SphericalWorldCamera();
     _counter = new FpsCounter();
     Register(new DynamicLabel(context, "fps_counter", new UniRectangle(5, 5, 100, 50),
         () => _counter.Value + "FPS"));
 }