There are several basic types in Orbiter that are defined in multiple places. For, example:
- OrbiterSDK defines:
- Orbiter itself defines:
- Then, the DX7 client has a duplicate file
IMHO all these types should consolidated and live in one place, where they are accessible to the add-ons and the main Orbiter code. I am guessing they should be defined in a separate file in the
But, I am not familiar enough with Orbiter's code base and would like to get some input from other developers.
- OrbiterSDK defines:
FVECTOR2
, FVECTOR3
, FVECTOR4
and FMATRIX4
in DrawAPI.h
. Plus, VECTOR3
, VECTOR4
, MATRIX3
and MATRIX4
all with double data type in OrbiterAPI.h
.- Orbiter itself defines:
Vector
(3 double elements), Vector4
(double), Matrix
(3x3 double), Matrix4
(4x4 double) in Vecmat.h
. And, VECTOR2D
is D3D7Util.h.- Then, the DX7 client has a duplicate file
D3D7Util.h
which also defines VECTOR2D
.IMHO all these types should consolidated and live in one place, where they are accessible to the add-ons and the main Orbiter code. I am guessing they should be defined in a separate file in the
OrbiterSDK/include
dir, since it is included in both the SDK and the main code.But, I am not familiar enough with Orbiter's code base and would like to get some input from other developers.