コード例 #1
0
ファイル: PostEffect.cs プロジェクト: lukaspj/T3DSharp
            internal static _RemoveShaderMacro RemoveShaderMacro()
            {
                if (_RemoveShaderMacroFunc == null)
                {
                    _RemoveShaderMacroFunc =
                        (_RemoveShaderMacro)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnPostEffect_removeShaderMacro"), typeof(_RemoveShaderMacro));
                }

                return(_RemoveShaderMacroFunc);
            }
コード例 #2
0
            internal static _RemoveShaderMacro RemoveShaderMacro()
            {
                if (_RemoveShaderMacroFunc == null)
                {
                    _RemoveShaderMacroFunc =
                        (_RemoveShaderMacro)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnPostEffect_removeShaderMacro"), typeof(_RemoveShaderMacro));
                }

                return(_RemoveShaderMacroFunc);
            }