TextureUpdateableSource (extends MediaSourceBase)

This abstract class extends MediaSourceBase, and represents a media source that needs regular updating of its texture.

It introduces a several members:

TextureUpdatableSource(IMediaDescription description, int textureUpdateInterval, int texWidth, int texHeight)

Description- Constructor.
'description'- Description to use for source.
'textureUpdateInterval'- The update interval of the texture in milliseconds. If set to zero, will not update.
'texWidth'- The width of the texture to use in pixels.
'texHeight'- The height of the texture to use in pixels.

int _Width;

'Description'- Protected member. The width of the texture in pixels.

int _Height;

'Description'- Protected member. The heightof the texture in pixels.

virtual byte[] _GetInitialTextureBytes();

'Description'- Protected virtual member. Returns the texture

abstract byte[] _GetUpdatablePixels();

'Description'- Protected abstract member. Returns the pixel data as a byte array, in the format RGBA.

bool _UpdateRequired;

'Description'- Protected member. Setting to 'true' in children will cause the texture to update in TextureUpdatableSource's update loop.