7 #ifndef CAFU_MAPFILE_HPP_INCLUDED
8 #define CAFU_MAPFILE_HPP_INCLUDED
12 #include "Templates/Array.hpp"
13 #include "Math3D/Vector3.hpp"
14 #include "Math3D/Plane3.hpp"
15 #include "Math3D/BoundingBox.hpp"
16 #include "Math3D/Matrix.hpp"
116 std::string DescrFileName;
117 unsigned int RandomSeed;
133 std::string CollModel;
140 float FrameTimeScale;
163 std::map<std::string, std::string> MFProperties;
MapFileTerrainT()
The default constructor.
Definition: MapFile.hpp:77
ArrayT< float > ControlPoints
The SizeX*SizeY*5 control points.
Definition: MapFile.hpp:70
Definition: MapFile.hpp:53
Definition: MapFile.hpp:145
MapFileBrushT()
The default constructor.
Definition: MapFile.hpp:43
Vector3T< T > Max
The maximum-coordinate corner of the bounding-box.
Definition: BoundingBox.hpp:210
BoundingBox3dT Bounds
The terrains bounds.
Definition: MapFile.hpp:100
T y
The y-component of this vector.
Definition: Vector3.hpp:41
ArrayT< unsigned short > HeightData
The SideLength*SideLength array of height data.
Definition: MapFile.hpp:103
Vector3T< T > Min
The minimum-coordinate corner of the bounding-box.
Definition: BoundingBox.hpp:209
Definition: MapFile.hpp:107
Vector3dT V
The second span vector of the texture projection plane.
Definition: MapFile.hpp:34
int SubdivsVert
Number of subdivisions in vertical direction, or auto-detection if -1.
Definition: MapFile.hpp:67
Definition: MapFile.hpp:123
MaterialT * Material
The patches material.
Definition: MapFile.hpp:69
double ShiftU
Texture "scroll offset" in direction of U.
Definition: MapFile.hpp:35
This class represents a surface material ("A datastructural representation of a scripts material def...
Definition: Material.hpp:22
unsigned long SizeY
Nr of rows.
Definition: MapFile.hpp:64
unsigned long SideLength
Side length of the terrains height data.
Definition: MapFile.hpp:102
MapFileBezierPatchT()
The default constructor.
Definition: MapFile.hpp:56
void Transform(const Matrix4x4fT &Mat)
Transforms all primitives in this entity by the given matrix.
Definition: MapFile.cpp:284
unsigned long MFIndex
In the source cmap file, this was/is the MFIndex-th entity. Normally (e.g. immediately after loading ...
Definition: MapFile.hpp:157
MapFileModelT()
The default constructor.
Definition: MapFile.hpp:126
Definition: MapFile.hpp:40
Definition: MapFile.hpp:74
MapFilePlantT()
The default constructor.
Definition: MapFile.hpp:110
double ShiftV
Texture "scroll offset" in direction of V.
Definition: MapFile.hpp:36
MapFileEntityT()
The default constructor.
Definition: MapFile.hpp:148
Vector3dT U
The first span vector of the texture projection plane.
Definition: MapFile.hpp:33
T z
The z-component of this vector.
Definition: Vector3.hpp:42
This struct describes a plane (and thus one side) of a map brush.
Definition: MapFile.hpp:28
unsigned long SizeX
Nr of columns.
Definition: MapFile.hpp:63
T x
The x-component of this vector.
Definition: Vector3.hpp:40
int SubdivsHorz
Number of subdivisions in horizontal direction, or auto-detection if -1.
Definition: MapFile.hpp:66
MaterialT * Material
The planes material.
Definition: MapFile.hpp:32
MaterialT * Material
The terrains material.
Definition: MapFile.hpp:101
Definition: Renderer.hpp:16
Vector3dT GetSpatial(unsigned long x, unsigned long y) const
Returns the spatial coordinate for the given (logical) height field position.
Definition: MapFile.hpp:88
This is a class for parsing text.
Definition: TextParser.hpp:21