using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ZPG_2011_Moulis_Jan_A09B0359P { class OBJObject { private SingleObject[] objects; private uint[] tex; public OBJObject(SingleObject[] objects, uint[] tex) { this.objects = objects; this.tex = tex; } public void render(uint[] textures) { for (int i = 0; i < objects.Length; i++) { objects[i].render(tex[i]); } } public void destroy() { for (int i = 0; i < objects.Length; i++) { objects[i].destroy(); } } } }