Example #1
0
        protected override void Draw(GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear(Color.WhiteSmoke);
            G.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend,
                                null, null, null, null, cam.GetMatrix());

            Drawed?.Invoke();

            G.spriteBatch.End();
        }
Example #2
0
 private void UnprocessedInput_PointerReleased(InkUnprocessedInput sender, PointerEventArgs args)
 {
     Drawed?.Invoke(BuildInkPoint(args.CurrentPoint), args.CurrentPoint);
 }
Example #3
0
 private void Draw(DrawingEventArgs e)
 {
     Drawed?.Invoke(e);
 }
Example #4
0
 public void Draw()
 {
     Drawed?.Invoke(new DrawingEventArgs(spriteBatch));
 }
Example #5
0
 private void OnDrawed()
 {
     Drawed?.Invoke(this, new UIDrawEventArgs(spriteBatch));
 }