C# Class Axiom.Demos.TechDemo

Base class for Axiom examples.
Inheritance: IDisposable
Datei anzeigen Open project: WolfgangSt/axiom

Public Properties

Property Type Description
SetupInput ConfigureInput

Protected Properties

Property Type Description
aniso int
camAccel Vector3
camSpeed float
camVelocity Vector3
camera Axiom.Core.Camera
cameraScale float
cameraVector Vector3
debugText string
debugTextDelay float
engine Axiom.Core.Root
filtering TextureFiltering
guiRenderer CeGui.Renderer
input Axiom.Input.InputReader
keyboard SharpInputSystem.Keyboard
keypressDelay float
mouse SharpInputSystem.Mouse
rootGuiSheet CeGui.GuiSheet
scene Axiom.Core.SceneManager
showDebugOverlay bool
statDelay float
viewport Axiom.Core.Viewport
window Axiom.Graphics.RenderWindow

Public Methods

Method Description
ChooseSceneManager ( ) : void
CreateCamera ( ) : void
CreateScene ( ) : void

CreateViewports ( ) : void
Dispose ( ) : void
Setup ( ) : bool
SetupResources ( ) : void
Start ( ) : void
TechDemo ( ) : System

Protected Methods

Method Description
CreateGUI ( ) : void
CreateResourceListener ( ) : void

Optional override method where you can create resource listeners (e.g. for loading screens)

IfKeyPressed ( KeyCodes key, KeyPressCommand command ) : void
IfKeyPressed ( KeyCodes key, float delay, KeyPressCommand command ) : void
LoadResources ( ) : void

Optional override method where you can perform resource group loading

Must at least do ResourceGroupManager.Instance.InitializeAllResourceGroups();

OnFrameEnded ( object source, FrameEventArgs evt ) : void
OnFrameRenderingQueued ( object source, FrameEventArgs evt ) : void
OnFrameStarted ( object source, FrameEventArgs evt ) : void
SetDebugText ( string text ) : void

Show a text message on screen for two seconds.

SetDebugText ( string text, float delay ) : void

Show a text message on screen for the specified amount of time.

ShowDebugOverlay ( bool show ) : void

Shows the debug overlay, which displays performance statistics.

TakeScreenshot ( string fileName ) : void
UpdateStats ( ) : void
_setupInput ( ) : InputReader

Method Details

ChooseSceneManager() public method

public ChooseSceneManager ( ) : void
return void

CreateCamera() public method

public CreateCamera ( ) : void
return void

CreateGUI() protected method

protected CreateGUI ( ) : void
return void

CreateResourceListener() protected method

Optional override method where you can create resource listeners (e.g. for loading screens)
protected CreateResourceListener ( ) : void
return void

CreateScene() public abstract method

public abstract CreateScene ( ) : void
return void

CreateViewports() public method

public CreateViewports ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

IfKeyPressed() protected method

protected IfKeyPressed ( KeyCodes key, KeyPressCommand command ) : void
key KeyCodes
command KeyPressCommand
return void

IfKeyPressed() protected method

protected IfKeyPressed ( KeyCodes key, float delay, KeyPressCommand command ) : void
key KeyCodes
delay float
command KeyPressCommand
return void

LoadResources() protected method

Optional override method where you can perform resource group loading
Must at least do ResourceGroupManager.Instance.InitializeAllResourceGroups();
protected LoadResources ( ) : void
return void

OnFrameEnded() protected method

protected OnFrameEnded ( object source, FrameEventArgs evt ) : void
source object
evt FrameEventArgs
return void

OnFrameRenderingQueued() protected method

protected OnFrameRenderingQueued ( object source, FrameEventArgs evt ) : void
source object
evt FrameEventArgs
return void

OnFrameStarted() protected method

protected OnFrameStarted ( object source, FrameEventArgs evt ) : void
source object
evt FrameEventArgs
return void

SetDebugText() protected method

Show a text message on screen for two seconds.
protected SetDebugText ( string text ) : void
text string
return void

SetDebugText() protected method

Show a text message on screen for the specified amount of time.
protected SetDebugText ( string text, float delay ) : void
text string Text to show
delay float Duration in seconds
return void

Setup() public method

public Setup ( ) : bool
return bool

SetupResources() public method

public SetupResources ( ) : void
return void

ShowDebugOverlay() protected method

Shows the debug overlay, which displays performance statistics.
protected ShowDebugOverlay ( bool show ) : void
show bool
return void

Start() public method

public Start ( ) : void
return void

TakeScreenshot() protected method

protected TakeScreenshot ( string fileName ) : void
fileName string
return void

TechDemo() public method

public TechDemo ( ) : System
return System

UpdateStats() protected method

protected UpdateStats ( ) : void
return void

_setupInput() protected method

protected _setupInput ( ) : InputReader
return Axiom.Input.InputReader

Property Details

SetupInput public_oe property

public ConfigureInput SetupInput
return ConfigureInput

aniso protected_oe property

protected int aniso
return int

camAccel protected_oe property

protected Vector3 camAccel
return Vector3

camSpeed protected_oe property

protected float camSpeed
return float

camVelocity protected_oe property

protected Vector3 camVelocity
return Vector3

camera protected_oe property

protected Camera,Axiom.Core camera
return Axiom.Core.Camera

cameraScale protected_oe property

protected float cameraScale
return float

cameraVector protected_oe property

protected Vector3 cameraVector
return Vector3

debugText protected_oe property

protected string debugText
return string

debugTextDelay protected_oe property

protected float debugTextDelay
return float

engine protected_oe property

protected Root,Axiom.Core engine
return Axiom.Core.Root

filtering protected_oe property

protected TextureFiltering filtering
return TextureFiltering

guiRenderer protected_oe property

protected CeGui.Renderer guiRenderer
return CeGui.Renderer

input protected_oe property

protected InputReader,Axiom.Input input
return Axiom.Input.InputReader

keyboard protected_oe property

protected SharpInputSystem.Keyboard keyboard
return SharpInputSystem.Keyboard

keypressDelay protected_oe property

protected float keypressDelay
return float

mouse protected_oe property

protected SharpInputSystem.Mouse mouse
return SharpInputSystem.Mouse

rootGuiSheet protected_oe property

protected CeGui.GuiSheet rootGuiSheet
return CeGui.GuiSheet

scene protected_oe property

protected SceneManager,Axiom.Core scene
return Axiom.Core.SceneManager

showDebugOverlay protected_oe property

protected bool showDebugOverlay
return bool

statDelay protected_oe property

protected float statDelay
return float

viewport protected_oe property

protected Viewport,Axiom.Core viewport
return Axiom.Core.Viewport

window protected_oe property

protected RenderWindow,Axiom.Graphics window
return Axiom.Graphics.RenderWindow