示例#1
0
 internal void Render(GameTime gameTime, SpriteBatch spriteBatch, Camera camera)
 {
     var matrix = FixedToCamera ? (Matrix?)null : camera.TransformationMatrix;
     spriteBatch.Begin(SpriteSortMode, BlendState, SamplerState, null, null, null, matrix);
     _renderers.ForEach(r => r.Render(gameTime, spriteBatch));
     spriteBatch.End();
 }
示例#2
0
 internal Camera AddCamera()
 {
     var camera = new Camera(this);
     _gameObjects.Add(camera);
     return camera;
 }
示例#3
0
 internal void Render(GameTime gameTime, Camera camera, LayerManager layers)
 {
     _graphicsDevice.Clear(this.BackgroundColor);
     layers.ForEach(l => l.Render(gameTime, _spriteBatch, camera));
 }