C# Class Nez.Debug

Mostrar archivo Open project: prime31/Nez

Public Properties

Property Type Description
drawTextFromBottom bool

Public Methods

Method Description
timeAction ( System.Action action, uint numberOfIterations = 1 ) : System.TimeSpan

times how long an Action takes to run and returns the TimeSpan

Private Methods

Method Description
breakIf ( bool condition ) : void
break_ ( ) : void
drawHollowBox ( Vector2 center, int size, Color color, float duration = 0f ) : void
drawHollowRect ( Rectangle rectangle, Color color, float duration = 0f ) : void
drawLine ( Vector2 start, Vector2 end, Color color, float duration = 0f ) : void
drawPixel ( Vector2 position, int size, Color color, float duration = 0f ) : void
drawPixel ( float x, float y, int size, Color color, float duration = 0f ) : void
drawText ( BitmapFont font, string text, Vector2 position, Color color, float duration = 0f, float scale = 1f ) : void
drawText ( NezSpriteFont font, string text, Vector2 position, Color color, float duration = 0f, float scale = 1f ) : void
drawText ( string format ) : void
drawText ( string text, Color color, float duration = 1f, float scale = 1f ) : void
drawText ( string text, float duration ) : void
error ( string format ) : void
errorIf ( bool condition, string format ) : void
info ( string format ) : void
log ( LogType type, string format ) : void
log ( object obj ) : void
log ( string format ) : void
logIf ( bool condition, string format ) : void
render ( ) : void
trace ( string format ) : void
warn ( string format ) : void
warnIf ( bool condition, string format ) : void

Method Details

timeAction() public static method

times how long an Action takes to run and returns the TimeSpan
public static timeAction ( System.Action action, uint numberOfIterations = 1 ) : System.TimeSpan
action System.Action Action.
numberOfIterations uint
return System.TimeSpan

Property Details

drawTextFromBottom public_oe static_oe property

public static bool drawTextFromBottom
return bool