Another restructure with code updates.

Updated RectTextrue.cs, VertexInformation.cs, and IDrawable.cs to properly pass indice information.
This commit is contained in:
2020-02-20 18:07:17 -05:00
parent 1a9ff8a26f
commit 519d31f2e1
38 changed files with 62 additions and 10 deletions

View File

@@ -0,0 +1,27 @@
namespace RecrownedGTK.Types
{
public class Rectangle
{
public virtual float Width {set; get;}
public virtual float Height {set; get;}
public virtual float X {set; get;}
public virtual float Y {set; get;}
public float Area {
get {
return Width * Height;
}
}
public Rectangle() {
}
public Rectangle(float x, float y, float width, float height) {
Width = width;
Height = height;
X = x;
Y = y;
}
}
}