C# Class Project2.GameObjects.Abstract.GameObject

Inheritance: IUpdateable, IDrawable, INode
Show file Open project: nuclearpidgeon/graphicsproj2

Protected Properties

Property Type Description
basicEffect SharpDX.Toolkit.Graphics.BasicEffect
game Project2Game
inputLayout VertexInputLayout

Public Methods

Method Description
AddChild ( INode childNode ) : void
BeginDraw ( ) : bool
Draw ( SharpDX.Toolkit.GameTime gametime ) : void

Sets up basicEffect parameters for drawing

EndDraw ( ) : void
LoadContent ( ) : void
RemoveChild ( INode childNode ) : void
Update ( SharpDX.Toolkit.GameTime gametime ) : void

Protected Methods

Method Description
GameObject ( Project2Game game, System.Vector3 position ) : System

Create new GameObject with default orientation and size.

GameObject ( Project2Game game, System.Vector3 position, System.Vector3 scale ) : System

Create a new GameObject with default orientation.

GameObject ( Project2Game game, System.Vector3 position, System.Vector3 orientation, System.Vector3 scale ) : System
UpdateWorldMatrix ( ) : void

Method Details

AddChild() public method

public AddChild ( INode childNode ) : void
childNode INode
return void

BeginDraw() public method

public BeginDraw ( ) : bool
return bool

Draw() public method

Sets up basicEffect parameters for drawing
public Draw ( SharpDX.Toolkit.GameTime gametime ) : void
gametime SharpDX.Toolkit.GameTime
return void

EndDraw() public method

public EndDraw ( ) : void
return void

GameObject() protected method

Create new GameObject with default orientation and size.
protected GameObject ( Project2Game game, System.Vector3 position ) : System
game Project2Game
position System.Vector3
return System

GameObject() protected method

Create a new GameObject with default orientation.
protected GameObject ( Project2Game game, System.Vector3 position, System.Vector3 scale ) : System
game Project2Game
position System.Vector3
scale System.Vector3
return System

GameObject() protected method

protected GameObject ( Project2Game game, System.Vector3 position, System.Vector3 orientation, System.Vector3 scale ) : System
game Project2Game
position System.Vector3
orientation System.Vector3
scale System.Vector3
return System

LoadContent() public method

public LoadContent ( ) : void
return void

RemoveChild() public method

public RemoveChild ( INode childNode ) : void
childNode INode
return void

Update() public method

public Update ( SharpDX.Toolkit.GameTime gametime ) : void
gametime SharpDX.Toolkit.GameTime
return void

UpdateWorldMatrix() protected method

protected UpdateWorldMatrix ( ) : void
return void

Property Details

basicEffect protected property

protected BasicEffect,SharpDX.Toolkit.Graphics basicEffect
return SharpDX.Toolkit.Graphics.BasicEffect

game protected property

protected Project2Game game
return Project2Game

inputLayout protected property

protected VertexInputLayout inputLayout
return VertexInputLayout