public virtual void Draw(RenderTarget g) { //Texture draw call if (Texture != null) { DrawingPositionRect = new RectangleF(X - Game.VIEWPORT.X, Y - Game.VIEWPORT.Y, Width, Height); Texture.DrawTexture(g, new RectangleF(X, Y, Width, Height)); } //Debug drawing options if (Config.DEBUG_MODE == DebugMode.DISPLAY_HITBOX) { g.DrawRectangle(new RectangleF(Hitbox.X, Hitbox.Y, Hitbox.Width, Hitbox.Height), Resources.SCBRUSH_RED); } else if (Config.DEBUG_MODE == DebugMode.DISPLAY_RECT) { g.DrawRectangle(new RectangleF(X, Y, Width, Height), Resources.SCBRUSH_RED); g.DrawLine(new Vector2(X, Y), new Vector2(X + Width, Y + Height), Resources.SCBRUSH_RED); g.DrawLine(new Vector2(X, Y + Height), new Vector2(X + Width, Y), Resources.SCBRUSH_RED); } /* Used for debug purposes * if (drawHitbox) * g.DrawRectangle(Hitbox, Resources.SCBRUSH_BLACK, 3f); */ }