Ejemplo n.º 1
0
        /// private メソッド
        ///---------------------------------------------------------------------------
        /// デバック用
        ///---------------------------------------------------------------------------
        /// デバック用:描画
        public void Draw( DemoGame.GraphicsDevice graphDev, int hitIdx, Rgba color1, Rgba color2 )
        {
            DemoGame.RenderGeometry        drawSph = new DemoGame.RenderGeometry();
            drawSph.MakeSphere();

            DemoGame.Camera camera = graphDev.GetCurrentCamera();

            if( hitIdx < 0 ){
            drawSph.DrawSphere( graphDev.Graphics, this.Sphre, camera, color1 );
            }
            else{
            drawSph.DrawSphere( graphDev.Graphics, this.Sphre, camera, color2 );
            }

            drawSph        = null;
        }
Ejemplo n.º 2
0
/// private メソッド
///---------------------------------------------------------------------------



/// デバック用
///---------------------------------------------------------------------------

        /// デバック用:描画
        public void Draw(DemoGame.GraphicsDevice graphDev, int hitIdx, Rgba color1, Rgba color2)
        {
            DemoGame.RenderGeometry drawSph = new DemoGame.RenderGeometry();
            drawSph.MakeSphere();

            DemoGame.Camera camera = graphDev.GetCurrentCamera();

            if (hitIdx < 0)
            {
                drawSph.DrawSphere(graphDev.Graphics, this.Sphre, camera, color1);
            }
            else
            {
                drawSph.DrawSphere(graphDev.Graphics, this.Sphre, camera, color2);
            }

            drawSph = null;
        }