/// <summary>
 /// Constructor. 
 /// </summary>
 /// <param name="graphics">The GraphicsDeviceManager for the EntityRenderer to use. </param>
 /// <param name="content">The ContentManager for the EntityRenderer to use.</param>
 public EntityRenderer(GraphicsDeviceManager graphics, ContentManager content)
 {
     options = new GraphicOptions(graphics, content);
     sceneList = new List<Scene>();
     sceneIdGenerator = new LowestAvailableID();
     RendererAssetPool.UniversalEffect = UniversalEffect.LoadEffect(content);
     activeScene = new Scene();
     GraphicOptions.Content = content;
     sceneList.Add(activeScene);
 }
Beispiel #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="graphics">The GraphicsDeviceManager for the EntityRenderer to use. </param>
 /// <param name="content">The ContentManager for the EntityRenderer to use.</param>
 public EntityRenderer(GraphicsDeviceManager graphics, ContentManager content)
 {
     options          = new GraphicOptions(graphics, content);
     sceneList        = new List <Scene>();
     sceneIdGenerator = new LowestAvailableID();
     RendererAssetPool.UniversalEffect = UniversalEffect.LoadEffect(content);
     activeScene            = new Scene();
     GraphicOptions.Content = content;
     sceneList.Add(activeScene);
 }