예제 #1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            // TODO: Add your drawing code here
            _root.Draw();
            base.Draw(gameTime);
        }
예제 #2
0
    protected void OnExposeEvent(object o, ExposeEventArgs args)
    {
        using (Context context = CairoHelper.Create(GdkWindow))
        {
            rootComponent.Draw(context);

            context.Target.Dispose();
        }
    }
예제 #3
0
 public void Draw(GameTime time)
 {
     rootComponent.Draw(this, time);
 }