Gorgon
Show / Hide Table of Contents

Class GorgonPolySpriteVertex

Represents an immutable vertex for a GorgonPolySprite.

Inheritance
object
GorgonPolySpriteVertex
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Renderers
Assembly: Gorgon.Renderers.Gorgon2D.dll
Syntax
public class GorgonPolySpriteVertex

Constructors

| Edit this page View Source

GorgonPolySpriteVertex(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 Source

Color

Property to return the color of the vertex.

Declaration
public GorgonColor Color { get; }
Property Value
Type Description
GorgonColor
| Edit this page View Source

Position

Property to return the position of the vertex in space.

Declaration
public Vector2 Position { get; }
Property Value
Type Description
Vector2
| Edit this page View Source

TextureCoordinate

Property to return the texture coordinate (in texel space).

Declaration
public Vector2 TextureCoordinate { get; }
Property Value
Type Description
Vector2

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author