Nez.Portable/Core.cs
/// <summary>
///     this gets called whenever the screen size changes
/// </summary>
/// <param name="sender">Sender.</param>
/// <param name="e">E.</param>
this gets called whenever the screen size changes
this gets called whenever the screen size changes
protected void onGraphicsDeviceReset(object sender, EventArgs e)
        {
            if (this._graphicsDeviceChangeTimer != null)
            {
                this._graphicsDeviceChangeTimer.reset();
            }
            else
            {
                this._graphicsDeviceChangeTimer = schedule(
                    0.05f,
                    false,
                    this,
                    t =>
                        {
                            (t.context as Core)._graphicsDeviceChangeTimer = null;
                            emitter.emit(CoreEvents.GraphicsDeviceReset);
                        });
            }
        }
protected void onGraphicsDeviceReset ( object sender , EventArgs e ) { if ( this . _graphicsDeviceChangeTimer != null ) { this . _graphicsDeviceChangeTimer . reset ( ) ; } else { this . _graphicsDeviceChangeTimer = schedule ( 0.05f , false , this , t => { ( t . context as Core ) . _graphicsDeviceChangeTimer = null ; emitter . emit ( CoreEvents . GraphicsDeviceReset ) ; } ) ; } }
this gets called whenever the screen size changes
this gets called whenever the screen size changes
// we coalese these to avoid spamming events
sender
object
None
e
EventArgs
None