示例#1
0
            internal static _SetShaderConsts SetShaderConsts()
            {
                if (_SetShaderConstsFunc == null)
                {
                    _SetShaderConstsFunc =
                        (_SetShaderConsts)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "cbPostEffect_setShaderConsts"), typeof(_SetShaderConsts));
                }

                return(_SetShaderConstsFunc);
            }
示例#2
0
            internal static _SetShaderConsts SetShaderConsts()
            {
                if (_SetShaderConstsFunc == null)
                {
                    _SetShaderConstsFunc =
                        (_SetShaderConsts)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "cbPostEffect_setShaderConsts"), typeof(_SetShaderConsts));
                }

                return(_SetShaderConstsFunc);
            }