C# Class Indiefreaks.Xna.Rendering.Instancing.InstancingManager

The InstancingManager allows developers to create Hardware instances of a given mesh using a simple approach.
Inheritance: IInstancingManager
Mostrar archivo Open project: Indiefreaks/igf

Public Methods

Method Description
ApplyPreferences ( ISystemPreferences preferences ) : void

Use to apply user quality and performance preferences to the resources managed by this object.

Clear ( ) : void

Removes resources managed by this object. Commonly used while clearing the scene.

CreateInstanceFactory ( IInstanceSource source, Effect shader ) : InstanceFactory

Creates an InstanceFactory used to create new InstanceEntity instances.

CreateSkinnedInstanceFactory ( ISkinnedInstanceSource source, DeferredSasEffect shader ) : SkinnedInstanceFactory
InstancingManager ( IManagerServiceProvider sceneInterface ) : System
Unload ( ) : void

Disposes any graphics resource used internally by this object, and removes scene resources managed by this object. Commonly used during Game.UnloadContent.

Method Details

ApplyPreferences() public method

Use to apply user quality and performance preferences to the resources managed by this object.
public ApplyPreferences ( ISystemPreferences preferences ) : void
preferences ISystemPreferences
return void

Clear() public method

Removes resources managed by this object. Commonly used while clearing the scene.
public Clear ( ) : void
return void

CreateInstanceFactory() public method

Creates an InstanceFactory used to create new InstanceEntity instances.
public CreateInstanceFactory ( IInstanceSource source, Effect shader ) : InstanceFactory
source IInstanceSource The mesh data information used to create InstanceEntity instances.
shader Microsoft.Xna.Framework.Graphics.Effect The shader shared accross all instances
return InstanceFactory

CreateSkinnedInstanceFactory() public method

public CreateSkinnedInstanceFactory ( ISkinnedInstanceSource source, DeferredSasEffect shader ) : SkinnedInstanceFactory
source ISkinnedInstanceSource
shader DeferredSasEffect
return Indiefreaks.Xna.Rendering.Instancing.Skinned.SkinnedInstanceFactory

InstancingManager() public method

public InstancingManager ( IManagerServiceProvider sceneInterface ) : System
sceneInterface IManagerServiceProvider
return System

Unload() public method

Disposes any graphics resource used internally by this object, and removes scene resources managed by this object. Commonly used during Game.UnloadContent.
public Unload ( ) : void
return void