one | Title | Data | Data Name | No |
typedef struct MthXy { Fixed32 x; /* X coordinate */ Fixed32 y; /* Y coordinate */ } MthXy;
one | Title | Data | Data Name | No |
typedef struct MthXyz { Fixed32 x; /* X coordinate */ Fixed32 y; /* Y coordinate */ Fixed32 z; /* Z coordinate */ } MthXyz;
one | Title | Data | Data Name | No |
Typedef struct MthMatrix{ Fixed32 val[3][4]; /* 3 rows and 4 columns fixed point data */ }MthMatrix
one | Title | Data | Data Name | No |
typedef struct MthMatrixTbl { Uint16 stackSize; /* Number of entries in matrix stack */ MthMatrix *current; /* Pointer to current matrix */ MthMatrix *stack; /* Matrix stack pointer */ } MthMatrixTbl;
one | Title | Data | Data Name | No |
typedef struct MthPolyTransParm { MthViewLight *viewLight; /* Coordinate system transformation parameter */ Uint32 surfCount; /* Number of polygon faces */ MthXyz *surfPoint; /* Representative point of polygon surface for surface brightness calculation */ MthXyz *surfNormal; /* Normal of polygon surface */ Sint32 *surfBright; /* Brightness calculation result of polygon surface */ Uint32 transViewVertCount; /* Number of vertex entries for viewpoint coordinate transformation */ MthXyz *transViewVertSrc; /* Vertex data before viewpoint coordinate conversion */ MthXyz *transViewVertAns; /* Vertex data after viewpoint coordinate transformation */ Uint32 gourVertCount; /* Number of vertex entries for vertex brightness calculation */ MthXyz *vertNormal; /* Vertex normal for vertex brightness calculation */ Sint32 *vertBright; /* Vertex brightness calculation result */ Uint32 transWorldVertCount;/* Number of vertex entries for world coordinate transformation */ MthXyz *transWorldVertSrc; /* Vertex data before world coordinate transformation */ MthXyz *transWorldVertAns; /* Vertex data after world coordinate transformation */ } MthPolyTransParm;
one | Title | Data | Data Name | No |
typedef struct MthViewLight { MthMatrix viewMatrix; /* Transformation matrix to viewpoint coordinate system */ MthXyz lightVector; /* Light source vector in the viewpoint coordinate system */ MthMatrix worldMatrix; /* Transformation matrix to world coordinate system */ } MthViewLight;