Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
VertexColors.cs
Go to the documentation of this file.
2
3namespace Terraria.Graphics;
4
5public struct VertexColors
6{
8
10
12
14
15 public VertexColors(Color color)
16 {
17 TopLeftColor = color;
18 TopRightColor = color;
19 BottomRightColor = color;
20 BottomLeftColor = color;
21 }
22
23 public VertexColors(Color topLeft, Color topRight, Color bottomRight, Color bottomLeft)
24 {
25 TopLeftColor = topLeft;
26 TopRightColor = topRight;
27 BottomLeftColor = bottomLeft;
28 BottomRightColor = bottomRight;
29 }
30
31 public static implicit operator VertexColors(Color color)
32 {
33 return new VertexColors(color);
34 }
35}
VertexColors(Color topLeft, Color topRight, Color bottomRight, Color bottomLeft)