/// <summary> /// Initializes a new DirectXGraphics class. /// </summary> public DirectXGraphics() { ResourceManager = new DirectXResourceManager(); ContentProcessors = new IContentProcessor[] {new DirectXFontContentProcessor(), new DirectXPenContentProcessor(), new DirectXTextureContentProcessor()}; SmoothingMode = SmoothingMode.AntiAlias; InterpolationMode = InterpolationMode.Linear; _graphicsDevice = SGL.QueryComponents<GraphicsDevice>(); var d2DFactory = new Factory(FactoryType.MultiThreaded); DirectXHelper.D2DFactory = d2DFactory; DirectXHelper.DirectWriteFactory = new SharpDX.DirectWrite.Factory(SharpDX.DirectWrite.FactoryType.Shared); }
/// <summary> /// Initializes a new DirectXGraphics class. /// </summary> public DirectXGraphics() { ResourceManager = new DirectXResourceManager(); ContentProcessors = new IContentProcessor[] { new DirectXFontContentProcessor(), new DirectXPenContentProcessor(), new DirectXTextureContentProcessor() }; SmoothingMode = SmoothingMode.AntiAlias; InterpolationMode = InterpolationMode.Linear; _graphicsDevice = SGL.QueryComponents <GraphicsDevice>(); var d2DFactory = new Factory(FactoryType.MultiThreaded); DirectXHelper.D2DFactory = d2DFactory; DirectXHelper.DirectWriteFactory = new SharpDX.DirectWrite.Factory(SharpDX.DirectWrite.FactoryType.Shared); }