Common.Color has been refactored a bit. The rename to Color3 means it no longer conflicts with System.Drawing.Color, and it's intended to match the naming convention of OpenTK.Graphics.Color4. Additionally, being changed to a struct is more fitting for how the type is used. I've done tests on the memory impact of switching and couldn't see any difference.
Color3 now has equality functions, and so it can be used instead of Vector3 for caching and lookup.
Color3.ToString now outputs the color in integer format (each channel is 0-255).
Fixed TexturePreviewer using System.Drawing.Color equality, which is a big no because System.Drawing.Color checks for equality with stupid things like known color names. Technically this didn't affect the code at all, since all colors were created from RGB values, but it's still bad practice to use it.
Shader now uses Color3 and Color4 instead of Vectors where Color is appropriate.
Refactored BFFParser to no longer use TriangleFromPrimitive.
Common.Color
has been refactored a bit. The rename toColor3
means it no longer conflicts withSystem.Drawing.Color
, and it's intended to match the naming convention ofOpenTK.Graphics.Color4
. Additionally, being changed to a struct is more fitting for how the type is used. I've done tests on the memory impact of switching and couldn't see any difference.