internal static void toggle(IntPtr thisPtr)
            {
                if (_toggleFunc == null)
                {
                    _toggleFunc =
                        (_toggle)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_RenderPassStateToken_toggle"), typeof(_toggle));
                }

                _toggleFunc(thisPtr);
            }
Exemplo n.º 2
0
            internal static bool toggle(IntPtr thisPtr)
            {
                if (_toggleFunc == null)
                {
                    _toggleFunc =
                        (_toggle)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_PostEffect_toggle"), typeof(_toggle));
                }

                return(_toggleFunc(thisPtr));
            }
Exemplo n.º 3
0
 set => SetProperty(ref _toggle, value);