Class SpriteShape
Represents a shape that can be rendered as a sprite.
Inherited Members
Namespace: Genesis.Graphics.Shapes
Assembly: Genesis.dll
Syntax
public class SpriteShape : Shape
Constructors
SpriteShape()
Declaration
public SpriteShape()
Methods
GetShape()
Gets the vertices defining the sprite shape.
Declaration
public override float[] GetShape()
Returns
Type | Description |
---|---|
float[] | An array of floating-point values representing the vertices, colors, and texture coordinates. |
Overrides
Remarks
The vertices are defined in the following order:
- Vertex positions (x, y, z)
- Colors (r, g, b)
- Texture coordinates (u, v)