Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
maxworldinfo.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19/***********************************************************************************************
20 *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
21 ***********************************************************************************************
22 * *
23 * Project Name : Max2W3D *
24 * *
25 * $Archive:: /Commando/Code/Tools/max2w3d/maxworldinfo.h $*
26 * *
27 * Original Author:: Patrick Smith *
28 * *
29 * $Author:: Greg_h $*
30 * *
31 * $Modtime:: 10/27/00 6:55p $*
32 * *
33 * $Revision:: 2 $*
34 * *
35 *---------------------------------------------------------------------------------------------*
36 * Functions: *
37 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
38
39#ifndef MAXWORLDINFO_H
40#define MAXWORLDINFO_H
41
42
43#include <Max.h>
44#include "meshbuild.h"
45#include "nodelist.h"
46#include "vector.h"
47
48
50
51
58{
59 public:
61 : MeshList (mesh_list),
62 SmoothBetweenMeshes (true),
63 CurrentTask(NULL),
64 CurrentTime(0) { }
65 virtual ~MaxWorldInfoClass(void) { }
66
67 // Public methods
68 virtual Vector3 Get_Shared_Vertex_Normal(Vector3 pos, int smgroup);
69
70 virtual GeometryExportTaskClass * Get_Current_Task(void) const { return CurrentTask; }
71 virtual void Set_Current_Task(GeometryExportTaskClass * task) { CurrentTask = task; }
72
73 virtual TimeValue Get_Current_Time(void) const { return CurrentTime; }
74 virtual void Set_Current_Time(TimeValue &time) { CurrentTime = time; }
75
76 virtual Matrix3 Get_Export_Transform(void) const { return ExportTrans; }
77 virtual void Set_Export_Transform(const Matrix3 &matrix) { ExportTrans = matrix; }
78
79 virtual void Allow_Mesh_Smoothing (bool onoff) { SmoothBetweenMeshes = onoff; }
80 virtual bool Are_Meshes_Smoothed (void) const { return SmoothBetweenMeshes; }
81
82 private:
83
85 GeometryExportTaskClass * CurrentTask;
86 TimeValue CurrentTime;
87 Matrix3 ExportTrans;
88 bool SmoothBetweenMeshes;
89};
90
91
92
93#endif
#define NULL
Definition BaseType.h:92
@ true
Definition bool.h:59
MaxWorldInfoClass(DynamicVectorClass< GeometryExportTaskClass * > &mesh_list)
virtual void Set_Current_Task(GeometryExportTaskClass *task)
virtual void Set_Export_Transform(const Matrix3 &matrix)
virtual TimeValue Get_Current_Time(void) const
virtual Vector3 Get_Shared_Vertex_Normal(Vector3 pos, int smgroup)
virtual void Set_Current_Time(TimeValue &time)
virtual ~MaxWorldInfoClass(void)
virtual bool Are_Meshes_Smoothed(void) const
virtual void Allow_Mesh_Smoothing(bool onoff)
virtual GeometryExportTaskClass * Get_Current_Task(void) const
virtual Matrix3 Get_Export_Transform(void) const
WorldInfoClass(void)
Definition meshbuild.h:64