Click or drag to resize
DigitalRuneTerrainHelperSetTextureLevel Method (Texture2D, Int32, Single)
Sets the texture data of the specified mipmap level.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static void SetTextureLevel(
	Texture2D texture,
	int level,
	float[] data
)

Parameters

texture
Type: Texture2D
The texture.
level
Type: SystemInt32
The mipmap level.
data
Type: SystemSingle
The data to be copied into the texture.
Exceptions
ExceptionCondition
ArgumentNullExceptiontexture or data is .
NotSupportedException Texture format is not yet supported.
Remarks

This method can be used with following texture formats: Alpha8, Color, Rg32, Rgba64, Single, Vector2, Vector4, HalfSingle, HalfVector2, HalfVector4

See Also