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

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

Méthodes publiques

Свойство Type Description
Parent _3DLayer

Méthodes publiques

Méthode 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 méthode

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

DeviceReset() public méthode

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

Draw() public méthode

public Draw ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : void
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
Résultat void

GetElements() public méthode

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

Initialize() public méthode

public Initialize ( _3DLayer layer ) : void
layer _3DLayer
Résultat void

PreDraw() public méthode

public PreDraw ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : void
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
Résultat void

Remove() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string

Update() public méthode

public Update ( UpdateState state ) : void
state FSO.Common.Rendering.Framework.Model.UpdateState
Résultat void

_3DScene() public méthode

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.
Résultat System

_3DScene() public méthode

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.
Résultat System

m_Device_DeviceReset() public méthode

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
Résultat void

Property Details

Parent public_oe property

public _3DLayer,FSO.Common.Rendering.Framework Parent
Résultat _3DLayer