示例#1
0
    /// <summary>
    /// 描画処理
    /// </summary>
    /// <param name="cdjdata"></param>
    private static void DoDraw(CdjData cdjdata, InputState inputstate)
    {
        //4拍子の線
        DrawBeatline.Draw();

        //判定ラインの下側の絵
        DrawLowFrame.Draw();

        //MyDraw.SetDrawBlendMode(DX.DX_BLENDMODE_ALPHA, 228);
        //フェーダーの描画(あとで)
        drawfader.draw(inputstate);

        //キューイングのディスクとか再生ラインとかカットイン矢印とかを描く
        foreach (DiscQueCutData o in cdjdata.lstquedata)
        {
            o.Draw();
        }
        //スクラッチユニット(シャカシャカで1つ)を1個ずつ描く
        foreach (ScratchUnit scunit in cdjdata.lstscratchunit)
        {
            scunit.Draw();
        }

        DrawEffect.Draw();

        // 裏画面の内容を表画面に反映する
        DX.ScreenFlip();
    }
示例#2
0
        protected override void Draw(GameTime gameTime)
        {
            computeShaderEffect.Parameters.Set(ComputeShaderTestParams.NbOfIterations, ReductionRatio);
            computeShaderEffect.Parameters.Set(ComputeShaderTestKeys.input, inputTexture);
            computeShaderEffect.Parameters.Set(ComputeShaderTestKeys.output, outputTexture);
            computeShaderEffect.Draw();

            if (displayedTexture == null || spriteBatch == null)
            {
                return;
            }

            GraphicsDevice.DrawTexture(displayedTexture);

            base.Draw(gameTime);
        }