public void Begin(Matrix projection, Matrix view)
{
if (_hasBegun)
throw new InvalidOperationException("End must be called before Begin can be called again.");
_device.SamplerStates[0] = SamplerState.AnisotropicClamp;
//tell our basic effect to begin.
_basicEffect.Projection = projection;
_basicEffect.View = view;
_basicEffect.CurrentTechnique.Passes[0].Apply();
// flip the error checking boolean. It's now ok to call DrawLineShape, Flush,
// and End.
_hasBegun = true;
}