Update of /cvsroot/plib/plib/src/ssg
In directory sc8-pr-cvs1:/tmp/cvs-serv20767
Modified Files:
ssgLoadMDL.cxx
Log Message:
Implemented the most important commands for CFS2 and FS2k2 files (includign "functionality").
Split off some functions for better readability
Index: ssgLoadMDL.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadMDL.cxx,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- ssgLoadMDL.cxx 6 Dec 2003 18:25:38 -0000 1.48
+++ ssgLoadMDL.cxx 8 Dec 2003 08:22:12 -0000 1.49
@@ -256,6 +256,21 @@
}
//===========================================================================
+// for new lists, especially vertex list:
+
+struct oneVertex {
+ sgVec3 p, n; // point position, normal
+ sgVec2 tc; // texture coords
+};
+
+struct oneVertex *TheVertexList; // array. Kludge: only one allowed
[...697 lines suppressed...]
#ifdef DEBUG
- fclose(wkfp);
+ fclose(wkfp);
#endif
- delete curr_vtx_;
- delete curr_norm_;
-
- DEBUGPRINT("\n" << vertex_array_->getNum() << " vertices\n");
- printf("NoLoDs = %d\n", (int)noLoDs);
+ delete curr_vtx_;
+ delete curr_norm_;
+
+ DEBUGPRINT("\n" << vertex_array_->getNum() << " vertices\n");
+ printf("NoLoDs = %d\n", (int)noLoDs);
- return model_;
+ return model_;
}
#else
|