I needed the exact variables used for transforming a graphical object (rotation, scale..) and getting those variables user-style (GetScale, GetRotation) and calculating them every time I needed to use it seemed like a waste of computing power.
Thus (add before 'Function GLMax2DDriver:TGLMax2DDriver()' [doesn't really matter] in brl.mod/glmax2d.mod/glmax2d.bmx):
'Plash was here!
Rem
bbdoc: Get the transformation variables
returns: ix, iy, jx, jy; all used for object transformation (Private)
End Rem
Function GetTransformVars(_ix:Float Var, _iy:Float Var, _jx:Float Var, _jy:Float Var)
_ix = ix
_iy = iy
_jx = jx
_jy = jy
End Function
|