public ObjObject(ObjModel parentModel, string name) { if (parentModel == null) { throw new ArgumentNullException("parentModel", "Parent model cannot be null!"); } if (name == null) { throw new ArgumentNullException("name", "Name cannot be null!"); } ListId = GL.GenLists(1); Name = name; Faces = new List <ObjFace>(); ParentModel = parentModel; }
public ObjObject(ObjModel parentModel) : this(parentModel, string.Empty) { }