ISceneEntityContainer

Description

interface Tinman.Engine.Scenes.ISceneEntityContainer

Derived from

IDisposable

Extended by

IScene
SceneEntity

Base interface for classes that contain scene entities.

Public / Methods

Entity​Add


public method EntityAdd → (1)

entity in : ISceneEntity own

[not-null]
The scene entity to add.

Adds the given entity.

RenderException

If a graphics subsystem error has occurred while calling IGraphicsComponent.GraphicsAttach on a ISceneEntityView that has been created for the given entity in, via ISceneEntity.CreateView.

Entity​Remove


public method EntityRemove → (1)

entity in : ISceneEntity

[not-null]
The scene entity to remove.

Removes the given scene entity.

All owned ISceneEntityView object will be removed automatically from their respective scene view.

Extensions

Entity​Add​No​Throw


public static method EntityAddNoThrow → (1)

entity in : ISceneEntity own

[not-null]
The scene entity to add.

Adds the given entity, assuming that one of the following is true:

This method delegates to ISceneEntityContainer.EntityAdd and panics if a RenderException is thrown. Use this method to allow static code analysis to exploit the fact that RenderException will never be thrown.