Esempio n. 1
0
        public void Begin()
        {
            //uhhmmm I want to throw an exception if its already active, but its annoying.

            if (CurrPipeline == null)
            {
                throw new InvalidOperationException("Pipeline hasn't been set!");
            }

            IsActive = true;
            Owner.BindPipeline(CurrPipeline);

            //clear state cache
            sTexture = null;
            CurrPipeline["uSamplerEnable"].Set(false);
            Modelview.Clear();
            Projection.Clear();
            SetModulateColorWhite();

#if DEBUG
            BlendStateSet = false;
#endif
        }