The scenery models (AnimModel.h), the sweeps (Sweep.h) and the camera
(Camera.h, which Globals.h includes) pulled in the whole vehicle header, for
one structure (material_data) and a pointer type.
- model/materialdata.h/.cpp: material_data and TextureTest(), moved from
DynObj.h/.cpp as they were
- Camera.h names TDynamicObject through utilities/Classes.h
- Classes.h includes interfaces/ITexture.h for null_handle, the value of the
handles it defines; AnimModel.h includes utilities/Names.h for basic_table
itself. Both came through DynObj.h before.
- the files that use the vehicles include vehicle/DynObj.h themselves
164 of the 730 objects of the build depend on DynObj.h now, 304 before.
No change in behaviour: 1142/1142 tests, golden traces exact against staging
62f7a29b.
The roll of the camera is multiplied in first, so it turns the view about
the line of sight. 623c4f82 once moved it last, which nodded the view up
and down when looking out of a side window with the cab swaying; #414 put
it back. The new tests check the axes of the view matrix for several
pitch, yaw and roll values: the line of sight follows the pitch and the
yaw whatever the roll, the roll turns the up and right axes about the
line of sight, and in the cab the view out of a side window stays level.
With the roll moved back last, all three test cases fail.
The test binary now compiles vehicle/Camera.cpp itself, with stubs for
the command queue and the clock. The smoke colour of a cold diesel (#413)
stays untested: it lives in rendering/particles.cpp, which needs the
world environment and a whole vehicle to link.