public Mdl(mdl_t mdlTStruct, texgroup_struct[] tgs, stvert_t[] vertData, dtriangle_t[] triData, frame_struct[] frame ) { this.header = mdlTStruct; this.texGroup = tgs; this.vertex = vertData; this.triangle = triData; this.frame = frame; }
private stvert_t[] readVertData(mdl_t mdlTStruct, System.IO.FileStream fstream) { stvert_t[] vertData = new stvert_t[mdlTStruct.numverts]; for(int vert_num = 0; vert_num < mdlTStruct.numverts; vert_num++) { vertData[vert_num].onseam = readInt(fstream); vertData[vert_num].s = readInt(fstream); vertData[vert_num].t = readInt(fstream); } return vertData; }