From 4ac6bfe4b55bd1f592a1fbd0d1592ffc63291c4e Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 11 Apr 2020 14:27:55 -0700 Subject: [PATCH] Added ctor --- BeefLibs/Beefy2D/src/gfx/DefaultVertex.bf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/BeefLibs/Beefy2D/src/gfx/DefaultVertex.bf b/BeefLibs/Beefy2D/src/gfx/DefaultVertex.bf index f91dba25..133616cc 100644 --- a/BeefLibs/Beefy2D/src/gfx/DefaultVertex.bf +++ b/BeefLibs/Beefy2D/src/gfx/DefaultVertex.bf @@ -21,5 +21,22 @@ namespace Beefy.gfx { sVertexDefinition = new VertexDefinition(typeof(DefaultVertex)); } + + public this() + { + this = default; + } + + public this(float x, float y, float u, float v, Color color) + { + mPos.mX = x; + mPos.mY = y; + mPos.mZ = 0; + + mTexCoords.mU = u; + mTexCoords.mV = v; + + mColor = (.)color; + } } }