IEnumerable <Vertex2> EmitQuad(int ID, Vector2 Pos, Vector2 Size, Vector2 UV, Vector2 UVSize) { //Console.WriteLine("{0} - {1} .. {2}", ID, Pos, Pos + Size); Boxes.Add(new Tuple <int, AABB>(ID, new AABB(Pos, Size))); return(Vertex2.CreateQuad(Pos, Size, UV, UVSize, Color)); }
/*IEnumerable<Vertex2> EmitQuad(int ID, Vector2 Pos, Vector2 Size, Vector2 UV, Vector2 UVSize) { * //Console.WriteLine("{0} - {1} .. {2}", ID, Pos, Pos + Size); * * Boxes.Add(new Tuple<int, AABB>(ID, new AABB(Pos, Size))); * return Vertex2.CreateQuad(Pos, Size, UV, UVSize, Color); * }*/ IEnumerable <Vertex2> EmitQuad2(int ID, Vector2 Pos, Vector2 Size, Vector2 UVPos, Vector2 UVSize) { Boxes.Add(new Tuple <int, AABB>(ID, new AABB(Pos, Size))); return(Vertex2.CreateQuad(Pos, Size, UVPos / Texture.Size, UVSize / Texture.Size)); }