Example #1
0
        //--------
        // D R A W
        //--------
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.SetRenderTarget(MainTarget);  GraphicsDevice.Clear(Color.TransparentBlack);


            quadBatch.Begin(tex, BlendState.AlphaBlend);
            quadBatch.DrawTail(tailRec, Color.White, mpos, bones, 1f);
            quadBatch.End();

            // DRAW MAINTARGET TO BACKBUFFER
            GraphicsDevice.SetRenderTarget(null); spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.Opaque, SamplerState.LinearWrap, DepthStencilState.None, RasterizerState.CullNone); spriteBatch.Draw(MainTarget, desktopRect, Color.White); spriteBatch.End();
            base.Draw(gameTime);
        }