### YamlMime:ManagedReference
items:
- uid: MLEM.Graphics.SpriteBatchExtensions
commentId: T:MLEM.Graphics.SpriteBatchExtensions
id: SpriteBatchExtensions
parent: MLEM.Graphics
children:
- MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,Microsoft.Xna.Framework.Color)
- MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
- MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.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.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,Microsoft.Xna.Framework.Color)
- MLEM.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
- MLEM.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.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.Graphics.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Int32)
- MLEM.Graphics.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.Graphics.SpriteBatchExtensions.GenerateSquareTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color)
- MLEM.Graphics.SpriteBatchExtensions.GenerateTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Nullable{Microsoft.Xna.Framework.Color})
- MLEM.Graphics.SpriteBatchExtensions.GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
langs:
- csharp
- vb
name: SpriteBatchExtensions
nameWithType: SpriteBatchExtensions
fullName: MLEM.Graphics.SpriteBatchExtensions
type: Class
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: SpriteBatchExtensions
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 9
assemblies:
- MLEM
namespace: MLEM.Graphics
summary: A set of extensions for dealing with
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.Graphics.SpriteBatchExtensions.GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
commentId: M:MLEM.Graphics.SpriteBatchExtensions.GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
id: GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
isExtensionMethod: true
parent: MLEM.Graphics.SpriteBatchExtensions
langs:
- csharp
- vb
name: GetBlankTexture(SpriteBatch)
nameWithType: SpriteBatchExtensions.GetBlankTexture(SpriteBatch)
fullName: MLEM.Graphics.SpriteBatchExtensions.GetBlankTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch)
type: Method
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GetBlankTexture
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 19
assemblies:
- MLEM
namespace: MLEM.Graphics
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.Graphics.SpriteBatchExtensions.GetBlankTexture*
- uid: MLEM.Graphics.SpriteBatchExtensions.GenerateTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Nullable{Microsoft.Xna.Framework.Color})
commentId: M:MLEM.Graphics.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.Graphics.SpriteBatchExtensions
langs:
- csharp
- vb
name: GenerateTexture(SpriteBatch, Color, Color?)
nameWithType: SpriteBatchExtensions.GenerateTexture(SpriteBatch, Color, Color?)
fullName: MLEM.Graphics.SpriteBatchExtensions.GenerateTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Color?)
type: Method
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GenerateTexture
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 36
assemblies:
- MLEM
namespace: MLEM.Graphics
summary: >-
Generates a 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 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.Graphics.SpriteBatchExtensions.GenerateTexture*
- uid: MLEM.Graphics.SpriteBatchExtensions.GenerateSquareTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Graphics.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.Graphics.SpriteBatchExtensions
langs:
- csharp
- vb
name: GenerateSquareTexture(SpriteBatch, Color)
nameWithType: SpriteBatchExtensions.GenerateSquareTexture(SpriteBatch, Color)
fullName: MLEM.Graphics.SpriteBatchExtensions.GenerateSquareTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GenerateSquareTexture
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 55
assemblies:
- MLEM
namespace: MLEM.Graphics
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.Graphics.SpriteBatchExtensions.GenerateSquareTexture*
- uid: MLEM.Graphics.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Color,System.Int32)
commentId: M:MLEM.Graphics.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.Graphics.SpriteBatchExtensions
langs:
- csharp
- vb
name: GenerateCircleTexture(SpriteBatch, Color, int)
nameWithType: SpriteBatchExtensions.GenerateCircleTexture(SpriteBatch, Color, int)
fullName: MLEM.Graphics.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, int)
type: Method
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GenerateCircleTexture
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 71
assemblies:
- MLEM
namespace: MLEM.Graphics
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.Graphics.SpriteBatchExtensions.GenerateCircleTexture*
nameWithType.vb: SpriteBatchExtensions.GenerateCircleTexture(SpriteBatch, Color, Integer)
fullName.vb: MLEM.Graphics.SpriteBatchExtensions.GenerateCircleTexture(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Color, Integer)
name.vb: GenerateCircleTexture(SpriteBatch, Color, Integer)
- uid: MLEM.Graphics.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.Graphics.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.Graphics.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.Graphics.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/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: GenerateGradientTexture
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 98
assemblies:
- MLEM
namespace: MLEM.Graphics
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.Graphics.SpriteBatchExtensions.GenerateGradientTexture*
nameWithType.vb: SpriteBatchExtensions.GenerateGradientTexture(SpriteBatch, Color, Color, Color, Color, Integer, Integer)
fullName.vb: MLEM.Graphics.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.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.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.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.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.Maths.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.Graphics.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.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Maths.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/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Draw
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 122
assemblies:
- MLEM
namespace: MLEM.Graphics
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.Maths.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.Graphics.SpriteBatchExtensions.Draw*
nameWithType.vb: SpriteBatchExtensions.Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color, Single, Vector2, SpriteEffects, Single)
fullName.vb: MLEM.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Maths.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.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
id: Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Graphics.SpriteBatchExtensions
langs:
- csharp
- vb
name: Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color)
nameWithType: SpriteBatchExtensions.Draw(SpriteBatch, Texture2D, RectangleF, Rectangle?, Color)
fullName: MLEM.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Maths.RectangleF, Microsoft.Xna.Framework.Rectangle?, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Draw
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 134
assemblies:
- MLEM
namespace: MLEM.Graphics
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.Maths.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.Graphics.SpriteBatchExtensions.Draw*
- uid: MLEM.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,Microsoft.Xna.Framework.Color)
id: Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Graphics.SpriteBatchExtensions
langs:
- csharp
- vb
name: Draw(SpriteBatch, Texture2D, RectangleF, Color)
nameWithType: SpriteBatchExtensions.Draw(SpriteBatch, Texture2D, RectangleF, Color)
fullName: MLEM.Graphics.SpriteBatchExtensions.Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Maths.RectangleF, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Draw
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 143
assemblies:
- MLEM
namespace: MLEM.Graphics
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.Maths.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.Graphics.SpriteBatchExtensions.Draw*
- uid: MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.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.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.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.Maths.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.Graphics.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.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Maths.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/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Add
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 148
assemblies:
- MLEM
namespace: MLEM.Graphics
summary: >-
Adds an item to this batch.
Note that this batch needs to currently be batching, meaning 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.Maths.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 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.Graphics.SpriteBatchExtensions.Add*
nameWithType.vb: SpriteBatchExtensions.Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color, Single, Vector2, SpriteEffects, Single)
fullName.vb: MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Maths.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.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
id: Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,System.Nullable{Microsoft.Xna.Framework.Rectangle},Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Graphics.SpriteBatchExtensions
langs:
- csharp
- vb
name: Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color)
nameWithType: SpriteBatchExtensions.Add(StaticSpriteBatch, Texture2D, RectangleF, Rectangle?, Color)
fullName: MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Maths.RectangleF, Microsoft.Xna.Framework.Rectangle?, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Add
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 155
assemblies:
- MLEM
namespace: MLEM.Graphics
summary: >-
Adds an item to this batch.
Note that this batch needs to currently be batching, meaning 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.Maths.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 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.Graphics.SpriteBatchExtensions.Add*
- uid: MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,Microsoft.Xna.Framework.Color)
commentId: M:MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,Microsoft.Xna.Framework.Color)
id: Add(MLEM.Graphics.StaticSpriteBatch,Microsoft.Xna.Framework.Graphics.Texture2D,MLEM.Maths.RectangleF,Microsoft.Xna.Framework.Color)
isExtensionMethod: true
parent: MLEM.Graphics.SpriteBatchExtensions
langs:
- csharp
- vb
name: Add(StaticSpriteBatch, Texture2D, RectangleF, Color)
nameWithType: SpriteBatchExtensions.Add(StaticSpriteBatch, Texture2D, RectangleF, Color)
fullName: MLEM.Graphics.SpriteBatchExtensions.Add(MLEM.Graphics.StaticSpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D, MLEM.Maths.RectangleF, Microsoft.Xna.Framework.Color)
type: Method
source:
remote:
path: MLEM/Graphics/SpriteBatchExtensions.cs
branch: main
repo: https://github.com/Ellpeck/MLEM
id: Add
path: ../MLEM/Graphics/SpriteBatchExtensions.cs
startLine: 160
assemblies:
- MLEM
namespace: MLEM.Graphics
summary: >-
Adds an item to this batch.
Note that this batch needs to currently be batching, meaning 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.Maths.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 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.Graphics.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.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
- 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.Graphics.SpriteBatchExtensions.GetBlankTexture*
commentId: Overload:MLEM.Graphics.SpriteBatchExtensions.GetBlankTexture
href: MLEM.Graphics.SpriteBatchExtensions.html#MLEM_Graphics_SpriteBatchExtensions_GetBlankTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_
name: GetBlankTexture
nameWithType: SpriteBatchExtensions.GetBlankTexture
fullName: MLEM.Graphics.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.Graphics.SpriteBatchExtensions.GenerateTexture*
commentId: Overload:MLEM.Graphics.SpriteBatchExtensions.GenerateTexture
href: MLEM.Graphics.SpriteBatchExtensions.html#MLEM_Graphics_SpriteBatchExtensions_GenerateTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Color_System_Nullable_Microsoft_Xna_Framework_Color__
name: GenerateTexture
nameWithType: SpriteBatchExtensions.GenerateTexture
fullName: MLEM.Graphics.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
nameWithType: Nullable
fullName: System.Nullable
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.Graphics.SpriteBatchExtensions.GenerateSquareTexture*
commentId: Overload:MLEM.Graphics.SpriteBatchExtensions.GenerateSquareTexture
href: MLEM.Graphics.SpriteBatchExtensions.html#MLEM_Graphics_SpriteBatchExtensions_GenerateSquareTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Color_
name: GenerateSquareTexture
nameWithType: SpriteBatchExtensions.GenerateSquareTexture
fullName: MLEM.Graphics.SpriteBatchExtensions.GenerateSquareTexture
- uid: MLEM.Graphics.SpriteBatchExtensions.GenerateCircleTexture*
commentId: Overload:MLEM.Graphics.SpriteBatchExtensions.GenerateCircleTexture
href: MLEM.Graphics.SpriteBatchExtensions.html#MLEM_Graphics_SpriteBatchExtensions_GenerateCircleTexture_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Color_System_Int32_
name: GenerateCircleTexture
nameWithType: SpriteBatchExtensions.GenerateCircleTexture
fullName: MLEM.Graphics.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.Graphics.SpriteBatchExtensions.GenerateGradientTexture*
commentId: Overload:MLEM.Graphics.SpriteBatchExtensions.GenerateGradientTexture
href: MLEM.Graphics.SpriteBatchExtensions.html#MLEM_Graphics_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.Graphics.SpriteBatchExtensions.GenerateGradientTexture
- uid: MLEM.Graphics.SpriteBatchExtensions.Draw*
commentId: Overload:MLEM.Graphics.SpriteBatchExtensions.Draw
href: MLEM.Graphics.SpriteBatchExtensions.html#MLEM_Graphics_SpriteBatchExtensions_Draw_Microsoft_Xna_Framework_Graphics_SpriteBatch_Microsoft_Xna_Framework_Graphics_Texture2D_MLEM_Maths_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.Graphics.SpriteBatchExtensions.Draw
- uid: MLEM.Maths.RectangleF
commentId: T:MLEM.Maths.RectangleF
parent: MLEM.Maths
href: MLEM.Maths.RectangleF.html
name: RectangleF
nameWithType: RectangleF
fullName: MLEM.Maths.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.Maths
commentId: N:MLEM.Maths
href: MLEM.html
name: MLEM.Maths
nameWithType: MLEM.Maths
fullName: MLEM.Maths
spec.csharp:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Maths
name: Maths
href: MLEM.Maths.html
spec.vb:
- uid: MLEM
name: MLEM
href: MLEM.html
- name: .
- uid: MLEM.Maths
name: Maths
href: MLEM.Maths.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.Graphics.SpriteBatchExtensions.Add*
commentId: Overload:MLEM.Graphics.SpriteBatchExtensions.Add
href: MLEM.Graphics.SpriteBatchExtensions.html#MLEM_Graphics_SpriteBatchExtensions_Add_MLEM_Graphics_StaticSpriteBatch_Microsoft_Xna_Framework_Graphics_Texture2D_MLEM_Maths_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.Graphics.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