Initialize the current modelling transformation, initialize the current viewing transformation, initialize the viewing parameters (see gInitView()) and switch transforming off
= GOFF,
Switch transforming off
= GON,
Switch transforming on
= GINIT,
Initialize the current modelling transformation and switch transforming on
a2,a3
2D or 3D transformation matrix
Description
The gSetTransform set of routines set the current modelling transformation and/or switch transforming on and off.
The routine gSetTransform() is used to either initialize the modelling transformation matrix (and the viewing transformation matrix if GRESET is used) to unity and/or switch transforming on or off without affecting the current modelling transformation matrix.
The routines gSetTransform2D(), gSetTransform3D() set the current modelling transformation according to the supplied 2D or 3D matrix and switches transforming on. The supplied matrix can either have been saved from a previous call to gGetTransform(), or composed using the gBuildMatrix() or gCombineMatrix() routines. In the case of gSetTransform2D() the remaining ten 3-D components of the complete transformation matrix are reinitialized.