Ejemplo n.º 1
0
 public void Draw()
 {
     base.Draw();
     CCDrawingPrimitives.Begin();
     CCDrawingPrimitives.DrawRect(new CCRect(0, 0, this.ContentSize.Width, this.ContentSize.Height), CCColor4B.Blue);
     CCDrawingPrimitives.End();
 }
        protected override void Draw()
        {
            CCSize visibleBoundsSize = VisibleBoundsWorldspace.Size;

            if (IsDebug)
            {
                CCDrawingPrimitives.Begin();
                CCDrawingPrimitives.DrawRect(new CCRect(0, 0, visibleBoundsSize.Width, visibleBoundsSize.Height), CCColor4B.Blue);
                CCDrawingPrimitives.End();
            }
        }
Ejemplo n.º 3
0
        protected override void Draw()
        {
            base.Draw();

            if (!IsDebug)
            {
                return;
            }

            CCDrawingPrimitives.Begin();
            CCDrawingPrimitives.DrawRect(new CCRect(0, 0, this.ContentSize.Width, this.ContentSize.Height), CCColor4B.Blue);
            CCDrawingPrimitives.End();
        }