1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Added ctor

This commit is contained in:
Brian Fiete 2020-04-11 14:27:55 -07:00
parent 9a7cee9a31
commit 4ac6bfe4b5

View file

@ -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;
}
}
}