public FlatRedBall.Math.Geometry.Polygon ToPolygon() { FlatRedBall.Math.Geometry.Polygon polygon = new FlatRedBall.Math.Geometry.Polygon(); polygon.Points = Points; polygon.Position.X = X; polygon.Position.Y = Y; polygon.Position.Z = Z; polygon.RotationZ = RotationZ; polygon.Name = Name; polygon.Color = new Color( (byte)(Red * 255), (byte)(Green * 255), (byte)(Blue * 255), (byte)(Alpha * 255)); polygon.FillVertexArray(); return(polygon); }
public FlatRedBall.Math.Geometry.Polygon ToPolygon() { FlatRedBall.Math.Geometry.Polygon polygon = new FlatRedBall.Math.Geometry.Polygon(); polygon.Points = Points; polygon.Position.X = X; polygon.Position.Y = Y; polygon.Position.Z = Z; polygon.RotationZ = RotationZ; polygon.Name = Name; polygon.Color = #if FRB_MDX Color.FromArgb( (int)(Alpha * 255), (int)(Red * 255), (int)(Green * 255), (int)(Blue * 255)); #else new Color( (byte)(Red * 255), (byte)(Green * 255), (byte)(Blue * 255), (byte)(Alpha * 255)); #endif polygon.FillVertexArray(); return polygon; }