コード例 #1
0
        void DrawCircle(LSystem.Token token, LSystem system)
        {
            float sizeStart = _lineLength;
            float sizeEnd   = sizeStart;

            if (token.Parent == null || token.Parent.Sign != 'C')
            {
                // New circle
                sizeStart = 0f;
            }
            _RenderManager.CreateInterpolableCircle(token.Depth + token.DrawableId, _currentPosition, _currentPosition, sizeStart, sizeEnd);

            token.Start = _currentPosition;
            token.End   = _currentPosition;
        }