コード例 #1
0
            internal static void SetFogDensity(IntPtr thisPtr, float new_density)
            {
                if (_SetFogDensityFunc == null)
                {
                    _SetFogDensityFunc =
                        (_SetFogDensity)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                   "fn_VolumetricFog_SetFogDensity"), typeof(_SetFogDensity));
                }

                _SetFogDensityFunc(thisPtr, new_density);
            }
コード例 #2
0
            internal static _SetFogDensity SetFogDensity()
            {
                if (_SetFogDensityFunc == null)
                {
                    _SetFogDensityFunc =
                        (_SetFogDensity)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnVolumetricFog_SetFogDensity"), typeof(_SetFogDensity));
                }

                return(_SetFogDensityFunc);
            }
コード例 #3
0
ファイル: VolumetricFog.cs プロジェクト: lukaspj/T3DSharp
            internal static _SetFogDensity SetFogDensity()
            {
                if (_SetFogDensityFunc == null)
                {
                    _SetFogDensityFunc =
                        (_SetFogDensity)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnVolumetricFog_SetFogDensity"), typeof(_SetFogDensity));
                }

                return(_SetFogDensityFunc);
            }