Example #1
0
 /// <summary>
 /// Override this method to return a subclass of PPaintContext.
 /// </summary>
 /// <remarks>
 /// This can be useful if you are trying to plug in a different renderer, other
 /// than GDI+.  See the PiccoloDirect3D sample.
 /// </remarks>
 /// <param name="pe">A PaintEventArgs that contains the PaintEvent data.</param>
 /// <returns>The paint context to use for painting piccolo.</returns>
 protected virtual PPaintContext CreatePaintContext(PaintEventArgs pe)
 {
     return(new PPaintContext(XnaGraphics.FromGraphics(pe.Graphics), this));
 }