Example #1
0
 public PlayerRenderer(GraphicsDevice graphicsDevice, Player player)
 {
     this.GraphicsDevice   = graphicsDevice;
     this.player           = player;
     this.viewport         = graphicsDevice.Viewport;
     this.camera           = new FirstPersonCamera(viewport);
     this.cameraController = new FirstPersonCameraController(camera);
     physics = new PlayerPhysics(this);
 }
 public HudRenderer(GraphicsDevice device, World world, FirstPersonCamera camera)
 {
     this.GraphicsDevice = device;
     this._camera        = camera;
     this.world          = world;
 }
Example #3
0
 public SingleThreadLightingWorldRenderer(GraphicsDevice graphicsDevice, FirstPersonCamera camera, World world) :
     base(graphicsDevice, camera, world)
 {
 }
Example #4
0
 public WorldRenderer(GraphicsDevice graphicsDevice, FirstPersonCamera camera, World world)
 {
     this.world          = world;
     this.GraphicsDevice = graphicsDevice;
     this.camera         = camera;
 }