mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Added ctor
This commit is contained in:
parent
9a7cee9a31
commit
4ac6bfe4b5
1 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue