hyades.entity.Box.Draw C# (CSharp) Method

Draw() public method

public Draw ( GraphicsDevice device, Camera camera ) : void
device GraphicsDevice
camera Camera
return void
        public override void Draw(GraphicsDevice device, Camera camera)
        {
            if (material == null)
                Warm(device);

            material.Projection = camera.projection;
            material.View = camera.view;
            material.World = world;
            material.CurrentTechnique.Passes[0].Apply();

            mesh.Draw(device);
        }