Ejemplo n.º 1
0
            internal static void SetFogModulation(IntPtr thisPtr, float new_strenght, InternalPoint2FStruct new_speed1, InternalPoint2FStruct new_speed2)
            {
                if (_SetFogModulationFunc == null)
                {
                    _SetFogModulationFunc =
                        (_SetFogModulation)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                      "fn_VolumetricFog_SetFogModulation"), typeof(_SetFogModulation));
                }

                _SetFogModulationFunc(thisPtr, new_strenght, new_speed1, new_speed2);
            }
Ejemplo n.º 2
0
            internal static _SetFogModulation SetFogModulation()
            {
                if (_SetFogModulationFunc == null)
                {
                    _SetFogModulationFunc =
                        (_SetFogModulation)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnVolumetricFog_SetFogModulation"), typeof(_SetFogModulation));
                }

                return(_SetFogModulationFunc);
            }
Ejemplo n.º 3
0
            internal static _SetFogModulation SetFogModulation()
            {
                if (_SetFogModulationFunc == null)
                {
                    _SetFogModulationFunc =
                        (_SetFogModulation)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnVolumetricFog_SetFogModulation"), typeof(_SetFogModulation));
                }

                return(_SetFogModulationFunc);
            }