Draw() public method

This method renders the current state.
public Draw ( GameTime game ) : void
game Microsoft.Xna.Framework.GameTime
return void
示例#1
0
 public override void Draw(GameTime gameTime)
 {
     if (myGame.camera.BoundingVolumeIsInView(unit.BoundingSphere))
     {
         cModel.Draw(gameTime);
     }
     base.Draw(gameTime);
 }
示例#2
0
        public void Draw(Matrix View, Matrix Projection,
                         Vector3 CameraPosition)
        {
            // Disable the depth buffer
            graphics.DepthStencilState = DepthStencilState.None;

            // Move the model with the sphere
            model.Position = CameraPosition;

            model.Draw(View, Projection, CameraPosition);

            graphics.DepthStencilState = DepthStencilState.Default;
        }
示例#3
0
 public void Draw(Matrix View, Matrix Projection, Vector3 CameraPosition)
 {
     waterMesh.Draw(View, Projection, CameraPosition);
 }