예제 #1
0
파일: Picker.cs 프로젝트: bartwe/Gearset
        public override void Draw(GameTime gameTime)
        {
            // Only draw if we're doing a BasicEffectPass pass
            if (GearsetResources.CurrentRenderPass != RenderPass.BasicEffectPass)
            {
                return;
            }

            if (_hoveringObject is IPickable <BoundingBox> )
            {
                BoundingBoxHelper.DrawBoundingBox(((IPickable <BoundingBox>)_hoveringObject).PickableVolume, Color.Gray);
            }
            if (_selectedObject is IPickable <BoundingBox> )
            {
                BoundingBoxHelper.DrawBoundingBox(((IPickable <BoundingBox>)_selectedObject).PickableVolume, Color.White);
            }
        }