/// private メソッド ///--------------------------------------------------------------------------- /// デバック用 ///--------------------------------------------------------------------------- /// デバック用:描画 public void Draw( DemoGame.GraphicsDevice graphDev, int hitIdx, Rgba color1, Rgba color2 ) { DemoGame.RenderGeometry drawSph = new DemoGame.RenderGeometry(); drawSph.MakeCapsule(); DemoGame.Camera camera = graphDev.GetCurrentCamera(); if( hitIdx < 0 ){ drawSph.DrawCapsule( graphDev.Graphics, this.Capsule, camera, color1 ); } else{ drawSph.DrawCapsule( graphDev.Graphics, this.Capsule, camera, color2 ); } drawSph = null; }
/// private メソッド ///--------------------------------------------------------------------------- /// デバック用 ///--------------------------------------------------------------------------- /// デバック用:描画 public void Draw(DemoGame.GraphicsDevice graphDev, int hitIdx, Rgba color1, Rgba color2) { DemoGame.RenderGeometry drawSph = new DemoGame.RenderGeometry(); drawSph.MakeCapsule(); DemoGame.Camera camera = graphDev.GetCurrentCamera(); if (hitIdx < 0) { drawSph.DrawCapsule(graphDev.Graphics, this.Capsule, camera, color1); } else { drawSph.DrawCapsule(graphDev.Graphics, this.Capsule, camera, color2); } drawSph = null; }