C# Class Urho.Samples.Sample

Inheritance: Application
显示文件 Open project: xamarin/urho-samples

Public Methods

Method Description
NextRandom ( ) : float
NextRandom ( float range ) : float
NextRandom ( float min, float max ) : float
NextRandom ( int min, int max ) : int

Protected Methods

Method Description
MoveCameraByTouches ( float timeStep ) : void
OnUpdate ( float timeStep ) : void
SimpleCreateInstructions ( string text = "" ) : void
SimpleCreateInstructionsWithWasd ( string extra = "" ) : void
SimpleMoveCamera2D ( float timeStep ) : void

Move camera for 2D samples

SimpleMoveCamera3D ( float timeStep, float moveSpeed = 10.0f ) : void

Move camera for 3D samples

Start ( ) : void

Private Methods

Method Description
Application_UnhandledException1 ( object sender, UnhandledExceptionEventArgs e ) : void
CreateConsoleAndDebugHud ( ) : void
CreateLogo ( ) : void
HandleKeyDown ( KeyDownEventArgs e ) : void
InitTouchInput ( ) : void
Sample ( ) : System
Sample ( ApplicationOptions options = null ) : System
SetWindowAndTitleIcon ( ) : void

Method Details

MoveCameraByTouches() protected method

protected MoveCameraByTouches ( float timeStep ) : void
timeStep float
return void

NextRandom() public static method

public static NextRandom ( ) : float
return float

NextRandom() public static method

public static NextRandom ( float range ) : float
range float
return float

NextRandom() public static method

public static NextRandom ( float min, float max ) : float
min float
max float
return float

NextRandom() public static method

public static NextRandom ( int min, int max ) : int
min int
max int
return int

OnUpdate() protected method

protected OnUpdate ( float timeStep ) : void
timeStep float
return void

SimpleCreateInstructions() protected method

protected SimpleCreateInstructions ( string text = "" ) : void
text string
return void

SimpleCreateInstructionsWithWasd() protected method

protected SimpleCreateInstructionsWithWasd ( string extra = "" ) : void
extra string
return void

SimpleMoveCamera2D() protected method

Move camera for 2D samples
protected SimpleMoveCamera2D ( float timeStep ) : void
timeStep float
return void

SimpleMoveCamera3D() protected method

Move camera for 3D samples
protected SimpleMoveCamera3D ( float timeStep, float moveSpeed = 10.0f ) : void
timeStep float
moveSpeed float
return void

Start() protected method

protected Start ( ) : void
return void