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

                return(_GetActiveToolFunc);
            }
コード例 #2
0
            internal static _GetActiveTool GetActiveTool()
            {
                if (_GetActiveToolFunc == null)
                {
                    _GetActiveToolFunc =
                        (_GetActiveTool)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnForestEditorCtrl_getActiveTool"), typeof(_GetActiveTool));
                }

                return(_GetActiveToolFunc);
            }