Implements abstract Renderer
示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XenkoEngine"/> class.
 /// </summary>
 /// <param name="graphicsDevice">The graphics device.</param>
 /// <param name="nativeScreenWidth">Width of the native screen.</param>
 /// <param name="nativeScreenHeight">Height of the native screen.</param>
 public XenkoEngine(GraphicsDeviceManager manager, EffectSystem effectSystem)
     : base()
 {
     renderer = new XenkoRenderer(manager, effectSystem);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FNAEngine"/> class.
 /// </summary>
 /// <param name="graphicsDevice">The graphics device.</param>
 /// <param name="nativeScreenWidth">Width of the native screen.</param>
 /// <param name="nativeScreenHeight">Height of the native screen.</param>
 public FNAEngine(GraphicsDevice graphicsDevice, int nativeScreenWidth, int nativeScreenHeight)
     : base()
 {
     renderer = new FNARenderer(graphicsDevice, nativeScreenWidth, nativeScreenHeight);
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MonoGameEngine"/> class.
 /// </summary>
 /// <param name="graphicsDevice">The graphics device.</param>
 /// <param name="nativeScreenWidth">Width of the native screen.</param>
 /// <param name="nativeScreenHeight">Height of the native screen.</param>
 public MonoGameEngine(GraphicsDevice graphicsDevice, int nativeScreenWidth, int nativeScreenHeight)
     : base()
 {
     renderer = new MonoGameRenderer(graphicsDevice, nativeScreenWidth, nativeScreenHeight);
 }