| SpriteRenderer Constructor (IGraphicsService, SpriteBatch, SpriteFont) |
Note: This API is now obsolete.
Namespace: DigitalRune.Graphics.RenderingAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax [ObsoleteAttribute("It is no longer necessary to specify a SpriteBatch.")]
public SpriteRenderer(
IGraphicsService graphicsService,
SpriteBatch spriteBatch,
SpriteFont spriteFont
)
<ObsoleteAttribute("It is no longer necessary to specify a SpriteBatch.")>
Public Sub New (
graphicsService As IGraphicsService,
spriteBatch As SpriteBatch,
spriteFont As SpriteFont
)
public:
[ObsoleteAttribute(L"It is no longer necessary to specify a SpriteBatch.")]
SpriteRenderer(
IGraphicsService^ graphicsService,
SpriteBatch^ spriteBatch,
SpriteFont^ spriteFont
)
[<ObsoleteAttribute("It is no longer necessary to specify a SpriteBatch.")>]
new :
graphicsService : IGraphicsService *
spriteBatch : SpriteBatch *
spriteFont : SpriteFont -> SpriteRenderer
Parameters
- graphicsService
- Type: DigitalRune.GraphicsIGraphicsService
The graphics service. - spriteBatch
- Type: SpriteBatch
The sprite batch used for rendering. Can be .
- spriteFont
- Type: SpriteFont
The default font, which is used in case the font of a TextSprite is not set.
Can be .
Exceptions See Also