- Timestamp:
- 07/16/08 11:28:52 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp
r2839 r2840 8 8 #include "Matrix4x4.h" 9 9 #include "Vector3.h" 10 #include "Transform3.h" 10 11 11 12 … … 41 42 str.read(reinterpret_cast<char *>(&hasTrafo), sizeof(bool)); 42 43 43 Matrix4x4 * trafo;44 Matrix4x4 *m; 44 45 45 46 SceneEntity *sceneGeom; … … 47 48 if (!hasTrafo) 48 49 { 49 trafo= NULL;50 m = NULL; 50 51 } 51 52 else 52 53 { 53 trafo = new Matrix4x4(); 54 str.read(reinterpret_cast<char *>(trafo->x), sizeof(Matrix4x4)); 55 mTrafos.push_back(trafo); 56 } 57 54 m = new Matrix4x4(); 55 str.read(reinterpret_cast<char *>(m->x), sizeof(Matrix4x4)); 56 } 57 58 Transform3 *trafo = new Transform3(m); 59 mTrafos.push_back(trafo); 60 58 61 // use instancing 59 62 sceneGeom = new SceneEntity(trafo);
Note: See TracChangeset
for help on using the changeset viewer.