Creates a new texture resource.
Namespace: VVVV.PluginInterfaces.V2.EX9Assembly: VVVV.PluginInterfaces (in VVVV.PluginInterfaces.dll) Version: 2.0.4694.10872
Syntax
C# |
---|
public static TextureResource<TMetadata> Create<TMetadata>( TMetadata metadata, Func<TMetadata, Device, Texture> createResourceFunc, Action<TMetadata, Texture> updateResourceFunc, Action<TMetadata, Texture> destroyResourceAction ) |
Parameters
- metadata
- Type: TMetadata
The metadata associated with the texture resource.
- createResourceFunc
- Type: System..::..Func<(Of <(<'TMetadata, Device, Texture>)>)>
A function which creates the texture.
- updateResourceFunc
- Type: System..::..Action<(Of <(<'TMetadata, Texture>)>)>
A function which updates the texture.
- destroyResourceAction
- Type: System..::..Action<(Of <(<'TMetadata, Texture>)>)>
A function which destroys the texture.
Type Parameters
- TMetadata
- The type of the metadata.