C# Class RedBadger.Xpf.Adapters.Xna.Graphics.PrimitivesService

Provides primitives that XPF requires to render correctly.
Inheritance: IPrimitivesService
ファイルを表示 Open project: redbadger/XPF Class Usage Examples

Public Methods

Method Description
PrimitivesService ( GraphicsDevice graphicsDevice ) : Microsoft.Xna.Framework

Initializes a new instance of the PrimitivesService.

Private Methods

Method Description
CreateSinglePixel ( GraphicsDevice graphicsDevice, int width, int height, Microsoft.Xna.Framework.Color color ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

PrimitivesService() public method

Initializes a new instance of the PrimitivesService.
public PrimitivesService ( GraphicsDevice graphicsDevice ) : Microsoft.Xna.Framework
graphicsDevice GraphicsDevice An XNA GraphicsDevice that can be used to generate primitives.
return Microsoft.Xna.Framework