コード例 #1
0
        public static void DrawScene()
        {
            Draw.BoxScene(ii, alpha.setXYZ(0, 0, 0), siz.offSetS(-1, -1, -1), 0);    //Generate Frame
            if (Flash > 0)
            {
                if (Program.Wind.Check2())
                {
                    Draw.BoxScene(ii, FlashVec[0], FlashVec[1], 2);
                }
                if (Program.Wind.Check3())
                {
                    int rad = Program.Wind.getRad();
                    switch (Program.Wind.RB3())
                    {
                    case "Red": Draw.BoxScene(ii, FlashVec[0].offSetS(rad, rad, rad), FlashVec[0].offSetS(-rad, -rad, -rad), 6); break;

                    case "Blue": Draw.BoxScene(ii, FlashVec[1].offSetS(rad, rad, rad), FlashVec[1].offSetS(-rad, -rad, -rad), 6); break;
                    }
                }
                if (Program.Wind.Check4())
                {
                    int rad = Scene.getXDim() - 1;
                    switch (Program.Wind.RB4())
                    {
                    case "Red": Draw.BoxScene(ii, FlashVec[0].offSetS(rad, rad, rad), FlashVec[0], 1); break;

                    case "Blue": Draw.BoxScene(ii, FlashVec[1].offSetS(rad, rad, rad), FlashVec[1], 1); break;
                    }
                }
                if (Program.Wind.Check5())
                {
                    int rad = Program.Wind.getS();
                    switch (Program.Wind.RB5())
                    {
                    case "Red": Draw.BoxScene(ii, FlashVec[0], FlashVec[0].offSetS(rad, rad, rad), 3); break;

                    case "Blue": Draw.BoxScene(ii, FlashVec[1], FlashVec[1].offSetS(rad, rad, rad), 3); break;
                    }
                }
            }
            //AddItems
            if (first % 10 == 0)
            {
                foreach (Entity ent in Map)
                {
                    Draw.Cube(ii, ent);
                }
            }
            first++;
        }