Пример #1
0
 protected override void Update(GraphicsContext gfx, float delta)
 {
     _update(gfx, delta);
 }
Пример #2
0
 /// <summary>
 /// Called every iteration of the game loop to update and/or render the application "every frame".
 /// </summary>
 protected abstract void Update(GraphicsContext gfx, float dt);
Пример #3
0
 public DefaultRenderLoop(GraphicsContext context, UpdateFunction update, int frameRate)
     : base(context, frameRate)
 {
     _update = update ?? throw new ArgumentNullException(nameof(update));
 }