コード例 #1
0
        internal void Draw(Texture2D texture2D, System.Drawing.RectangleF screenBounds, System.Drawing.RectangleF?sourceRectangle, Color actualBackColor)
        {
            screenBounds.ToRectangle(ref tmpRect1);

            if (sourceRectangle.HasValue)
            {
                sourceRectangle.Value.ToRectangle(ref tmpRect2);
                base.Draw(texture2D, tmpRect1, tmpRect2, actualBackColor);
            }
            else
            {
                base.Draw(texture2D, tmpRect1, null, actualBackColor);
            }
        }
コード例 #2
0
        internal void Draw(Texture2D texture2D, System.Drawing.RectangleF screenBounds, System.Drawing.RectangleF?sourceRectangle, Color color, double rotation, Vector2 origin, SpriteEffects spriteEffects, float layerDepth)
        {
            screenBounds.ToRectangle(ref tmpRect1);

            if (sourceRectangle.HasValue)
            {
                sourceRectangle.Value.ToRectangle(ref tmpRect2);
                base.Draw(texture2D, tmpRect1, tmpRect2, color, (float)rotation, origin, spriteEffects, layerDepth);
            }
            else
            {
                base.Draw(texture2D, tmpRect1, null, color, (float)rotation, origin, spriteEffects, layerDepth);
            }
        }
コード例 #3
0
        internal void Draw(Texture2D texture2D, System.Drawing.RectangleF screenBounds, Color c)
        {
            screenBounds.ToRectangle(ref tmpRect1);

            base.Draw(texture2D, tmpRect1, c);
        }