Exemple #1
0
            internal static void insert(IntPtr thisPtr, IntPtr pObject, int pos)
            {
                if (_insertFunc == null)
                {
                    _insertFunc =
                        (_insert)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_MenuBar_insert"), typeof(_insert));
                }

                _insertFunc(thisPtr, pObject, pos);
            }
Exemple #2
0
            internal static int insert(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string imagePath)
            {
                if (_insertFunc == null)
                {
                    _insertFunc =
                        (_insert)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_GuiImageList_insert"), typeof(_insert));
                }

                return(_insertFunc(thisPtr, imagePath));
            }
            internal static void insert(IntPtr thisPtr, [MarshalAs(UnmanagedType.LPWStr)] string key, [MarshalAs(UnmanagedType.LPWStr)] string value, int index)
            {
                if (_insertFunc == null)
                {
                    _insertFunc =
                        (_insert)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_ArrayObject_insert"), typeof(_insert));
                }

                _insertFunc(thisPtr, key, value, index);
            }