protected override void Update(GraphicsContext gfx, float delta) { _update(gfx, delta); }
/// <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);
public DefaultRenderLoop(GraphicsContext context, UpdateFunction update, int frameRate) : base(context, frameRate) { _update = update ?? throw new ArgumentNullException(nameof(update)); }