C# Class FSO.Common.Rendering.Framework._3DScene

A scene capable of rendering 3D elements.
Inheritance: _3DAbstract
Datei anzeigen Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
Parent _3DLayer

Public Methods

Method Description
Add ( _3DComponent item ) : void

Adds a 3D element to this 3DScene.

DeviceReset ( Microsoft.Xna.Framework.Graphics.GraphicsDevice Device ) : void

GraphicsDevice was reset.

Draw ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : void
GetElements ( ) : List<_3DComponent>

Returns the _3DComponents that make up this scene.

Initialize ( _3DLayer layer ) : void
PreDraw ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : void
Remove ( _3DComponent item ) : void

Removes a 3D element from this 3DScene.

ToString ( ) : string
Update ( UpdateState state ) : void
_3DScene ( Microsoft.Xna.Framework.Graphics.GraphicsDevice Device ) : System

Creates a new _3DScene instance.

_3DScene ( Microsoft.Xna.Framework.Graphics.GraphicsDevice Device, ICamera camera ) : System

Creates a new _3DScene instance.

m_Device_DeviceReset ( object sender, EventArgs e ) : void

Graphics device was reset (happens when scene is updated or minimized.)

Method Details

Add() public method

Adds a 3D element to this 3DScene.
public Add ( _3DComponent item ) : void
item _3DComponent The _3DComponent instance to add.
return void

DeviceReset() public method

GraphicsDevice was reset.
public DeviceReset ( Microsoft.Xna.Framework.Graphics.GraphicsDevice Device ) : void
Device Microsoft.Xna.Framework.Graphics.GraphicsDevice The GraphicsDevice instance.
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : void
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
return void

GetElements() public method

Returns the _3DComponents that make up this scene.
public GetElements ( ) : List<_3DComponent>
return List<_3DComponent>

Initialize() public method

public Initialize ( _3DLayer layer ) : void
layer _3DLayer
return void

PreDraw() public method

public PreDraw ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : void
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
return void

Remove() public method

Removes a 3D element from this 3DScene.
public Remove ( _3DComponent item ) : void
item _3DComponent The _3DComponent instance to remove.
return void

ToString() public method

public ToString ( ) : string
return string

Update() public method

public Update ( UpdateState state ) : void
state FSO.Common.Rendering.Framework.Model.UpdateState
return void

_3DScene() public method

Creates a new _3DScene instance.
public _3DScene ( Microsoft.Xna.Framework.Graphics.GraphicsDevice Device ) : System
Device Microsoft.Xna.Framework.Graphics.GraphicsDevice A GraphicsDevice instance used for rendering.
return System

_3DScene() public method

Creates a new _3DScene instance.
public _3DScene ( Microsoft.Xna.Framework.Graphics.GraphicsDevice Device, ICamera camera ) : System
Device Microsoft.Xna.Framework.Graphics.GraphicsDevice A GraphicsDevice instance used for rendering.
camera ICamera A camera inheriting from ICamera used for rendering.
return System

m_Device_DeviceReset() public method

Graphics device was reset (happens when scene is updated or minimized.)
public m_Device_DeviceReset ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

Parent public_oe property

public _3DLayer,FSO.Common.Rendering.Framework Parent
return _3DLayer