| TerrainHelperSetTextureLevel Method (Texture2D, Int32, Vector4) |
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,
Vector4[] data
)
Public Shared Sub SetTextureLevel (
texture As Texture2D,
level As Integer,
data As Vector4()
)
public:
static void SetTextureLevel(
Texture2D^ texture,
int level,
array<Vector4>^ data
)
static member SetTextureLevel :
texture : Texture2D *
level : int *
data : Vector4[] -> unit
Parameters
- texture
- Type: Texture2D
The texture. - level
- Type: SystemInt32
The mipmap level. - data
- Type: Vector4
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