Effects |
The EffectsManager type exposes the following members.
Name | Description | |
---|---|---|
Cleanup | Cleanup method removes the removed effects | |
Create | Creates the EffectsManager. | |
CreateNewT | Creates a new effect of the specified effect type and with the specified name (must be unique). The methods returns the created Effect and a DisposeToken that can be used to dispose the effect. | |
Dispose |
Releases unmanaged and managed resources (when disposing is true).
This method may be called only from the CheckAndDispose(Boolean) method and must not be called manually by the user.
(Overrides ComponentBaseDispose(Boolean)) | |
GetT | Returns the effect with the specified effect name and type. When not found, then null is returned. | |
GetDefaultT | Gets the default effect for the specified effect type (for example StandardEffect, ThickLineEffect, SolidColorEffect). If the default effect for the specified effect is not found, then it is created and returned. | |
GetStandardEffect | Gets a StandardEffect that can render many different lights and all standard materials. | |
OnEffectRegistered | OnEffectRegistered | |
OnInitializeDeviceResources |
Initializes resources with the specified GpuDevice.
This method can be override and is called from InitializeDeviceResources method.
(Overrides SceneComponentOnInitializeDeviceResources(VulkanDevice)) | |
RegisterEffect | Registers the effect with EffectManager. Each used effect must be registered before it can be used in the rendering (without registering effect, its BeginUpdate and EndUpdate methods are not called). Registering effect will also initialize it (called OnInitializeDeviceResources) if the effect was not initialized yet. | |
RemoveRegisteredEffect | Removes the effect that was created (or registered) by this EffectManager. | |
SetStandardEffect | Sets a new custom Effect as a StandardEffect. StandardEffect should be able to render many different lights and all standard materials. If newStandardEffect is not yet registered by EffectsManager then this method also registers the newStandardEffect. If newStandardEffect is null the default StandardEffect will be set as a StandardEffect. |