Assembly: VRage.Game.dll

public struct MySprite: IEquatable<MySprite>

Fields

Member Description
Alignment Alignment for the text and sprites.
Color Color mask to be used when rendering this layer. If not set, white will be used
Data Data to be rendered, depending on what the layer type is. This can be text or a texture path
FontId In case we are rendering text, what font to use.
Position Render position for this layer. If not set, it will be placed in the center
RotationOrScale Rotation of sprite in radians. Used as scale for text.
Size Render size for this layer. If not set, it will be sized to take up the whole texture
Type Type of the render layer

Constructors

Member Description
MySprite(SpriteType, string, Vector2?, Vector2?, Color?, string, TextAlignment, float)

Methods

Member Description
static CreateClearClipRect()
static CreateClipRect(Rectangle)
static CreateSprite(string, Vector2, Vector2)
static CreateText(string, string, Color, float, TextAlignment)
Equals(MySprite)
Equals(object)
GetHashCode()

Implements: