Mercurial > mm7
comparison IndoorCameraD3D.cpp @ 2463:0f17a30149ec
cleaning project part 1
author | zipi |
---|---|
date | Sun, 17 Aug 2014 15:13:18 +0100 |
parents | f4af3b203f65 |
children | b054ea5daf45 |
comparison
equal
deleted
inserted
replaced
2462:1d04e48651d4 | 2463:0f17a30149ec |
---|---|
7 #include "IndoorCameraD3D.h" | 7 #include "IndoorCameraD3D.h" |
8 #include "VectorTypes.h" | 8 #include "VectorTypes.h" |
9 #include "Game.h" | 9 #include "Game.h" |
10 #include "Indoor.h" | 10 #include "Indoor.h" |
11 #include "Viewport.h" | 11 #include "Viewport.h" |
12 #include "Outdoor_stuff.h" | |
13 #include "Render.h" | 12 #include "Render.h" |
14 #include "LOD.h" | 13 #include "LOD.h" |
15 #include "OurMath.h" | 14 #include "OurMath.h" |
16 #include "mm7_data.h" | 15 #include "mm7_data.h" |
17 | 16 |
1261 if ( (signed int)*pOutNumVertices < 3 ) | 1260 if ( (signed int)*pOutNumVertices < 3 ) |
1262 *pOutNumVertices = 0; | 1261 *pOutNumVertices = 0; |
1263 } | 1262 } |
1264 } | 1263 } |
1265 | 1264 |
1265 //----- (00481D77) -------------------------------------------------------- | |
1266 void _outdoor_project(RenderVertexSoft *v) | |
1267 { | |
1268 double v1; // st7@1 | |
1269 double v2; // st7@1 | |
1270 | |
1271 v1 = 1.0 / (v->vWorldViewPosition.x + 0.0000001); | |
1272 v->_rhw = v1; | |
1273 v2 = v1 * (double)pODMRenderParams->int_fov_rad; | |
1274 v->vWorldViewProjX = (double)pViewport->uScreenCenterX - v2 * v->vWorldViewPosition.y; | |
1275 v->vWorldViewProjY = (double)pViewport->uScreenCenterY - v2 * v->vWorldViewPosition.z; | |
1276 } | |
1277 | |
1266 //----- (00436BB7) -------------------------------------------------------- | 1278 //----- (00436BB7) -------------------------------------------------------- |
1267 void IndoorCameraD3D::Project(RenderVertexSoft *pVertices, unsigned int uNumVertices, char a4) | 1279 void IndoorCameraD3D::Project(RenderVertexSoft *pVertices, unsigned int uNumVertices, char a4) |
1268 { | 1280 { |
1269 double v7; // st7@7 | 1281 double v7; // st7@7 |
1270 double v8; // st7@9 | 1282 double v8; // st7@9 |