2009-09-06 09:38:04 +00:00
[Introduction]
2015-06-08 14:38:08 +00:00
This is a simple tool to convert Khronos XML to OpenTK XML files.
2009-09-06 09:38:04 +00:00
2013-11-07 16:18:12 +00:00
[Examples]
2013-10-22 09:40:41 +00:00
2015-03-01 14:25:30 +00:00
To download and convert the XML API registry from Khronos:
2015-06-08 14:38:08 +00:00
Convert.exe -p:gl -o:../../../Source/Bind/Specifications/GL2/signatures.xml https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/gl.xml
2013-11-07 16:18:12 +00:00
2015-03-01 14:25:30 +00:00
The line above will download the latest .xml files from the public Khronos repository and update signatures.xml for the binding generator.
2013-10-22 09:40:41 +00:00
2009-09-06 09:38:04 +00:00
[Usage]
2011-07-26 11:54:09 +00:00
Convert.exe -p:{PREFIX} -v:{VERSION} -t:{TYPE} -o:{OUT} {INPUT1} ... {INPUTn}
2009-09-06 09:38:04 +00:00
{PREFIX} is a simple string that defines the a common prefix for functions and constants in this header. This prefix will be removed from the generated XML file.
{VERSION} is a string that defines that version that will be used for functions in the generated XML file. Specific input files may override this setting.
2011-07-26 11:54:09 +00:00
{OUT} is the output filename (optional). If no output file is specified, output will be directed to the console.
2015-06-08 14:38:08 +00:00
{INPUT1..n} is a space-separated list of input files.
2009-09-06 09:38:04 +00:00
2015-06-08 14:38:08 +00:00
Despite what the help says, prefix and version parameters are necessary at the moment.
2009-09-06 09:38:04 +00:00
[Support]
2015-06-08 14:38:08 +00:00
If you encounter a bug, please file an issue report at http://github.com/opentk/opentk/issues