Ejemplo n.º 1
0
            internal static float getScale(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string device, [MarshalAs(UnmanagedType.LPWStr)] string action)
            {
                if (_getScaleFunc == null)
                {
                    _getScaleFunc =
                        (_getScale)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                              "fn_ActionMap_getScale"), typeof(_getScale));
                }

                return(_getScaleFunc(thisPtr, device, action));
            }
Ejemplo n.º 2
0
            internal static InternalPoint3FStruct getScale(IntPtr thisPtr)
            {
                if (_getScaleFunc == null)
                {
                    _getScaleFunc =
                        (_getScale)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                              "fn_SceneObject_getScale"), typeof(_getScale));
                }

                return(_getScaleFunc(thisPtr));
            }