Beispiel #1
0
        private void ApplyDrawOptions()
        {
            if (_currentItem.drawOptions == null)
            {
                _drawOptions.Reset();
            }
            else
            {
                _drawOptions.CopyFrom(_currentItem.drawOptions);
            }

            for (var item = _currentItem.parent; item != null; item = item.parent)
            {
                if (item.drawOptions != null)
                {
                    _drawOptions.MergeWith(item.drawOptions);
                }
            }

            _stage.sceneBatch.ApplyOptions(_drawOptions);
        }