/// <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); }
protected void OnExposeEvent(object o, ExposeEventArgs args) { using (Context context = CairoHelper.Create(GdkWindow)) { rootComponent.Draw(context); context.Target.Dispose(); } }
public void Draw(GameTime time) { rootComponent.Draw(this, time); }