/// 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; }
/// 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; }