Click or drag to resize
DigitalRuneSpriteRenderer Constructor (IGraphicsService, SpriteFont)
Initializes a new instance of the SpriteRenderer class.

Namespace: DigitalRune.Graphics.Rendering
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public SpriteRenderer(
	IGraphicsService graphicsService,
	SpriteFont spriteFont
)

Parameters

graphicsService
Type: DigitalRune.GraphicsIGraphicsService
The graphics service.
spriteFont
Type: SpriteFont
The default font, which is used in case the font of a TextSprite is not set. Can be .
Exceptions
ExceptionCondition
ArgumentNullExceptiongraphicsService is .
See Also