Example #1
0
        /// <summary>
        /// overrides <see cref="CustomEntity.OnDraw(OpenGlDevice)"/>
        /// </summary>
        /// <param name="Device"></param>
        protected override void OnDraw(OpenGlDevice Device)
        {
            if (Loca == null)
            {
                return;
            }
            Curve2dRotator CR = new Curve2dRotator();

            for (int i = 0; i < Loca.Count; i++)
            {
                for (int j = 0; j < Loca[i].Count; j++)
                {
                    CR.Curve     = Loca[i][j];
                    CR.FromAngle = FromAngle;
                    CR.ToAngle   = ToAngle;
                    CR.Paint(Device);
                }
            }
            base.OnDraw(Device);
        }