| TerrainHelperSetTextureLevel Method (Texture2D, Int32, Single) |
Sets the texture data of the specified mipmap level.
Namespace: DigitalRune.GraphicsAssembly: 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
)
Public Shared Sub SetTextureLevel (
texture As Texture2D,
level As Integer,
data As Single()
)
public:
static void SetTextureLevel(
Texture2D^ texture,
int level,
array<float>^ data
)
static member SetTextureLevel :
texture : Texture2D *
level : int *
data : float32[] -> unit
Parameters
- texture
- Type: Texture2D
The texture. - level
- Type: SystemInt32
The mipmap level. - data
- Type: SystemSingle
The data to be copied into the texture.
Exceptions Remarks
This method can be used with following texture formats:
Alpha8, Color,
Rg32, Rgba64,
Single, Vector2,
Vector4, HalfSingle,
HalfVector2, HalfVector4
See Also