C# Class WindowsAppFramework.RenderTargetUserControl

Inheritance: System.Windows.Forms.UserControl
Mostra file Open project: DarrenHassan/GDM4242-GroupD

Private Properties

Property Type Description
CreateRenderTarget bool
DestroyRenderTarget void
DoKeyDown void
DoKeyUp void
DoKeyUpAll void
GetEKeyByKeyCode bool
GetEMouseButtonByMouseButton EMouseButtons
GetLocalMousePosition Vec2i
InitializeComponent void
SceneManager_Render void
updateTimer_Tick void

Public Methods

Method Description
Destroy ( ) : void
GetFloatMousePosition ( ) : Vec2
GetMouseRelativeModeOffset ( ) : Vec2i
GetWorldRayByMousePosition ( ) : Ray
IsKeyPressed ( Keys key ) : bool
RenderTargetUserControl ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnDestroy ( ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnKeyPress ( KeyPressEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnLeave ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnMouseDoubleClick ( MouseEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs e ) : void
OnRender ( Engine.Camera camera ) : void
OnRenderUI ( GuiRenderer renderer ) : void
OnResize ( EventArgs e ) : void
OnTick ( float delta ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
CreateRenderTarget ( ) : bool
DestroyRenderTarget ( ) : void
DoKeyDown ( KeyEventArgs e ) : void
DoKeyUp ( KeyEventArgs e ) : void
DoKeyUpAll ( ) : void
GetEKeyByKeyCode ( Keys keyCode, EKeys &eKey ) : bool
GetEMouseButtonByMouseButton ( MouseButtons button ) : EMouseButtons
GetLocalMousePosition ( ) : Vec2i
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SceneManager_Render ( Engine.Camera camera, bool onlyShadowCasters ) : void
updateTimer_Tick ( object sender, EventArgs e ) : void

Method Details

Destroy() public method

public Destroy ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetFloatMousePosition() public method

public GetFloatMousePosition ( ) : Vec2
return Vec2

GetMouseRelativeModeOffset() public method

public GetMouseRelativeModeOffset ( ) : Vec2i
return Vec2i

GetWorldRayByMousePosition() public method

public GetWorldRayByMousePosition ( ) : Ray
return Ray

IsKeyPressed() public method

public IsKeyPressed ( Keys key ) : bool
key Keys
return bool

OnDestroy() protected method

protected OnDestroy ( ) : void
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnKeyPress() protected method

protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
return void

OnKeyUp() protected method

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnLeave() protected method

protected OnLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDoubleClick() protected method

protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnRender() protected method

protected OnRender ( Engine.Camera camera ) : void
camera Engine.Camera
return void

OnRenderUI() protected method

protected OnRenderUI ( GuiRenderer renderer ) : void
renderer GuiRenderer
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnTick() protected method

protected OnTick ( float delta ) : void
delta float
return void

RenderTargetUserControl() public method

public RenderTargetUserControl ( ) : System
return System

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void