1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-09-20 06:05:46 +02:00
MLEM/Docs/api/MLEM.Extensions.SpriteBatchExtensions.yml

1225 lines
55 KiB
YAML
Raw Normal View History

### YamlMime:ManagedReference
items:
- uid: MLEM.Extensions.SpriteBatchExtensions
commentId: T:MLEM.Extensions.SpriteBatchExtensions
id: SpriteBatchExtensions
parent: MLEM.Extensions
children:
- MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,Microsoft.Xna.Framework.Color)
- MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
- MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,System.Single)
- MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,Microsoft.Xna.Framework.Color)
- MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
- MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,System.Single)
- MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Int32)
- MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,System.Int32,System.Int32)
- MLEM.Extensions.SpriteBatchExtensions.GenerateSquareTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color)
- MLEM.Extensions.SpriteBatchExtensions.GenerateTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Nullable{Microsoft.Xna.Framework.Color})
- MLEM.Extensions.SpriteBatchExtensions.GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
langs:
- csharp
- vb
name: SpriteBatchExtensions
nameWithType: SpriteBatchExtensions
fullName: MLEM.Extensions.SpriteBatchExtensions
type: Class
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: SpriteBatchExtensions
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 10
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: A set of extensions for dealing with <xref href="Microsoft.Xna.Framework.Graphics.SpriteBatch" data-throw-if-not-resolved="false"></xref>
example: []
syntax:
content: public static class SpriteBatchExtensions
content.vb: Public Module SpriteBatchExtensions
inheritance:
- System.Object
inheritedMembers:
- System.Object.ToString
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object,System.Object)
- System.Object.ReferenceEquals(System.Object,System.Object)
- System.Object.GetHashCode
- System.Object.GetType
- System.Object.MemberwiseClone
- uid: MLEM.Extensions.SpriteBatchExtensions.GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
id: GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: GetBlankTexture(SpriteBatch)
nameWithType: SpriteBatchExtensions.GetBlankTexture(SpriteBatch)
fullName: MLEM.Extensions.SpriteBatchExtensions.GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GetBlankTexture
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 20
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: >-
Returns a 1x1 pixel white texture that can be used for drawing solid color shapes.
This texture is automatically disposed of when the batch is disposed.
example: []
syntax:
content: public static Texture2D GetBlankTexture(this SpriteBatch batch)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch
return:
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A 1x1 pixel white texture
content.vb: Public Shared Function GetBlankTexture(batch As SpriteBatch) As Texture2D
overload: MLEM.Extensions.SpriteBatchExtensions.GetBlankTexture*
- uid: MLEM.Extensions.SpriteBatchExtensions.GenerateTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Nullable{Microsoft.Xna.Framework.Color})
commentId: M:MLEM.Extensions.SpriteBatchExtensions.GenerateTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Nullable{Microsoft.Xna.Framework.Color})
id: GenerateTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Nullable{Microsoft.Xna.Framework.Color})
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: GenerateTexture(SpriteBatch, Color, Color?)
nameWithType: SpriteBatchExtensions.GenerateTexture(SpriteBatch, Color, Color?)
fullName: MLEM.Extensions.SpriteBatchExtensions.GenerateTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color?)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GenerateTexture
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 37
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: >-
Generates a <xref href="MLEM.Textures.NinePatch" data-throw-if-not-resolved="false"></xref> that has a texture with a given color and outline color.
This texture is automatically disposed of when the batch is disposed.
example: []
syntax:
content: public static NinePatch GenerateTexture(this SpriteBatch batch, Color color, Color? outlineColor = null)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch
- id: color
type: Microsoft.Xna.Framework.Color
description: The fill color of the texture
- id: outlineColor
type: System.Nullable{Microsoft.Xna.Framework.Color}
description: The outline color of the texture
return:
type: MLEM.Textures.NinePatch
description: A <xref href="MLEM.Textures.NinePatch" data-throw-if-not-resolved="false"></xref> containing a 3x3 texture with an outline
content.vb: Public Shared Function GenerateTexture(batch As SpriteBatch, color As Color, outlineColor As Color? = Nothing) As NinePatch
overload: MLEM.Extensions.SpriteBatchExtensions.GenerateTexture*
- uid: MLEM.Extensions.SpriteBatchExtensions.GenerateSquareTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.GenerateSquareTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color)
id: GenerateSquareTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: GenerateSquareTexture(SpriteBatch, Color)
nameWithType: SpriteBatchExtensions.GenerateSquareTexture(SpriteBatch, Color)
fullName: MLEM.Extensions.SpriteBatchExtensions.GenerateSquareTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GenerateSquareTexture
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 56
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: >-
Generates a 1x1 texture with the given color.
This texture is automatically disposed of when the batch is disposed.
example: []
syntax:
content: public static Texture2D GenerateSquareTexture(this SpriteBatch batch, Color color)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch
- id: color
type: Microsoft.Xna.Framework.Color
description: The color of the texture
return:
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A new texture with the given data
content.vb: Public Shared Function GenerateSquareTexture(batch As SpriteBatch, color As Color) As Texture2D
overload: MLEM.Extensions.SpriteBatchExtensions.GenerateSquareTexture*
- uid: MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Int32)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Int32)
id: GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Int32)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: GenerateCircleTexture(SpriteBatch, Color, int)
nameWithType: SpriteBatchExtensions.GenerateCircleTexture(SpriteBatch, Color, int)
fullName: MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, int)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GenerateCircleTexture
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 72
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: >-
Generates a texture with the given size that contains a circle.
The circle's center will be the center of the texture, and the circle will lead up to the edges of the texture.
This texture is automatically disposed of when the batch is disposed.
example: []
syntax:
content: public static Texture2D GenerateCircleTexture(this SpriteBatch batch, Color color, int size)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch
- id: color
type: Microsoft.Xna.Framework.Color
description: The color of the texture
- id: size
type: System.Int32
description: The width and height of the texture, and the diameter of the circle
return:
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A new texture with the given data
content.vb: Public Shared Function GenerateCircleTexture(batch As SpriteBatch, color As Color, size As Integer) As Texture2D
overload: MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture*
nameWithType.vb: SpriteBatchExtensions.GenerateCircleTexture(SpriteBatch, Color, Integer)
fullName.vb: MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, Integer)
name.vb: GenerateCircleTexture(SpriteBatch, Color, Integer)
- uid: MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,System.Int32,System.Int32)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,System.Int32,System.Int32)
id: GenerateGradientTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,Microsoft.Xna.Framework.Color,System.Int32,System.Int32)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: GenerateGradientTexture(SpriteBatch, Color, Color, Color, Color, int, int)
nameWithType: SpriteBatchExtensions.GenerateGradientTexture(SpriteBatch, Color, Color, Color, Color, int, int)
fullName: MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color, int, int)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GenerateGradientTexture
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 99
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: >-
Generates a texture with the given size that contains a gradient between the four specified corner colors.
If the same color is specified for two pairs of corners, a horizontal, vertical or diagonal gradient can be achieved.
This texture is automatically disposed of when the batch is disposed.
example: []
syntax:
content: public static Texture2D GenerateGradientTexture(this SpriteBatch batch, Color topLeft, Color topRight, Color bottomLeft, Color bottomRight, int width = 256, int height = 256)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch
- id: topLeft
type: Microsoft.Xna.Framework.Color
description: The color of the texture's top left corner
- id: topRight
type: Microsoft.Xna.Framework.Color
description: The color of the texture's top right corner
- id: bottomLeft
type: Microsoft.Xna.Framework.Color
description: The color of the texture's bottom left corner
- id: bottomRight
type: Microsoft.Xna.Framework.Color
description: The color of the texture's bottom right corner
- id: width
type: System.Int32
description: The width of the resulting texture, or 256 by default
- id: height
type: System.Int32
description: The height of the resulting texture, or 256 by default
return:
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A new texture with the given data
content.vb: Public Shared Function GenerateGradientTexture(batch As SpriteBatch, topLeft As Color, topRight As Color, bottomLeft As Color, bottomRight As Color, width As Integer = 256, height As Integer = 256) As Texture2D
overload: MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture*
nameWithType.vb: SpriteBatchExtensions.GenerateGradientTexture(SpriteBatch, Color, Color, Color, Color, Integer, Integer)
fullName.vb: MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color, Integer, Integer)
name.vb: GenerateGradientTexture(SpriteBatch, Color, Color, Color, Color, Integer, Integer)
- uid: MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,System.Single)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,System.Single)
id: Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,System.Single)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color, float, Vector2, SpriteEffects, float)
nameWithType: SpriteBatchExtensions.Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color, float, Vector2, SpriteEffects, float)
fullName: MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Misc.RectangleF, Microsoft.Xna.Framework.Rectangle?, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Draw
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 123
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: Submit a sprite for drawing in the current batch.
example: []
syntax:
content: public static void Draw(this SpriteBatch batch, Texture2D texture, RectangleF destinationRectangle, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch to draw with.
- id: texture
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A texture.
- id: destinationRectangle
type: MLEM.Misc.RectangleF
description: The drawing bounds on screen.
- id: sourceRectangle
type: System.Nullable{Microsoft.Xna.Framework.Rectangle}
description: An optional region on the texture which will be rendered. If null - draws full texture.
- id: color
type: Microsoft.Xna.Framework.Color
description: A color mask.
- id: rotation
type: System.Single
description: A rotation of this sprite.
- id: origin
type: Microsoft.Xna.Framework.Vector2
description: Center of the rotation. 0,0 by default.
- id: effects
type: Microsoft.Xna.Framework.Graphics.SpriteEffects
description: Modificators for drawing. Can be combined.
- id: layerDepth
type: System.Single
description: A depth of the layer of this sprite.
content.vb: Public Shared Sub Draw(batch As SpriteBatch, texture As Texture2D, destinationRectangle As RectangleF, sourceRectangle As Rectangle?, color As Color, rotation As Single, origin As Vector2, effects As SpriteEffects, layerDepth As Single)
overload: MLEM.Extensions.SpriteBatchExtensions.Draw*
nameWithType.vb: SpriteBatchExtensions.Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color, Single, Vector2, SpriteEffects, Single)
fullName.vb: MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Misc.RectangleF, Microsoft.Xna.Framework.Rectangle?, Microsoft.Xna.Framework.Color, Single, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.SpriteEffects, Single)
name.vb: Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color, Single, Vector2, SpriteEffects, Single)
- uid: MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
id: Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color)
nameWithType: SpriteBatchExtensions.Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color)
fullName: MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Misc.RectangleF, Microsoft.Xna.Framework.Rectangle?, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Draw
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 135
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: Submit a sprite for drawing in the current batch.
example: []
syntax:
content: public static void Draw(this SpriteBatch batch, Texture2D texture, RectangleF destinationRectangle, Rectangle? sourceRectangle, Color color)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch to draw with.
- id: texture
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A texture.
- id: destinationRectangle
type: MLEM.Misc.RectangleF
description: The drawing bounds on screen.
- id: sourceRectangle
type: System.Nullable{Microsoft.Xna.Framework.Rectangle}
description: An optional region on the texture which will be rendered. If null - draws full texture.
- id: color
type: Microsoft.Xna.Framework.Color
description: A color mask.
content.vb: Public Shared Sub Draw(batch As SpriteBatch, texture As Texture2D, destinationRectangle As RectangleF, sourceRectangle As Rectangle?, color As Color)
overload: MLEM.Extensions.SpriteBatchExtensions.Draw*
- uid: MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,Microsoft.Xna.Framework.Color)
id: Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: Draw(SpriteBatch, Texture2D, RectangleF, Color)
nameWithType: SpriteBatchExtensions.Draw(SpriteBatch, Texture2D, RectangleF, Color)
fullName: MLEM.Extensions.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Misc.RectangleF, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Draw
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 144
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: Submit a sprite for drawing in the current batch.
example: []
syntax:
content: public static void Draw(this SpriteBatch batch, Texture2D texture, RectangleF destinationRectangle, Color color)
parameters:
- id: batch
type: Microsoft.Xna.Framework.Graphics.SpriteBatch
description: The sprite batch to draw with.
- id: texture
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A texture.
- id: destinationRectangle
type: MLEM.Misc.RectangleF
description: The drawing bounds on screen.
- id: color
type: Microsoft.Xna.Framework.Color
description: A color mask.
content.vb: Public Shared Sub Draw(batch As SpriteBatch, texture As Texture2D, destinationRectangle As RectangleF, color As Color)
overload: MLEM.Extensions.SpriteBatchExtensions.Draw*
- uid: MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,System.Single)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,System.Single)
id: Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color,System.Single,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Graphics.SpriteEffects,System.Single)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color, float, Vector2, SpriteEffects, float)
nameWithType: SpriteBatchExtensions.Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color, float, Vector2, SpriteEffects, float)
fullName: MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Misc.RectangleF, Microsoft.Xna.Framework.Rectangle?, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Add
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 149
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: >-
Adds an item to this batch.
Note that this batch needs to currently be batching, meaning <xref href="MLEM.Graphics.StaticSpriteBatch.BeginBatch(System.Nullable%7bMicrosoft.Xna.Framework.Graphics.SpriteSortMode%7d)" data-throw-if-not-resolved="false"></xref> has to have been called previously.
example: []
syntax:
content: public static StaticSpriteBatch.Item Add(this StaticSpriteBatch batch, Texture2D texture, RectangleF destinationRectangle, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
parameters:
- id: batch
type: MLEM.Graphics.StaticSpriteBatch
- id: texture
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A texture.
- id: destinationRectangle
type: MLEM.Misc.RectangleF
description: The drawing bounds on screen.
- id: sourceRectangle
type: System.Nullable{Microsoft.Xna.Framework.Rectangle}
description: An optional region on the texture which will be rendered. If null - draws full texture.
- id: color
type: Microsoft.Xna.Framework.Color
description: A color mask.
- id: rotation
type: System.Single
description: A rotation of this sprite.
- id: origin
type: Microsoft.Xna.Framework.Vector2
description: Center of the rotation. 0,0 by default.
- id: effects
type: Microsoft.Xna.Framework.Graphics.SpriteEffects
description: Modificators for drawing. Can be combined.
- id: layerDepth
type: System.Single
description: A depth of the layer of this sprite.
return:
type: MLEM.Graphics.StaticSpriteBatch.Item
description: The <xref href="MLEM.Graphics.StaticSpriteBatch.Item" data-throw-if-not-resolved="false"></xref> that was created from the added data
content.vb: Public Shared Function Add(batch As StaticSpriteBatch, texture As Texture2D, destinationRectangle As RectangleF, sourceRectangle As Rectangle?, color As Color, rotation As Single, origin As Vector2, effects As SpriteEffects, layerDepth As Single) As StaticSpriteBatch.Item
overload: MLEM.Extensions.SpriteBatchExtensions.Add*
nameWithType.vb: SpriteBatchExtensions.Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color, Single, Vector2, SpriteEffects, Single)
fullName.vb: MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Misc.RectangleF, Microsoft.Xna.Framework.Rectangle?, Microsoft.Xna.Framework.Color, Single, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.SpriteEffects, Single)
name.vb: Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color, Single, Vector2, SpriteEffects, Single)
- uid: MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
id: Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color)
nameWithType: SpriteBatchExtensions.Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color)
fullName: MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Misc.RectangleF, Microsoft.Xna.Framework.Rectangle?, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Add
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 156
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: >-
Adds an item to this batch.
Note that this batch needs to currently be batching, meaning <xref href="MLEM.Graphics.StaticSpriteBatch.BeginBatch(System.Nullable%7bMicrosoft.Xna.Framework.Graphics.SpriteSortMode%7d)" data-throw-if-not-resolved="false"></xref> has to have been called previously.
example: []
syntax:
content: public static StaticSpriteBatch.Item Add(this StaticSpriteBatch batch, Texture2D texture, RectangleF destinationRectangle, Rectangle? sourceRectangle, Color color)
parameters:
- id: batch
type: MLEM.Graphics.StaticSpriteBatch
- id: texture
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A texture.
- id: destinationRectangle
type: MLEM.Misc.RectangleF
description: The drawing bounds on screen.
- id: sourceRectangle
type: System.Nullable{Microsoft.Xna.Framework.Rectangle}
description: An optional region on the texture which will be rendered. If null - draws full texture.
- id: color
type: Microsoft.Xna.Framework.Color
description: A color mask.
return:
type: MLEM.Graphics.StaticSpriteBatch.Item
description: The <xref href="MLEM.Graphics.StaticSpriteBatch.Item" data-throw-if-not-resolved="false"></xref> that was created from the added data
content.vb: Public Shared Function Add(batch As StaticSpriteBatch, texture As Texture2D, destinationRectangle As RectangleF, sourceRectangle As Rectangle?, color As Color) As StaticSpriteBatch.Item
overload: MLEM.Extensions.SpriteBatchExtensions.Add*
- uid: MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,Microsoft.Xna.Framework.Color)
id: Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Misc.RectangleF,Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Extensions.SpriteBatchExtensions
langs:
- csharp
- vb
name: Add(StaticSpriteBatch, Texture2D, RectangleF, Color)
nameWithType: SpriteBatchExtensions.Add(StaticSpriteBatch, Texture2D, RectangleF, Color)
fullName: MLEM.Extensions.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Misc.RectangleF, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Extensions/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Add
path: ../MLEM/Extensions/SpriteBatchExtensions.cs
startLine: 161
assemblies:
- MLEM
namespace: MLEM.Extensions
summary: >-
Adds an item to this batch.
Note that this batch needs to currently be batching, meaning <xref href="MLEM.Graphics.StaticSpriteBatch.BeginBatch(System.Nullable%7bMicrosoft.Xna.Framework.Graphics.SpriteSortMode%7d)" data-throw-if-not-resolved="false"></xref> has to have been called previously.
example: []
syntax:
content: public static StaticSpriteBatch.Item Add(this StaticSpriteBatch batch, Texture2D texture, RectangleF destinationRectangle, Color color)
parameters:
- id: batch
type: MLEM.Graphics.StaticSpriteBatch
- id: texture
type: Microsoft.Xna.Framework.Graphics.Texture2D
description: A texture.
- id: destinationRectangle
type: MLEM.Misc.RectangleF
description: The drawing bounds on screen.
- id: color
type: Microsoft.Xna.Framework.Color
description: A color mask.
return:
type: MLEM.Graphics.StaticSpriteBatch.Item
description: The <xref href="MLEM.Graphics.StaticSpriteBatch.Item" data-throw-if-not-resolved="false"></xref> that was created from the added data
content.vb: Public Shared Function Add(batch As StaticSpriteBatch, texture As Texture2D, destinationRectangle As RectangleF, color As Color) As StaticSpriteBatch.Item
overload: MLEM.Extensions.SpriteBatchExtensions.Add*
references:
- uid: Microsoft.Xna.Framework.Graphics.SpriteBatch
commentId: T:Microsoft.Xna.Framework.Graphics.SpriteBatch
parent: Microsoft.Xna.Framework.Graphics
isExternal: true
name: SpriteBatch
nameWithType: SpriteBatch
fullName: Microsoft.Xna.Framework.Graphics.SpriteBatch
- uid: MLEM.Extensions
commentId: N:MLEM.Extensions
href: MLEM.html
name: MLEM.Extensions
nameWithType: MLEM.Extensions
fullName: MLEM.Extensions
spec.csharp:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Extensions
name: Extensions
href: MLEM.Extensions.html
spec.vb:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Extensions
name: Extensions
href: MLEM.Extensions.html
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
name: object
nameWithType: object
fullName: object
nameWithType.vb: Object
fullName.vb: Object
name.vb: Object
- uid: System.Object.ToString
commentId: M:System.Object.ToString
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
name: ToString()
nameWithType: object.ToString()
fullName: object.ToString()
nameWithType.vb: Object.ToString()
fullName.vb: Object.ToString()
spec.csharp:
- uid: System.Object.ToString
name: ToString
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
- name: (
- name: )
spec.vb:
- uid: System.Object.ToString
name: ToString
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
- name: (
- name: )
- uid: System.Object.Equals(System.Object)
commentId: M:System.Object.Equals(System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
name: Equals(object)
nameWithType: object.Equals(object)
fullName: object.Equals(object)
nameWithType.vb: Object.Equals(Object)
fullName.vb: Object.Equals(Object)
name.vb: Equals(Object)
spec.csharp:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.Equals(System.Object,System.Object)
commentId: M:System.Object.Equals(System.Object,System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
name: Equals(object, object)
nameWithType: object.Equals(object, object)
fullName: object.Equals(object, object)
nameWithType.vb: Object.Equals(Object, Object)
fullName.vb: Object.Equals(Object, Object)
name.vb: Equals(Object, Object)
spec.csharp:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
name: ReferenceEquals(object, object)
nameWithType: object.ReferenceEquals(object, object)
fullName: object.ReferenceEquals(object, object)
nameWithType.vb: Object.ReferenceEquals(Object, Object)
fullName.vb: Object.ReferenceEquals(Object, Object)
name.vb: ReferenceEquals(Object, Object)
spec.csharp:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.GetHashCode
commentId: M:System.Object.GetHashCode
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
name: GetHashCode()
nameWithType: object.GetHashCode()
fullName: object.GetHashCode()
nameWithType.vb: Object.GetHashCode()
fullName.vb: Object.GetHashCode()
spec.csharp:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- name: (
- name: )
spec.vb:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- name: (
- name: )
- uid: System.Object.GetType
commentId: M:System.Object.GetType
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
name: GetType()
nameWithType: object.GetType()
fullName: object.GetType()
nameWithType.vb: Object.GetType()
fullName.vb: Object.GetType()
spec.csharp:
- uid: System.Object.GetType
name: GetType
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
- name: (
- name: )
spec.vb:
- uid: System.Object.GetType
name: GetType
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
- name: (
- name: )
- uid: System.Object.MemberwiseClone
commentId: M:System.Object.MemberwiseClone
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
name: MemberwiseClone()
nameWithType: object.MemberwiseClone()
fullName: object.MemberwiseClone()
nameWithType.vb: Object.MemberwiseClone()
fullName.vb: Object.MemberwiseClone()
spec.csharp:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- name: (
- name: )
spec.vb:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- name: (
- name: )
- uid: Microsoft.Xna.Framework.Graphics
commentId: N:Microsoft.Xna.Framework.Graphics
isExternal: true
name: Microsoft.Xna.Framework.Graphics
nameWithType: Microsoft.Xna.Framework.Graphics
fullName: Microsoft.Xna.Framework.Graphics
spec.csharp:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework.Graphics
name: Graphics
isExternal: true
spec.vb:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework.Graphics
name: Graphics
isExternal: true
- uid: System
commentId: N:System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system
name: System
nameWithType: System
fullName: System
- uid: MLEM.Extensions.SpriteBatchExtensions.GetBlankTexture*
commentId: Overload:MLEM.Extensions.SpriteBatchExtensions.GetBlankTexture
href: MLEM.Extensions.SpriteBatchExtensions.html#MLEM_Extensions_SpriteBatchExtensions_GetBlankTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_
name: GetBlankTexture
nameWithType: SpriteBatchExtensions.GetBlankTexture
fullName: MLEM.Extensions.SpriteBatchExtensions.GetBlankTexture
- uid: Microsoft.Xna.Framework.Graphics.Texture2D
commentId: T:Microsoft.Xna.Framework.Graphics.Texture2D
parent: Microsoft.Xna.Framework.Graphics
isExternal: true
name: Texture2D
nameWithType: Texture2D
fullName: Microsoft.Xna.Framework.Graphics.Texture2D
- uid: MLEM.Textures.NinePatch
commentId: T:MLEM.Textures.NinePatch
parent: MLEM.Textures
href: MLEM.Textures.NinePatch.html
name: NinePatch
nameWithType: NinePatch
fullName: MLEM.Textures.NinePatch
- uid: MLEM.Extensions.SpriteBatchExtensions.GenerateTexture*
commentId: Overload:MLEM.Extensions.SpriteBatchExtensions.GenerateTexture
href: MLEM.Extensions.SpriteBatchExtensions.html#MLEM_Extensions_SpriteBatchExtensions_GenerateTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Color_System_Nullable_Microsoft_Xna_Framework_Color__
name: GenerateTexture
nameWithType: SpriteBatchExtensions.GenerateTexture
fullName: MLEM.Extensions.SpriteBatchExtensions.GenerateTexture
- uid: Microsoft.Xna.Framework.Color
commentId: T:Microsoft.Xna.Framework.Color
parent: Microsoft.Xna.Framework
isExternal: true
name: Color
nameWithType: Color
fullName: Microsoft.Xna.Framework.Color
- uid: System.Nullable{Microsoft.Xna.Framework.Color}
commentId: T:System.Nullable{Microsoft.Xna.Framework.Color}
parent: System
definition: System.Nullable`1
name: Color?
nameWithType: Color?
fullName: Microsoft.Xna.Framework.Color?
spec.csharp:
- uid: Microsoft.Xna.Framework.Color
name: Color
isExternal: true
- name: '?'
spec.vb:
- uid: Microsoft.Xna.Framework.Color
name: Color
isExternal: true
- name: '?'
- uid: MLEM.Textures
commentId: N:MLEM.Textures
href: MLEM.html
name: MLEM.Textures
nameWithType: MLEM.Textures
fullName: MLEM.Textures
spec.csharp:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Textures
name: Textures
href: MLEM.Textures.html
spec.vb:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Textures
name: Textures
href: MLEM.Textures.html
- uid: Microsoft.Xna.Framework
commentId: N:Microsoft.Xna.Framework
isExternal: true
name: Microsoft.Xna.Framework
nameWithType: Microsoft.Xna.Framework
fullName: Microsoft.Xna.Framework
spec.csharp:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
spec.vb:
- uid: Microsoft
name: Microsoft
isExternal: true
- name: .
- uid: Microsoft.Xna
name: Xna
isExternal: true
- name: .
- uid: Microsoft.Xna.Framework
name: Framework
isExternal: true
- uid: System.Nullable`1
commentId: T:System.Nullable`1
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.nullable-1
name: Nullable<T>
nameWithType: Nullable<T>
fullName: System.Nullable<T>
nameWithType.vb: Nullable(Of T)
fullName.vb: System.Nullable(Of T)
name.vb: Nullable(Of T)
spec.csharp:
- uid: System.Nullable`1
name: Nullable
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.nullable-1
- name: <
- name: T
- name: '>'
spec.vb:
- uid: System.Nullable`1
name: Nullable
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.nullable-1
- name: (
- name: Of
- name: " "
- name: T
- name: )
- uid: MLEM.Extensions.SpriteBatchExtensions.GenerateSquareTexture*
commentId: Overload:MLEM.Extensions.SpriteBatchExtensions.GenerateSquareTexture
href: MLEM.Extensions.SpriteBatchExtensions.html#MLEM_Extensions_SpriteBatchExtensions_GenerateSquareTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Color_
name: GenerateSquareTexture
nameWithType: SpriteBatchExtensions.GenerateSquareTexture
fullName: MLEM.Extensions.SpriteBatchExtensions.GenerateSquareTexture
- uid: MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture*
commentId: Overload:MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture
href: MLEM.Extensions.SpriteBatchExtensions.html#MLEM_Extensions_SpriteBatchExtensions_GenerateCircleTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Color_System_Int32_
name: GenerateCircleTexture
nameWithType: SpriteBatchExtensions.GenerateCircleTexture
fullName: MLEM.Extensions.SpriteBatchExtensions.GenerateCircleTexture
- uid: System.Int32
commentId: T:System.Int32
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.int32
name: int
nameWithType: int
fullName: int
nameWithType.vb: Integer
fullName.vb: Integer
name.vb: Integer
- uid: MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture*
commentId: Overload:MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture
href: MLEM.Extensions.SpriteBatchExtensions.html#MLEM_Extensions_SpriteBatchExtensions_GenerateGradientTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Color_Microsoft_Xna_Framework_Color_Microsoft_Xna_Framework_Color_Microsoft_Xna_Framework_Color_System_Int32_System_Int32_
name: GenerateGradientTexture
nameWithType: SpriteBatchExtensions.GenerateGradientTexture
fullName: MLEM.Extensions.SpriteBatchExtensions.GenerateGradientTexture
- uid: MLEM.Extensions.SpriteBatchExtensions.Draw*
commentId: Overload:MLEM.Extensions.SpriteBatchExtensions.Draw
href: MLEM.Extensions.SpriteBatchExtensions.html#MLEM_Extensions_SpriteBatchExtensions_Draw_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Graphics_Texture2D_MLEM_Misc_RectangleF_System_Nullable_Microsoft_Xna_Framework_Rectangle__Microsoft_Xna_Framework_Color_System_Single_Microsoft_Xna_Framework_Vector2_Microsoft_Xna_Framework_Graphics_SpriteEffects_System_Single_
name: Draw
nameWithType: SpriteBatchExtensions.Draw
fullName: MLEM.Extensions.SpriteBatchExtensions.Draw
- uid: MLEM.Misc.RectangleF
commentId: T:MLEM.Misc.RectangleF
parent: MLEM.Misc
href: MLEM.Misc.RectangleF.html
name: RectangleF
nameWithType: RectangleF
fullName: MLEM.Misc.RectangleF
- uid: System.Nullable{Microsoft.Xna.Framework.Rectangle}
commentId: T:System.Nullable{Microsoft.Xna.Framework.Rectangle}
parent: System
definition: System.Nullable`1
name: Rectangle?
nameWithType: Rectangle?
fullName: Microsoft.Xna.Framework.Rectangle?
spec.csharp:
- uid: Microsoft.Xna.Framework.Rectangle
name: Rectangle
isExternal: true
- name: '?'
spec.vb:
- uid: Microsoft.Xna.Framework.Rectangle
name: Rectangle
isExternal: true
- name: '?'
- uid: System.Single
commentId: T:System.Single
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.single
name: float
nameWithType: float
fullName: float
nameWithType.vb: Single
fullName.vb: Single
name.vb: Single
- uid: Microsoft.Xna.Framework.Vector2
commentId: T:Microsoft.Xna.Framework.Vector2
parent: Microsoft.Xna.Framework
isExternal: true
name: Vector2
nameWithType: Vector2
fullName: Microsoft.Xna.Framework.Vector2
- uid: Microsoft.Xna.Framework.Graphics.SpriteEffects
commentId: T:Microsoft.Xna.Framework.Graphics.SpriteEffects
parent: Microsoft.Xna.Framework.Graphics
isExternal: true
name: SpriteEffects
nameWithType: SpriteEffects
fullName: Microsoft.Xna.Framework.Graphics.SpriteEffects
- uid: MLEM.Misc
commentId: N:MLEM.Misc
href: MLEM.html
name: MLEM.Misc
nameWithType: MLEM.Misc
fullName: MLEM.Misc
spec.csharp:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Misc
name: Misc
href: MLEM.Misc.html
spec.vb:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Misc
name: Misc
href: MLEM.Misc.html
- uid: MLEM.Graphics.StaticSpriteBatch.BeginBatch(System.Nullable{Microsoft.Xna.Framework.Graphics.SpriteSortMode})
commentId: M:MLEM.Graphics.StaticSpriteBatch.BeginBatch(System.Nullable{Microsoft.Xna.Framework.Graphics.SpriteSortMode})
isExternal: true
href: MLEM.Graphics.StaticSpriteBatch.html#MLEM_Graphics_StaticSpriteBatch_BeginBatch_System_Nullable_Microsoft_Xna_Framework_Graphics_SpriteSortMode__
name: BeginBatch(SpriteSortMode?)
nameWithType: StaticSpriteBatch.BeginBatch(SpriteSortMode?)
fullName: MLEM.Graphics.StaticSpriteBatch.BeginBatch(Microsoft.Xna.Framework.Graphics.SpriteSortMode?)
spec.csharp:
- uid: MLEM.Graphics.StaticSpriteBatch.BeginBatch(System.Nullable{Microsoft.Xna.Framework.Graphics.SpriteSortMode})
name: BeginBatch
href: MLEM.Graphics.StaticSpriteBatch.html#MLEM_Graphics_StaticSpriteBatch_BeginBatch_System_Nullable_Microsoft_Xna_Framework_Graphics_SpriteSortMode__
- name: (
- uid: Microsoft.Xna.Framework.Graphics.SpriteSortMode
name: SpriteSortMode
isExternal: true
- name: '?'
- name: )
spec.vb:
- uid: MLEM.Graphics.StaticSpriteBatch.BeginBatch(System.Nullable{Microsoft.Xna.Framework.Graphics.SpriteSortMode})
name: BeginBatch
href: MLEM.Graphics.StaticSpriteBatch.html#MLEM_Graphics_StaticSpriteBatch_BeginBatch_System_Nullable_Microsoft_Xna_Framework_Graphics_SpriteSortMode__
- name: (
- uid: Microsoft.Xna.Framework.Graphics.SpriteSortMode
name: SpriteSortMode
isExternal: true
- name: '?'
- name: )
- uid: MLEM.Graphics.StaticSpriteBatch.Item
commentId: T:MLEM.Graphics.StaticSpriteBatch.Item
parent: MLEM.Graphics
href: MLEM.Graphics.StaticSpriteBatch.html
name: StaticSpriteBatch.Item
nameWithType: StaticSpriteBatch.Item
fullName: MLEM.Graphics.StaticSpriteBatch.Item
spec.csharp:
- uid: MLEM.Graphics.StaticSpriteBatch
name: StaticSpriteBatch
href: MLEM.Graphics.StaticSpriteBatch.html
- name: .
- uid: MLEM.Graphics.StaticSpriteBatch.Item
name: Item
href: MLEM.Graphics.StaticSpriteBatch.Item.html
spec.vb:
- uid: MLEM.Graphics.StaticSpriteBatch
name: StaticSpriteBatch
href: MLEM.Graphics.StaticSpriteBatch.html
- name: .
- uid: MLEM.Graphics.StaticSpriteBatch.Item
name: Item
href: MLEM.Graphics.StaticSpriteBatch.Item.html
- uid: MLEM.Extensions.SpriteBatchExtensions.Add*
commentId: Overload:MLEM.Extensions.SpriteBatchExtensions.Add
href: MLEM.Extensions.SpriteBatchExtensions.html#MLEM_Extensions_SpriteBatchExtensions_Add_MLEM_Graphics_StaticSpriteBatch_Microsoft_Xna_Framework_Graphics_Texture2D_MLEM_Misc_RectangleF_System_Nullable_Microsoft_Xna_Framework_Rectangle__Microsoft_Xna_Framework_Color_System_Single_Microsoft_Xna_Framework_Vector2_Microsoft_Xna_Framework_Graphics_SpriteEffects_System_Single_
name: Add
nameWithType: SpriteBatchExtensions.Add
fullName: MLEM.Extensions.SpriteBatchExtensions.Add
- uid: MLEM.Graphics.StaticSpriteBatch
commentId: T:MLEM.Graphics.StaticSpriteBatch
parent: MLEM.Graphics
href: MLEM.Graphics.StaticSpriteBatch.html
name: StaticSpriteBatch
nameWithType: StaticSpriteBatch
fullName: MLEM.Graphics.StaticSpriteBatch
- uid: MLEM.Graphics
commentId: N:MLEM.Graphics
href: MLEM.html
name: MLEM.Graphics
nameWithType: MLEM.Graphics
fullName: MLEM.Graphics
spec.csharp:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Graphics
name: Graphics
href: MLEM.Graphics.html
spec.vb:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Graphics
name: Graphics
href: MLEM.Graphics.html