void AnimatedMesh_GetFrameLoopMD2a (IntPtr mesh, M_STRING name, int *outBegin, int *outEnd, int *outFPS) { int b; int en; int fps; ((IAnimatedMeshMD2 *)mesh)->getFrameLoop(UM_STRING(name), b, en, fps); *outBegin = b; *outEnd = en; *outFPS = fps; }
M_STRING Event_GetLogString(IntPtr event) { return UM_STRING(MU_WCHAR(GetEventFromIntPtr(event)->LogEvent.Text)); }
M_STRING AnimationMesh_GetAnimationNameMD2(IntPtr mesh, int nr) { return UM_STRING(((IAnimatedMeshMD2 *)mesh)->getAnimationName(nr)); }
M_STRING MeshCache_GetMeshFilenameA (IntPtr mc, IntPtr mesh) { return UM_STRING(GetMeshCacheFromIntPtr(mc)->getMeshFilename(static_cast<irr::scene::IAnimatedMesh*>(mesh)).c_str()); }
M_STRING MeshCache_GetMeshFilenameN (IntPtr mc, irr::u32 index) { return UM_STRING(GetMeshCacheFromIntPtr(mc)->getMeshFilename(index).c_str()); }
void MeshCache_AddMesh (IntPtr mc, M_STRING filename, IntPtr mesh) { GetMeshCacheFromIntPtr(mc)->addMesh(UM_STRING(filename), (IAnimatedMesh*)mesh); }
IntPtr MeshCache_GetMeshByFilename (IntPtr mc, M_STRING filename) { return GetMeshCacheFromIntPtr(mc)->getMeshByFilename(UM_STRING(filename)); }
M_STRING GUIListBox_GetListItem(IntPtr listb, int id) { return UM_STRING(((IGUIListBox*)listb)->getListItem(id)); }
M_STRING GUIComboBox_GetItem(IntPtr combo, int index) { return UM_STRING(((IGUIComboBox*)combo)->getItem(index)); }
M_STRING GUIFileOpenDialog_GetFilename(IntPtr dialog) { return UM_STRING(((IGUIFileOpenDialog*)dialog)->getFileName()); }
M_STRING GUIContextMenu_GetItemText(IntPtr menu, int index) { return UM_STRING(((IGUIContextMenu*)menu)->getItemText(index)); }
//Converts from irr::core::stringw to managed string --> getToolTipText M_STRING IM_STRING(const IRRSTRING base) { const wchar_t* b = base.c_str(); return UM_STRING(b); }
M_STRING GuiSkin_GetDefaultText(IntPtr gskin, EGUI_DEFAULT_TEXT which) { return UM_STRING(((IGUISkin*)gskin)->getDefaultText(which)); }
M_STRING SceneNode_GetName(IntPtr scenenode) { return UM_STRING(GetSceneNodeFromIntPtr(scenenode)->getName()); }