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
Afficher le fichier Open project: Indiefreaks/igf

Méthodes publiques

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

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

Clear() public méthode

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

CreateInstanceFactory() public méthode

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

CreateSkinnedInstanceFactory() public méthode

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

InstancingManager() public méthode

public InstancingManager ( IManagerServiceProvider sceneInterface ) : System
sceneInterface IManagerServiceProvider
Résultat System

Unload() public méthode

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