diff Outdoor_stuff.h @ 1637:2c71fa8913d2

class OutdoorCamera -> ODMRenderParams
author Nomad
date Tue, 17 Sep 2013 14:10:41 +0200
parents 499761153844
children ccde94f02b75
line wrap: on
line diff
--- a/Outdoor_stuff.h	Tue Sep 17 12:40:37 2013 +0200
+++ b/Outdoor_stuff.h	Tue Sep 17 14:10:41 2013 +0200
@@ -89,72 +89,67 @@
 
 
 
-/*  143 */
+
+
+/*   88 */
 #pragma pack(push, 1)
-struct Span
+struct ODMRenderParams
 {
-  Span *pNext;
-  struct Polygon *pParent;
-  __int16 field_8;
-  __int16 field_A;
-  __int16 field_C;
-  __int16 field_E;
-  float field_10;
-  float field_14;
+  //----- (00462684) --------------------------------------------------------
+  ODMRenderParams()
+  {
+    uPickDepth = 0;
+    this->shading_dist_shade = 2048;
+    shading_dist_shademist = 4096;
+    shading_dist_mist = 8192;
+    int_fov_rad = 0;
+    this->bNoSky = 0;
+    this->bDoNotRenderDecorations = 0;
+    this->field_5C = 0;
+    this->field_60 = 0;
+    this->outdoor_no_wavy_water = 0;
+    this->outdoor_no_mist = 0;
+  }
+
+  void Initialize();
+  void RotationToInts();
+
+  int uPickDepth;
+  int shading_dist_shade;
+  int shading_dist_shademist;
+  int shading_dist_mist;
+  unsigned int uCameraFovInDegrees;
+  int int_fov_rad;
+  int int_fov_rad_inv;
+  int camera_rotation_y_int_sine;
+  int camera_rotation_y_int_cosine;
+  int camera_rotation_x_int_sine;
+  int camera_rotation_x_int_cosine;
+  int uNumPolygons;
+  unsigned int uNumEdges;
+  unsigned int uNumSurfs;
+  unsigned int uNumSpans;
+  unsigned int uNumBillboards;
+  float field_40;
+  int field_44;
+  int outdoor_grid_band_3;
+  int field_4C;
+  int field_50;
+  unsigned int bNoSky;
+  unsigned int bDoNotRenderDecorations;
+  int field_5C;
+  int field_60;
+  int outdoor_no_wavy_water;
+  int outdoor_no_mist;
+  int building_gamme;
+  int terrain_gamma;
+  
+  int rotation_y;  // moved from 157 struct IndoorCamera
+  int rotation_x;
 };
 #pragma pack(pop)
+extern ODMRenderParams *pODMRenderParams;
 
 
 
-/*  144 */
-#pragma pack(push, 1)
-struct Surf
-{
-  float field_0;
-  float field_4;
-  float field_8;
-  float field_C;
-  float field_10;
-  Surf *pNext;
-  Surf *pPrev;
-  struct Polygon *pParent;
-  __int16 field_20;
-  __int16 field_22;
-};
-#pragma pack(pop)
-extern Surf stru_80C980;
-
-
-
-
-/*  145 */
-#pragma pack(push, 1)
-struct Edge
-{
-  float field_0;
-  float field_4;
-  int field_8;
-  Surf *pSurf;
-  Edge *pNext;
-  Edge *pPrev;
-  Edge *ptr_18;
-  float field_1C;
-  float field_20;
-  float field_24;
-  float field_28;
-  float field_2C;
-  float field_30;
-};
-#pragma pack(pop)
-extern Edge defaultEdge; // weak
-
-extern Edge stru_80C9A4;
-extern Edge stru_80C9D8;
-
-
-
-
-
-
-
-
+void ODM_Project(unsigned int uNumVertices);
\ No newline at end of file