From 13108bd08907eb8941225868f2272f7a55733d49 Mon Sep 17 00:00:00 2001 From: Harrison Date: Sat, 22 Feb 2020 00:01:43 -0500 Subject: [PATCH] Reorganized extension methods class. --- RecrownedGTK/Types/Extensions.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RecrownedGTK/Types/Extensions.cs b/RecrownedGTK/Types/Extensions.cs index 5d9b6db..5556669 100644 --- a/RecrownedGTK/Types/Extensions.cs +++ b/RecrownedGTK/Types/Extensions.cs @@ -2,7 +2,7 @@ using System; using OpenTK.Graphics; using OpenTK; namespace RecrownedGTK.Types { - public static class Color4Ext { + public static class Color4Extensions { public static byte GetRedAsByte(this Color4 color) { return (byte) (color.R * Byte.MaxValue); } @@ -25,9 +25,13 @@ namespace RecrownedGTK.Types { Color4 output = new Color4(color.R * val, color.G * val, color.B * val, color.A * val); return output; } + } + + public static class Vector4Extensions { public static void FromNonPremultiplied(ref Vector4 vector) { //Premultiplied. vector = new Vector4(vector.W * vector.X, vector.W * vector.Y, vector.W * vector.Z, vector.W); } + } } \ No newline at end of file