Click or drag to resize
DigitalRunePackedTexture Constructor (String, Texture2D, Vector2F, Vector2F)
Initializes a new instance of the PackedTexture class.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public PackedTexture(
	string name,
	Texture2D texture,
	Vector2F offset,
	Vector2F scale
)

Parameters

name
Type: SystemString
The original asset name of the packed texture. Can be or empty.
texture
Type: Texture2D
The texture atlas that contains the packed texture.
offset
Type: DigitalRune.Mathematics.AlgebraVector2F
The UV offset of the packed texture in the texture atlas.
scale
Type: DigitalRune.Mathematics.AlgebraVector2F
The scale of the packed texture relative to the texture atlas.
Exceptions
ExceptionCondition
ArgumentNullExceptiontexture is .
See Also