Class GorgonPolySpriteVertex
Represents an immutable vertex for a GorgonPolySprite.
Inherited Members
Namespace: Gorgon.Renderers
Assembly: Gorgon.Renderers.Gorgon2D.dll
Syntax
public class GorgonPolySpriteVertex
Constructors
| Edit this page View SourceGorgonPolySpriteVertex(Vector2, GorgonColor, Vector2)
Initializes a new instance of the GorgonPolySpriteVertex class.
Declaration
public GorgonPolySpriteVertex(Vector2 position, GorgonColor color, Vector2 textureCoordinate)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | position | The position of the vertex. |
GorgonColor | color | The color for the vertex. |
Vector2 | textureCoordinate | The texture coordinates. |
Properties
| Edit this page View SourceColor
Property to return the color of the vertex.
Declaration
public GorgonColor Color { get; }
Property Value
Type | Description |
---|---|
GorgonColor |
Position
Property to return the position of the vertex in space.
Declaration
public Vector2 Position { get; }
Property Value
Type | Description |
---|---|
Vector2 |
TextureCoordinate
Property to return the texture coordinate (in texel space).
Declaration
public Vector2 TextureCoordinate { get; }
Property Value
Type | Description |
---|---|
Vector2 |