Skip to main content

History: Mogre XML commentation tool

Preview of version: 3

Image

User smiley80 wrote a tool which creates the XML comments file (Mogre.xml) from Mogre.dll and the Doxygen XML output of Ogre. Including this file in a Mogre project shows comments for Mogre members in Visual Studio.

Also this tool can create comments for MogreNewt. The created file MogreNewt.xml is still in the download package.

Source:
http://mogresdk.googlecode.com/svn/trunk/smiley80/mogre_xml/

For questions and suggestions use this forum thread.

Integration into Visual Studio

You don't need to run the tool with VisualStudio. The needed file is included in the download.

Just copy MogreXml\bin\Debug\Mogre.xml to the location of the referenced Mogre.dll file of your project.

Tool usage

How to use the tool to create a Mogre.xml file from a new Mogre.dll:

  • Download and compile the source code
  • Download Ogre's header files (e.g. from the current Ogre SDK)
  • Download and install Doxygen
  • Run doxywizard.exe
    • Set the working and the destination directory to some temp folder
    • Set the source code directory to the folder with Ogre's header files
    • Enter 'ogre' as the project name and '1' as the project ID
    • Uncheck 'html' and 'latex' output and check 'xml'
    • Run Doxygen
  • Create a new folder in the output folder of MogreXml (i.e. Debug) and name it 'xml'
  • Copy 'namespace_ogre.xml' and all files that start with 'class_ogre' or 'struct_ogre' from the Doxygen's destination folder to the newly created folder
  • Copy Mogre.dll and OgreMain.dll to the output folder of MogreXml
  • Open the command prompt and navigate to the output folder of MogreXml


Command line usage:

Copy to clipboard
MogreXml.exe <AssemblyPath> <NativeNamespace> <ManagedNamespace>


Create Mogre comments:

Copy to clipboard
MogreXml.exe .\Mogre.dll Ogre Mogre


Create MogreNewt comments:

Copy to clipboard
MogreXml.exe .\MogreNewt.dll OgreNewt MogreNewt


Note: You'll probably get warnings, that the encoding in some files is wrong. Open those files in a text editor, in the header change utf-8 to utf-16, save the file as utf-16 (little endian) and run MogreXml again.

History

Information Version
Sun 15 of Apr, 2012 20:39 GMT-0000 Beauty added command-line option 7
Thu 16 of Dec, 2010 16:50 GMT-0000 Beauty added direct download links for Mogre.xml and MogreNewt.xml + added notes 6
Tue 30 of Nov, 2010 12:27 GMT-0000 Beauty added alias page name (to prevent dead link from forum) 5
Wed 14 of Jul, 2010 18:30 GMT-0000 smiley80 4
Wed 14 of Jul, 2010 09:46 GMT-0000 smiley80 3
Sun 27 of Dec, 2009 19:17 GMT-0000 jacmoe 2
Sun 29 of Nov, 2009 03:26 GMT-0000 Beauty added note for MogreNewt comments 1