Kaynağa Gözat

Reduced compilation dependencies in generated Lua bindings source files (enum bindings are in separate files now).
Updated some gameplay files to play nice with the Lua bindings and generation process.
Adds a separate doxyfile for generating the Lua bindings because we need to include the CPP files (so that we have the correct includes for the generated bindings CPP files).

Chris Culy 13 yıl önce
ebeveyn
işleme
9bd8e8eb88
100 değiştirilmiş dosya ile 5869 ekleme ve 2826 silme
  1. 14 5
      gameplay-luagen/TODO.txt
  2. 15 0
      gameplay-luagen/gameplay-api/xml/combine.xslt
  3. 832 0
      gameplay-luagen/gameplay-api/xml/compound.xsd
  4. 3 0
      gameplay-luagen/gameplay-api/xml/index.xml
  5. 66 0
      gameplay-luagen/gameplay-api/xml/index.xsd
  6. 1794 0
      gameplay-luagen/gameplay-luagen.doxyfile
  7. 13 3
      gameplay-luagen/src/ClassBinding.cpp
  8. 2 1
      gameplay-luagen/src/ClassBinding.h
  9. 1 0
      gameplay-luagen/src/EnumBinding.h
  10. 3 0
      gameplay-luagen/src/FunctionBinding.cpp
  11. 252 119
      gameplay-luagen/src/Generator.cpp
  12. 16 3
      gameplay-luagen/src/Generator.h
  13. 76 0
      gameplay/gameplay.vcxproj
  14. 228 0
      gameplay/gameplay.vcxproj.filters
  15. 0 5
      gameplay/src/Control.cpp
  16. 3 3
      gameplay/src/Effect.cpp
  17. 1 1
      gameplay/src/Form.cpp
  18. 2 0
      gameplay/src/Platform.h
  19. 2 0
      gameplay/src/Properties.cpp
  20. 1 0
      gameplay/src/Scene.cpp
  21. 8 2
      gameplay/src/lua/lua_AbsoluteLayout.cpp
  22. 9 2
      gameplay/src/lua/lua_Animation.cpp
  23. 8 2
      gameplay/src/lua/lua_AnimationClip.cpp
  24. 8 2
      gameplay/src/lua/lua_AnimationClipListener.cpp
  25. 38 0
      gameplay/src/lua/lua_AnimationClipListenerEventType.cpp
  26. 15 0
      gameplay/src/lua/lua_AnimationClipListenerEventType.h
  27. 4 2
      gameplay/src/lua/lua_AnimationController.cpp
  28. 6 2
      gameplay/src/lua/lua_AnimationTarget.cpp
  29. 2 2
      gameplay/src/lua/lua_AnimationValue.cpp
  30. 5 2
      gameplay/src/lua/lua_AudioBuffer.cpp
  31. 5 2
      gameplay/src/lua/lua_AudioController.cpp
  32. 8 2
      gameplay/src/lua/lua_AudioListener.cpp
  33. 12 2
      gameplay/src/lua/lua_AudioSource.cpp
  34. 43 0
      gameplay/src/lua/lua_AudioSourceState.cpp
  35. 15 0
      gameplay/src/lua/lua_AudioSourceState.h
  36. 4 2
      gameplay/src/lua/lua_BoundingBox.cpp
  37. 3 2
      gameplay/src/lua/lua_BoundingSphere.cpp
  38. 8 2
      gameplay/src/lua/lua_Bundle.cpp
  39. 14 2
      gameplay/src/lua/lua_Button.cpp
  40. 11 2
      gameplay/src/lua/lua_Camera.cpp
  41. 33 0
      gameplay/src/lua/lua_CameraType.cpp
  42. 15 0
      gameplay/src/lua/lua_CameraType.h
  43. 15 2
      gameplay/src/lua/lua_CheckBox.cpp
  44. 26 2
      gameplay/src/lua/lua_Container.cpp
  45. 43 0
      gameplay/src/lua/lua_ContainerScroll.cpp
  46. 15 0
      gameplay/src/lua/lua_ContainerScroll.h
  47. 12 2
      gameplay/src/lua/lua_Control.cpp
  48. 98 0
      gameplay/src/lua/lua_ControlAlignment.cpp
  49. 15 0
      gameplay/src/lua/lua_ControlAlignment.h
  50. 12 2
      gameplay/src/lua/lua_ControlListener.cpp
  51. 58 0
      gameplay/src/lua/lua_ControlListenerEventType.cpp
  52. 15 0
      gameplay/src/lua/lua_ControlListenerEventType.h
  53. 43 0
      gameplay/src/lua/lua_ControlState.cpp
  54. 15 0
      gameplay/src/lua/lua_ControlState.h
  55. 6 2
      gameplay/src/lua/lua_Curve.cpp
  56. 258 0
      gameplay/src/lua/lua_CurveInterpolationType.cpp
  57. 15 0
      gameplay/src/lua/lua_CurveInterpolationType.h
  58. 5 2
      gameplay/src/lua/lua_DepthStencilTarget.cpp
  59. 33 0
      gameplay/src/lua/lua_DepthStencilTargetFormat.cpp
  60. 15 0
      gameplay/src/lua/lua_DepthStencilTargetFormat.h
  61. 5 2
      gameplay/src/lua/lua_Effect.cpp
  62. 3 2
      gameplay/src/lua/lua_FileSystem.cpp
  63. 8 2
      gameplay/src/lua/lua_FlowLayout.cpp
  64. 8 2
      gameplay/src/lua/lua_Font.cpp
  65. 8 2
      gameplay/src/lua/lua_FontGlyph.cpp
  66. 98 0
      gameplay/src/lua/lua_FontJustify.cpp
  67. 15 0
      gameplay/src/lua/lua_FontJustify.h
  68. 43 0
      gameplay/src/lua/lua_FontStyle.cpp
  69. 15 0
      gameplay/src/lua/lua_FontStyle.h
  70. 8 2
      gameplay/src/lua/lua_FontText.cpp
  71. 29 2
      gameplay/src/lua/lua_Form.cpp
  72. 4 2
      gameplay/src/lua/lua_FrameBuffer.cpp
  73. 4 2
      gameplay/src/lua/lua_Frustum.cpp
  74. 13 2
      gameplay/src/lua/lua_Game.cpp
  75. 58 0
      gameplay/src/lua/lua_GameClearFlags.cpp
  76. 15 0
      gameplay/src/lua/lua_GameClearFlags.h
  77. 38 0
      gameplay/src/lua/lua_GameState.cpp
  78. 15 0
      gameplay/src/lua/lua_GameState.h
  79. 4 2
      gameplay/src/lua/lua_Gamepad.cpp
  80. 33 0
      gameplay/src/lua/lua_GamepadButtonState.cpp
  81. 15 0
      gameplay/src/lua/lua_GamepadButtonState.h
  82. 33 0
      gameplay/src/lua/lua_GamepadGamepadEvent.cpp
  83. 15 0
      gameplay/src/lua/lua_GamepadGamepadEvent.h
  84. 6 2431
      gameplay/src/lua/lua_Global.cpp
  85. 39 175
      gameplay/src/lua/lua_Global.h
  86. 6 2
      gameplay/src/lua/lua_Image.cpp
  87. 33 0
      gameplay/src/lua/lua_ImageFormat.cpp
  88. 15 0
      gameplay/src/lua/lua_ImageFormat.h
  89. 17 2
      gameplay/src/lua/lua_Joint.cpp
  90. 13 2
      gameplay/src/lua/lua_Joystick.cpp
  91. 1 2
      gameplay/src/lua/lua_Keyboard.cpp
  92. 803 0
      gameplay/src/lua/lua_KeyboardKey.cpp
  93. 15 0
      gameplay/src/lua/lua_KeyboardKey.h
  94. 38 0
      gameplay/src/lua/lua_KeyboardKeyEvent.cpp
  95. 15 0
      gameplay/src/lua/lua_KeyboardKeyEvent.h
  96. 13 2
      gameplay/src/lua/lua_Label.cpp
  97. 7 2
      gameplay/src/lua/lua_Layout.cpp
  98. 43 0
      gameplay/src/lua/lua_LayoutType.cpp
  99. 15 0
      gameplay/src/lua/lua_LayoutType.h
  100. 6 2
      gameplay/src/lua/lua_Light.cpp

+ 14 - 5
gameplay-luagen/TODO.txt

@@ -5,19 +5,28 @@ Unsupported:
 - variable arguments
 - Lua doesn't support as many types as C++ so if there are functions that overload on parameters with types that overlap in Lua, the overloading won't work properly (i.e. char, short, int, long, float, double and all corresponding unsigned variants overlap in Lua).
 
-- Note: primitive data type arrays and object arrays are both inefficient when created in Lua and passed to C++.
 
 Normal Priority List:
 =====================
-- Add "@script{create}" to the appropriate gameplay functions.
+- Add support for listener callbacks.
 - Fix memory leaks in gameplay-luagen and in generated code.
+    - Add "@script{create}" to the appropriate gameplay functions.
     - Add "@script{own}" to array parameters that are owned by the function or class they are passed to?
-- Add support for listener callbacks.
 - Figure out a way to determine the proper needed include files (generate Doxygen XML for cpp files?); along with this do the following:
     - Reduce compilation dependencies (remove Global.h from all lua_XXX.cpp files)
     - Separate the enums into separate files and have generated files include the enum files they need.
 
-Low Priority List:
-==================
+Future Feature List:
+====================
+- Add support for users to generate bindings for their own classes.
 - Add support for std::vector.
 - Separate threads?
+
+
+Lua Tips
+========
+- To get printf/GP_WARN-like functionality using gameplay and Lua, use printError(string.format("...", ...)).
+- To do integer like comparisons or casts on a number variable x in Lua, use math.floor(x)
+- Make sure all your member function calls use ':' instead of '.'
+- Remember to access all gameplay variables, including static and global variables with '()' on the end of the name.
+- Primitive data type arrays and object arrays are both inefficient when created in Lua and passed to C++, so try to minimize this.

+ 15 - 0
gameplay-luagen/gameplay-api/xml/combine.xslt

@@ -0,0 +1,15 @@
+<!-- XSLT script to combine the generated output into a single file. 
+     If you have xsltproc you could use:
+     xsltproc combine.xslt index.xml >all.xml
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:output method="xml" version="1.0" indent="no" standalone="yes" />
+  <xsl:template match="/">
+    <doxygen version="{doxygenindex/@version}">
+      <!-- Load all doxgen generated xml files -->
+      <xsl:for-each select="doxygenindex/compound">
+        <xsl:copy-of select="document( concat( @refid, '.xml' ) )/doxygen/*" />
+      </xsl:for-each>
+    </doxygen>
+  </xsl:template>
+</xsl:stylesheet>

+ 832 - 0
gameplay-luagen/gameplay-api/xml/compound.xsd

@@ -0,0 +1,832 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+  <xsd:element name="doxygen" type="DoxygenType"/>
+
+  <!-- Complex types -->
+
+  <xsd:complexType name="DoxygenType">
+    <xsd:sequence maxOccurs="unbounded">
+      <xsd:element name="compounddef" type="compounddefType" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="version" type="DoxVersionNumber" use="required" />
+  </xsd:complexType>
+
+  <xsd:complexType name="compounddefType">
+    <xsd:sequence>
+      <xsd:element name="compoundname" type="xsd:string"/>
+      <xsd:element name="title" type="xsd:string" minOccurs="0" />
+      <xsd:element name="basecompoundref" type="compoundRefType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="derivedcompoundref" type="compoundRefType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="includes" type="incType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="includedby" type="incType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="incdepgraph" type="graphType" minOccurs="0" />
+      <xsd:element name="invincdepgraph" type="graphType" minOccurs="0" />
+      <xsd:element name="innerdir" type="refType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="innerfile" type="refType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="innerclass" type="refType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="innernamespace" type="refType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="innerpage" type="refType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="innergroup" type="refType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="templateparamlist" type="templateparamlistType" minOccurs="0" />
+      <xsd:element name="sectiondef" type="sectiondefType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
+      <xsd:element name="detaileddescription" type="descriptionType" minOccurs="0" />
+      <xsd:element name="inheritancegraph" type="graphType" minOccurs="0" />
+      <xsd:element name="collaborationgraph" type="graphType" minOccurs="0" />
+      <xsd:element name="programlisting" type="listingType" minOccurs="0" />
+      <xsd:element name="location" type="locationType" minOccurs="0" />
+      <xsd:element name="listofallmembers" type="listofallmembersType" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="id" type="xsd:string" />
+    <xsd:attribute name="kind" type="DoxCompoundKind" />
+    <xsd:attribute name="prot" type="DoxProtectionKind" />
+  </xsd:complexType>
+
+  <xsd:complexType name="listofallmembersType">
+    <xsd:sequence>
+      <xsd:element name="member" type="memberRefType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="memberRefType">
+    <xsd:sequence>
+      <xsd:element name="scope" />
+      <xsd:element name="name" />
+    </xsd:sequence>
+    <xsd:attribute name="refid" type="xsd:string" />
+    <xsd:attribute name="prot" type="DoxProtectionKind" />
+    <xsd:attribute name="virt" type="DoxVirtualKind" />
+    <xsd:attribute name="ambiguityscope" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="compoundRefType">
+    <xsd:simpleContent>
+      <xsd:extension base="xsd:string">
+        <xsd:attribute name="refid" type="xsd:string" use="optional" />
+        <xsd:attribute name="prot" type="DoxProtectionKind" />
+        <xsd:attribute name="virt" type="DoxVirtualKind" />
+      </xsd:extension>
+    </xsd:simpleContent>
+  </xsd:complexType>
+
+  <xsd:complexType name="reimplementType">
+    <xsd:simpleContent>
+      <xsd:extension base="xsd:string">
+        <xsd:attribute name="refid" type="xsd:string" />
+      </xsd:extension>
+    </xsd:simpleContent>
+  </xsd:complexType>
+
+  <xsd:complexType name="incType">
+    <xsd:simpleContent>
+      <xsd:extension base="xsd:string">
+        <xsd:attribute name="refid" type="xsd:string" />
+        <xsd:attribute name="local" type="DoxBool" />
+      </xsd:extension>
+    </xsd:simpleContent>
+  </xsd:complexType>
+
+  <xsd:complexType name="refType">
+    <xsd:simpleContent>
+      <xsd:extension base="xsd:string">
+        <xsd:attribute name="refid" type="xsd:string" />
+        <xsd:attribute name="prot" type="DoxProtectionKind" use="optional"/>
+      </xsd:extension>
+    </xsd:simpleContent>
+  </xsd:complexType>
+
+  <xsd:complexType name="refTextType">
+    <xsd:simpleContent>
+      <xsd:extension base="xsd:string">
+       <xsd:attribute name="refid" type="xsd:string" />
+       <xsd:attribute name="kindref" type="DoxRefKind" />
+       <xsd:attribute name="external" type="xsd:string" use="optional"/>
+       <xsd:attribute name="tooltip" type="xsd:string" use="optional"/>
+      </xsd:extension>
+    </xsd:simpleContent>
+  </xsd:complexType>
+
+  <xsd:complexType name="sectiondefType">
+    <xsd:sequence>
+      <xsd:element name="header" type="xsd:string" minOccurs="0" />
+      <xsd:element name="description" type="descriptionType" minOccurs="0" />
+      <xsd:element name="memberdef" type="memberdefType" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="kind" type="DoxSectionKind" />
+  </xsd:complexType>
+
+  <xsd:complexType name="memberdefType">
+    <xsd:sequence>
+      <xsd:element name="templateparamlist" type="templateparamlistType" minOccurs="0" />
+      <xsd:element name="type" type="linkedTextType" minOccurs="0" />
+      <xsd:element name="definition" minOccurs="0" />
+      <xsd:element name="argsstring" minOccurs="0" />
+      <xsd:element name="name" />
+      <xsd:element name="read" minOccurs="0" />
+      <xsd:element name="write" minOccurs="0" />
+      <xsd:element name="bitfield" minOccurs="0" />
+      <xsd:element name="reimplements" type="reimplementType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="reimplementedby" type="reimplementType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="enumvalue" type="enumvalueType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="initializer" type="linkedTextType" minOccurs="0" />
+      <xsd:element name="exceptions" type="linkedTextType" minOccurs="0" />
+      <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
+      <xsd:element name="detaileddescription" type="descriptionType" minOccurs="0" />
+      <xsd:element name="inbodydescription" type="descriptionType" minOccurs="0" />
+      <xsd:element name="location" type="locationType" />
+      <xsd:element name="references" type="referenceType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="referencedby" type="referenceType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="kind" type="DoxMemberKind" />
+    <xsd:attribute name="id" type="xsd:string" />
+    <xsd:attribute name="prot" type="DoxProtectionKind" />
+    <xsd:attribute name="static" type="DoxBool" />
+    <xsd:attribute name="const" type="DoxBool" />
+    <xsd:attribute name="explicit" type="DoxBool" />
+    <xsd:attribute name="inline" type="DoxBool" />
+    <xsd:attribute name="virt" type="DoxVirtualKind" />
+    <xsd:attribute name="volatile" type="DoxBool" />
+    <xsd:attribute name="mutable" type="DoxBool" />
+    <!-- Qt property -->
+    <xsd:attribute name="readable" type="DoxBool" use="optional"/>
+    <xsd:attribute name="writable" type="DoxBool" use="optional"/>
+    <!-- C++/CLI variable -->
+    <xsd:attribute name="initonly" type="DoxBool" use="optional"/>
+    <!-- C++/CLI and C# property -->
+    <xsd:attribute name="settable" type="DoxBool" use="optional"/>
+    <xsd:attribute name="gettable" type="DoxBool" use="optional"/>
+    <!-- C++/CLI function -->
+    <xsd:attribute name="final" type="DoxBool" use="optional"/>
+    <xsd:attribute name="sealed" type="DoxBool" use="optional"/>
+    <xsd:attribute name="new" type="DoxBool" use="optional"/>
+    <!-- C++/CLI event -->
+    <xsd:attribute name="add" type="DoxBool" use="optional"/>
+    <xsd:attribute name="remove" type="DoxBool" use="optional"/>
+    <xsd:attribute name="raise" type="DoxBool" use="optional"/>
+    <!-- Objective-C 2.0 protocol method -->
+    <xsd:attribute name="optional" type="DoxBool" use="optional"/>
+    <xsd:attribute name="required" type="DoxBool" use="optional"/>
+    <!-- Objective-C 2.0 property accessor -->
+    <xsd:attribute name="accessor" type="DoxAccessor" use="optional"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="descriptionType" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="title" type="xsd:string" minOccurs="0"/>	    
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="internal" type="docInternalType" minOccurs="0" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="enumvalueType" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="name" />
+      <xsd:element name="initializer" type="linkedTextType" minOccurs="0" />
+      <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
+      <xsd:element name="detaileddescription" type="descriptionType" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="id" type="xsd:string" />
+    <xsd:attribute name="prot" type="DoxProtectionKind" />
+  </xsd:complexType>
+
+  <xsd:complexType name="templateparamlistType">
+    <xsd:sequence>
+      <xsd:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="paramType">
+    <xsd:sequence>
+      <xsd:element name="type" type="linkedTextType" minOccurs="0" />
+      <xsd:element name="declname" minOccurs="0" />
+      <xsd:element name="defname" minOccurs="0" />
+      <xsd:element name="array" minOccurs="0" />
+      <xsd:element name="defval" type="linkedTextType" minOccurs="0" />
+      <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="linkedTextType" mixed="true">
+    <xsd:sequence>
+    <xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="graphType">
+    <xsd:sequence>
+      <xsd:element name="node" type="nodeType" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="nodeType">
+    <xsd:sequence>
+      <xsd:element name="label" />
+      <xsd:element name="link" type="linkType" minOccurs="0" />
+      <xsd:element name="childnode" type="childnodeType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="id" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="childnodeType">
+    <xsd:sequence>
+      <xsd:element name="edgelabel" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:attribute name="refid" type="xsd:string" />
+    <xsd:attribute name="relation" type="DoxGraphRelation" />
+  </xsd:complexType>
+
+  <xsd:complexType name="linkType">
+    <xsd:attribute name="refid" type="xsd:string" />
+    <xsd:attribute name="external" type="xsd:string" use="optional"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="listingType">
+    <xsd:sequence>
+      <xsd:element name="codeline" type="codelineType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="codelineType">
+    <xsd:sequence>
+      <xsd:element name="highlight" type="highlightType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="lineno" type="xsd:integer" />
+    <xsd:attribute name="refid" type="xsd:string" />
+    <xsd:attribute name="refkind" type="DoxRefKind" />
+    <xsd:attribute name="external" type="DoxBool" />
+  </xsd:complexType>
+
+  <xsd:complexType name="highlightType" mixed="true">
+    <xsd:choice minOccurs="0" maxOccurs="unbounded">
+      <xsd:element name="sp" />
+      <xsd:element name="ref" type="refTextType" />
+    </xsd:choice>
+    <xsd:attribute name="class" type="DoxHighlightClass" />
+  </xsd:complexType>
+
+  <xsd:complexType name="referenceType" mixed="true">
+    <xsd:attribute name="refid" type="xsd:string" />
+    <xsd:attribute name="compoundref" type="xsd:string" use="optional" />
+    <xsd:attribute name="startline" type="xsd:integer" />
+    <xsd:attribute name="endline" type="xsd:integer" />
+  </xsd:complexType>
+
+  <xsd:complexType name="locationType">
+    <xsd:attribute name="file" type="xsd:string" />
+    <xsd:attribute name="line" type="xsd:integer" />
+    <xsd:attribute name="bodyfile" type="xsd:string" />
+    <xsd:attribute name="bodystart" type="xsd:integer" />
+    <xsd:attribute name="bodyend" type="xsd:integer" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docSect1Type" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="title" type="xsd:string" />	    
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="internal" type="docInternalS1Type" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="id" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docSect2Type" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="title" type="xsd:string" />	    
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="internal" type="docInternalS2Type" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="id" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docSect3Type" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="title" type="xsd:string" />	    
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect4" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="internal" type="docInternalS3Type" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="id" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docSect4Type" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="title" type="xsd:string" />	    
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="internal" type="docInternalS4Type" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="id" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docInternalType" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docInternalS1Type" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docInternalS2Type" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docInternalS3Type" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect3" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docInternalS4Type" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="para"  type="docParaType"  minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+ 
+  <xsd:group name="docTitleCmdGroup">
+    <xsd:choice>
+      <xsd:element name="ulink" type="docURLLink" />
+      <xsd:element name="bold" type="docMarkupType" />
+      <xsd:element name="emphasis" type="docMarkupType" />
+      <xsd:element name="computeroutput" type="docMarkupType" />
+      <xsd:element name="subscript" type="docMarkupType" />
+      <xsd:element name="superscript" type="docMarkupType" />
+      <xsd:element name="center" type="docMarkupType" />
+      <xsd:element name="small" type="docMarkupType" />
+      <xsd:element name="htmlonly" type="xsd:string" />
+      <xsd:element name="manonly" type="xsd:string" />
+      <xsd:element name="xmlonly" type="xsd:string" />
+      <xsd:element name="rtfonly" type="xsd:string" />
+      <xsd:element name="latexonly" type="xsd:string" />
+      <xsd:element name="dot" type="xsd:string" />
+      <xsd:element name="anchor" type="docAnchorType" />
+      <xsd:element name="formula" type="docFormulaType" />
+      <xsd:element name="ref" type="docRefTextType" />
+      <xsd:element name="copy" type="docEmptyType" />
+      <xsd:element name="trademark" type="docEmptyType" />
+      <xsd:element name="registered" type="docEmptyType" />
+      <xsd:element name="lsquo" type="docEmptyType" />
+      <xsd:element name="rsquo" type="docEmptyType" />
+      <xsd:element name="ldquo" type="docEmptyType" />
+      <xsd:element name="rdquo" type="docEmptyType" />
+      <xsd:element name="ndash" type="docEmptyType" />
+      <xsd:element name="mdash" type="docEmptyType" />
+      <xsd:element name="umlaut" type="docCharType" />
+      <xsd:element name="acute" type="docCharType" />
+      <xsd:element name="grave" type="docCharType" />
+      <xsd:element name="circ" type="docCharType" />
+      <xsd:element name="slash" type="docCharType" />
+      <xsd:element name="tilde" type="docCharType" />
+      <xsd:element name="cedil" type="docCharType" />
+      <xsd:element name="ring" type="docCharType" />
+      <xsd:element name="szlig" type="docEmptyType" />
+      <xsd:element name="nonbreakablespace" type="docEmptyType" />
+    </xsd:choice>
+  </xsd:group>
+
+  <xsd:complexType name="docTitleType" mixed="true">
+    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+  </xsd:complexType>
+
+  <xsd:group name="docCmdGroup">
+    <xsd:choice>
+      <xsd:group ref="docTitleCmdGroup"/>
+      <xsd:element name="linebreak" type="docEmptyType" />
+      <xsd:element name="hruler" type="docEmptyType" />
+      <xsd:element name="preformatted" type="docMarkupType" />
+      <xsd:element name="programlisting" type="listingType" />
+      <xsd:element name="verbatim" type="xsd:string" />
+      <xsd:element name="indexentry" type="docIndexEntryType" />
+      <xsd:element name="orderedlist" type="docListType" />
+      <xsd:element name="itemizedlist" type="docListType" />
+      <xsd:element name="simplesect" type="docSimpleSectType" />
+      <xsd:element name="title" type="docTitleType" />
+      <xsd:element name="variablelist" type="docVariableListType" />
+      <xsd:element name="table" type="docTableType" />
+      <xsd:element name="heading" type="docHeadingType" />
+      <xsd:element name="image" type="docImageType" />
+      <xsd:element name="dotfile" type="docDotFileType" />
+      <xsd:element name="toclist" type="docTocListType" />
+      <xsd:element name="language" type="docLanguageType" />
+      <xsd:element name="parameterlist" type="docParamListType" />
+      <xsd:element name="xrefsect" type="docXRefSectType" />
+      <xsd:element name="copydoc" type="docCopyType" />
+      <xsd:element name="blockquote" type="docBlockQuoteType" />
+    </xsd:choice>
+  </xsd:group>
+
+  <xsd:complexType name="docParaType" mixed="true">
+    <xsd:group ref="docCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docMarkupType" mixed="true">
+    <xsd:group ref="docCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docURLLink" mixed="true">
+    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+    <xsd:attribute name="url" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docAnchorType" mixed="true">
+    <xsd:attribute name="id" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docFormulaType" mixed="true">
+    <xsd:attribute name="id" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docIndexEntryType">
+    <xsd:sequence>
+      <xsd:element name="primaryie" type="xsd:string" />
+      <xsd:element name="secondaryie" type="xsd:string" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docListType">
+    <xsd:sequence>
+      <xsd:element name="listitem" type="docListItemType" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docListItemType">
+    <xsd:sequence>
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docSimpleSectType">
+    <xsd:sequence>
+      <xsd:element name="title" type="docTitleType" minOccurs="0" />
+      <xsd:sequence minOccurs="0" maxOccurs="unbounded">
+        <xsd:element name="para" type="docParaType" minOccurs="1" maxOccurs="unbounded" />
+        <xsd:element name="simplesectsep" type="docEmptyType" minOccurs="0"/>
+      </xsd:sequence>
+    </xsd:sequence>
+    <xsd:attribute name="kind" type="DoxSimpleSectKind" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docVarListEntryType">
+    <xsd:sequence>
+      <xsd:element name="term" type="docTitleType" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:group name="docVariableListGroup">
+    <xsd:sequence>
+      <xsd:element name="varlistentry" type="docVarListEntryType" />
+      <xsd:element name="listitem" type="docListItemType" />
+    </xsd:sequence>
+  </xsd:group>
+
+  <xsd:complexType name="docVariableListType">
+    <xsd:sequence>
+      <xsd:group ref="docVariableListGroup" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docRefTextType" mixed="true">
+    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+    <xsd:attribute name="refid" type="xsd:string" />
+    <xsd:attribute name="kindref" type="DoxRefKind" />
+    <xsd:attribute name="external" type="xsd:string" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docTableType">
+    <xsd:sequence>
+      <xsd:element name="row" type="docRowType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="caption" type="docCaptionType" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="rows" type="xsd:integer" />
+    <xsd:attribute name="cols" type="xsd:integer" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docRowType">
+    <xsd:sequence>
+      <xsd:element name="entry" type="docEntryType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docEntryType">
+    <xsd:sequence>
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="thead" type="DoxBool" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docCaptionType" mixed="true">
+    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docHeadingType" mixed="true">
+    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+    <xsd:attribute name="level" type="xsd:integer" /> <!-- todo: range 1-6 -->
+  </xsd:complexType>
+
+  <xsd:complexType name="docImageType" mixed="true">
+    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+    <xsd:attribute name="type" type="DoxImageKind" /> 
+    <xsd:attribute name="name" type="xsd:string" /> 
+    <xsd:attribute name="width" type="xsd:string" /> 
+    <xsd:attribute name="height" type="xsd:string" /> 
+  </xsd:complexType>
+
+  <xsd:complexType name="docDotFileType" mixed="true">
+    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+    <xsd:attribute name="name" type="xsd:string" /> 
+  </xsd:complexType>
+
+  <xsd:complexType name="docTocItemType" mixed="true">
+    <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
+    <xsd:attribute name="id" type="xsd:string" /> 
+  </xsd:complexType>
+
+  <xsd:complexType name="docTocListType">
+    <xsd:sequence>
+      <xsd:element name="tocitem" type="docTocItemType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docLanguageType">
+    <xsd:sequence>
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="langid" type="xsd:string" /> 
+  </xsd:complexType>
+
+  <xsd:complexType name="docParamListType">
+    <xsd:sequence>
+      <xsd:element name="parameteritem" type="docParamListItem" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+    <xsd:attribute name="kind" type="DoxParamListKind" /> 
+  </xsd:complexType>
+
+  <xsd:complexType name="docParamListItem">
+    <xsd:sequence>
+      <xsd:element name="parameternamelist" type="docParamNameList" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="parameterdescription" type="descriptionType" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docParamNameList">
+    <xsd:sequence>
+      <xsd:element name="parametertype" type="docParamType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="parametername" type="docParamName" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docParamType" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="1" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docParamName" mixed="true">
+    <xsd:sequence>
+      <xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="1" />
+    </xsd:sequence>
+    <xsd:attribute name="direction" type="DoxParamDir" use="optional" />
+  </xsd:complexType>
+
+  <xsd:complexType name="docXRefSectType">
+    <xsd:sequence>
+      <xsd:element name="xreftitle" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="xrefdescription" type="descriptionType" />
+    </xsd:sequence>
+    <xsd:attribute name="id" type="xsd:string" /> 
+  </xsd:complexType>
+
+  <xsd:complexType name="docCopyType">
+    <xsd:sequence>
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
+      <xsd:element name="internal" type="docInternalType" minOccurs="0" />
+    </xsd:sequence>
+    <xsd:attribute name="link" type="xsd:string" /> 
+  </xsd:complexType>
+
+  <xsd:complexType name="docBlockQuoteType">
+    <xsd:sequence>
+      <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
+    </xsd:sequence>
+  </xsd:complexType>
+
+  <xsd:complexType name="docCharType">
+    <xsd:attribute name="char" type="DoxCharRange"/> 
+  </xsd:complexType>
+
+  <xsd:complexType name="docEmptyType"/>
+
+  <!-- Simple types -->
+
+  <xsd:simpleType name="DoxBool">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="yes" />
+      <xsd:enumeration value="no" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxGraphRelation">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="include" />
+      <xsd:enumeration value="usage" />
+      <xsd:enumeration value="template-instance" />
+      <xsd:enumeration value="public-inheritance" />
+      <xsd:enumeration value="protected-inheritance" />
+      <xsd:enumeration value="private-inheritance" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxRefKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="compound" />
+      <xsd:enumeration value="member" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxMemberKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="define" />
+      <xsd:enumeration value="property" />
+      <xsd:enumeration value="event" />
+      <xsd:enumeration value="variable" />
+      <xsd:enumeration value="typedef" />
+      <xsd:enumeration value="enum" />
+      <xsd:enumeration value="function" />
+      <xsd:enumeration value="signal" />
+      <xsd:enumeration value="prototype" />
+      <xsd:enumeration value="friend" />
+      <xsd:enumeration value="dcop" />
+      <xsd:enumeration value="slot" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxProtectionKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="public" />
+      <xsd:enumeration value="protected" />
+      <xsd:enumeration value="private" />
+      <xsd:enumeration value="package" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxVirtualKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="non-virtual" />
+      <xsd:enumeration value="virtual" />
+      <xsd:enumeration value="pure-virtual" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxCompoundKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="class" />
+      <xsd:enumeration value="struct" />
+      <xsd:enumeration value="union" />
+      <xsd:enumeration value="interface" />
+      <xsd:enumeration value="protocol" />
+      <xsd:enumeration value="category" />
+      <xsd:enumeration value="exception" />
+      <xsd:enumeration value="file" />
+      <xsd:enumeration value="namespace" />
+      <xsd:enumeration value="group" />
+      <xsd:enumeration value="page" />
+      <xsd:enumeration value="example" />
+      <xsd:enumeration value="dir" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxSectionKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="user-defined" />
+      <xsd:enumeration value="public-type" />
+      <xsd:enumeration value="public-func" />
+      <xsd:enumeration value="public-attrib" />
+      <xsd:enumeration value="public-slot" />
+      <xsd:enumeration value="signal" />
+      <xsd:enumeration value="dcop-func" />
+      <xsd:enumeration value="property" />
+      <xsd:enumeration value="event" />
+      <xsd:enumeration value="public-static-func" />
+      <xsd:enumeration value="public-static-attrib" />
+      <xsd:enumeration value="protected-type" />
+      <xsd:enumeration value="protected-func" />
+      <xsd:enumeration value="protected-attrib" />
+      <xsd:enumeration value="protected-slot" />
+      <xsd:enumeration value="protected-static-func" />
+      <xsd:enumeration value="protected-static-attrib" />
+      <xsd:enumeration value="package-type" />
+      <xsd:enumeration value="package-func" />
+      <xsd:enumeration value="package-attrib" />
+      <xsd:enumeration value="package-static-func" />
+      <xsd:enumeration value="package-static-attrib" />
+      <xsd:enumeration value="private-type" />
+      <xsd:enumeration value="private-func" />
+      <xsd:enumeration value="private-attrib" />
+      <xsd:enumeration value="private-slot" />
+      <xsd:enumeration value="private-static-func" />
+      <xsd:enumeration value="private-static-attrib" />
+      <xsd:enumeration value="friend" />
+      <xsd:enumeration value="related" />
+      <xsd:enumeration value="define" />
+      <xsd:enumeration value="prototype" />
+      <xsd:enumeration value="typedef" />
+      <xsd:enumeration value="enum" />
+      <xsd:enumeration value="func" />
+      <xsd:enumeration value="var" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxHighlightClass">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="comment" />
+      <xsd:enumeration value="normal" />
+      <xsd:enumeration value="preprocessor" />
+      <xsd:enumeration value="keyword" />
+      <xsd:enumeration value="keywordtype" />
+      <xsd:enumeration value="keywordflow" />
+      <xsd:enumeration value="stringliteral" />
+      <xsd:enumeration value="charliteral" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxSimpleSectKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="see" />
+      <xsd:enumeration value="return" />
+      <xsd:enumeration value="author" />
+      <xsd:enumeration value="authors" />
+      <xsd:enumeration value="version" />
+      <xsd:enumeration value="since" />
+      <xsd:enumeration value="date" />
+      <xsd:enumeration value="note" />
+      <xsd:enumeration value="warning" />
+      <xsd:enumeration value="pre" />
+      <xsd:enumeration value="post" />
+      <xsd:enumeration value="copyright" />
+      <xsd:enumeration value="invariant" />
+      <xsd:enumeration value="remark" />
+      <xsd:enumeration value="attention" />
+      <xsd:enumeration value="par" />
+      <xsd:enumeration value="rcs" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxVersionNumber">
+    <xsd:restriction base="xsd:string">
+      <xsd:pattern value="\d+\.\d+.*" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxImageKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="html" />
+      <xsd:enumeration value="latex" />
+      <xsd:enumeration value="rtf" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxParamListKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="param" />
+      <xsd:enumeration value="retval" />
+      <xsd:enumeration value="exception" />
+      <xsd:enumeration value="templateparam" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxCharRange">
+    <xsd:restriction base="xsd:string">
+      <xsd:pattern value="[aeiouncAEIOUNC]" />
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxParamDir">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="in"/>
+      <xsd:enumeration value="out"/>
+      <xsd:enumeration value="inout"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="DoxAccessor">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="retain"/>
+      <xsd:enumeration value="copy"/>
+      <xsd:enumeration value="assign"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+
+</xsd:schema>
+

+ 3 - 0
gameplay-luagen/gameplay-api/xml/index.xml

@@ -0,0 +1,3 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<doxygenindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="index.xsd" version="1.8.1">
+</doxygenindex>

+ 66 - 0
gameplay-luagen/gameplay-api/xml/index.xsd

@@ -0,0 +1,66 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+  <xsd:element name="doxygenindex" type="DoxygenType"/>
+
+  <xsd:complexType name="DoxygenType">
+    <xsd:sequence>
+      <xsd:element name="compound" type="CompoundType" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:attribute name="version" type="xsd:string" use="required"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="CompoundType">
+    <xsd:sequence>
+      <xsd:element name="name" type="xsd:string"/>
+      <xsd:element name="member" type="MemberType" minOccurs="0" maxOccurs="unbounded"/>
+    </xsd:sequence>
+    <xsd:attribute name="refid" type="xsd:string" use="required"/>
+    <xsd:attribute name="kind" type="CompoundKind" use="required"/>
+  </xsd:complexType>
+
+  <xsd:complexType name="MemberType">
+    <xsd:sequence>
+      <xsd:element name="name" type="xsd:string"/>
+    </xsd:sequence>
+    <xsd:attribute name="refid" type="xsd:string" use="required"/>
+    <xsd:attribute name="kind" type="MemberKind" use="required"/>
+  </xsd:complexType>
+  
+  <xsd:simpleType name="CompoundKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="class"/>
+      <xsd:enumeration value="struct"/>
+      <xsd:enumeration value="union"/>
+      <xsd:enumeration value="interface"/>
+      <xsd:enumeration value="protocol"/>
+      <xsd:enumeration value="category"/>
+      <xsd:enumeration value="exception"/>
+      <xsd:enumeration value="file"/>
+      <xsd:enumeration value="namespace"/>
+      <xsd:enumeration value="group"/>
+      <xsd:enumeration value="page"/>
+      <xsd:enumeration value="example"/>
+      <xsd:enumeration value="dir"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+
+  <xsd:simpleType name="MemberKind">
+    <xsd:restriction base="xsd:string">
+      <xsd:enumeration value="define"/>
+      <xsd:enumeration value="property"/>
+      <xsd:enumeration value="event"/>
+      <xsd:enumeration value="variable"/>
+      <xsd:enumeration value="typedef"/>
+      <xsd:enumeration value="enum"/>
+      <xsd:enumeration value="enumvalue"/>
+      <xsd:enumeration value="function"/>
+      <xsd:enumeration value="signal"/>
+      <xsd:enumeration value="prototype"/>
+      <xsd:enumeration value="friend"/>
+      <xsd:enumeration value="dcop"/>
+      <xsd:enumeration value="slot"/>
+    </xsd:restriction>
+  </xsd:simpleType>
+
+</xsd:schema>
+

+ 1794 - 0
gameplay-luagen/gameplay-luagen.doxyfile

@@ -0,0 +1,1794 @@
+# Doxyfile 1.8.1
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+#       TAG = value [value, ...]
+# For lists items can also be appended using:
+#       TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file 
+# that follow. The default is UTF-8 which is also the encoding used for all 
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the 
+# iconv built into libc) for the transcoding. See 
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING      = UTF-8
+
+# The PROJECT_NAME tag is a single word (or sequence of words) that should 
+# identify the project. Note that if you do not use Doxywizard you need 
+# to put quotes around the project name if it contains spaces.
+
+PROJECT_NAME           = gameplay
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. 
+# This could be handy for archiving the generated documentation or 
+# if some version control system is used.
+
+PROJECT_NUMBER         = 1.4.0
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description 
+# for a project that appears at the top of each page and should give viewer 
+# a quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF          = 
+
+# With the PROJECT_LOGO tag one can specify an logo or icon that is 
+# included in the documentation. The maximum height of the logo should not 
+# exceed 55 pixels and the maximum width should not exceed 200 pixels. 
+# Doxygen will copy the logo to the output directory.
+
+PROJECT_LOGO           = 
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) 
+# base path where the generated documentation will be put. 
+# If a relative path is entered, it will be relative to the location 
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY       = ./gameplay-api
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 
+# 4096 sub-directories (in 2 levels) under the output directory of each output 
+# format and will distribute the generated files over these directories. 
+# Enabling this option can be useful when feeding doxygen a huge amount of 
+# source files, where putting all generated files in the same directory would 
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS         = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all 
+# documentation generated by doxygen is written. Doxygen will use this 
+# information to generate all constant output in the proper language. 
+# The default language is English, other supported languages are: 
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, 
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, 
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English 
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, 
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, 
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE        = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will 
+# include brief member descriptions after the members that are listed in 
+# the file and class documentation (similar to JavaDoc). 
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC      = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend 
+# the brief description of a member or function before the detailed description. 
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF           = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator 
+# that is used to form the text in various listings. Each string 
+# in this list, if found as the leading text of the brief description, will be 
+# stripped from the text and the result after processing the whole list, is 
+# used as the annotated text. Otherwise, the brief description is used as-is. 
+# If left blank, the following values are used ("$name" is automatically 
+# replaced with the name of the entity): "The $name class" "The $name widget" 
+# "The $name file" "is" "provides" "specifies" "contains" 
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF       = "The $name class" \
+                         "The $name widget" \
+                         "The $name file" \
+                         is \
+                         provides \
+                         specifies \
+                         contains \
+                         represents \
+                         a \
+                         an \
+                         the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 
+# Doxygen will generate a detailed section even if there is only a brief 
+# description.
+
+ALWAYS_DETAILED_SEC    = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 
+# inherited members of a class in the documentation of that class as if those 
+# members were ordinary class members. Constructors, destructors and assignment 
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB  = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full 
+# path before files name in the file list and in the header files. If set 
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES        = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag 
+# can be used to strip a user-defined part of the path. Stripping is 
+# only done if one of the specified strings matches the left-hand part of 
+# the path. The tag can be used to show relative paths in the file list. 
+# If left blank the directory from which doxygen is run is used as the 
+# path to strip.
+
+STRIP_FROM_PATH        = 
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of 
+# the path mentioned in the documentation of a class, which tells 
+# the reader which header file to include in order to use a class. 
+# If left blank only the name of the header file containing the class 
+# definition is used. Otherwise one should specify the include paths that 
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH    = 
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter 
+# (but less readable) file names. This can be useful if your file system 
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES            = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen 
+# will interpret the first line (until the first dot) of a JavaDoc-style 
+# comment as the brief description. If set to NO, the JavaDoc 
+# comments will behave just like regular Qt-style comments 
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF      = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will 
+# interpret the first line (until the first dot) of a Qt-style 
+# comment as the brief description. If set to NO, the comments 
+# will behave just like regular Qt-style comments (thus requiring 
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF           = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen 
+# treat a multi-line C++ special comment block (i.e. a block of //! or /// 
+# comments) as a brief description. This used to be the default behaviour. 
+# The new default is to treat a multi-line C++ comment block as a detailed 
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented 
+# member inherits the documentation from any documented member that it 
+# re-implements.
+
+INHERIT_DOCS           = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce 
+# a new page for each member. If set to NO, the documentation of a member will 
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES  = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. 
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE               = 4
+
+# This tag can be used to specify a number of aliases that acts 
+# as commands in the documentation. An alias has the form "name=value". 
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to 
+# put the command \sideeffect (or @sideeffect) in the documentation, which 
+# will result in a user-defined paragraph with heading "Side Effects:". 
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES                = "script{1} = \xmlonly <xmlonly>\1</xmlonly> \endxmlonly"
+
+# This tag can be used to specify a number of word-keyword mappings (TCL only). 
+# A mapping has the form "name=value". For example adding 
+# "class=itcl::class" will allow you to use the command class in the 
+# itcl::class meaning.
+
+TCL_SUBST              = 
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C 
+# sources only. Doxygen will then generate output that is more tailored for C. 
+# For instance, some of the names that are used will be different. The list 
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C  = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java 
+# sources only. Doxygen will then generate output that is more tailored for 
+# Java. For instance, namespaces will be presented as packages, qualified 
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA   = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran 
+# sources only. Doxygen will then generate output that is more tailored for 
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN   = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL 
+# sources. Doxygen will then generate output that is tailored for 
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL   = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it 
+# parses. With this tag you can assign which parser to use for a given extension. 
+# Doxygen has a built-in mapping, but you can override or extend it using this 
+# tag. The format is ext=language, where ext is a file extension, and language 
+# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, 
+# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make 
+# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C 
+# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions 
+# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen.
+
+EXTENSION_MAPPING      = 
+
+# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all 
+# comments according to the Markdown format, which allows for more readable 
+# documentation. See http://daringfireball.net/projects/markdown/ for details. 
+# The output of markdown processing is further processed by doxygen, so you 
+# can mix doxygen, HTML, and XML commands with Markdown formatting. 
+# Disable only in case of backward compatibilities issues.
+
+MARKDOWN_SUPPORT       = YES
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want 
+# to include (a tag file for) the STL sources as input, then you should 
+# set this tag to YES in order to let doxygen match functions declarations and 
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. 
+# func(std::string) {}). This also makes the inheritance and collaboration 
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT    = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to 
+# enable parsing support.
+
+CPP_CLI_SUPPORT        = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. 
+# Doxygen will parse them like normal C++ but will assume all classes use public 
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT            = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate getter 
+# and setter methods for a property. Setting this option to YES (the default) 
+# will make doxygen replace the get and set methods by a property in the 
+# documentation. This will only work if the methods are indeed getting or 
+# setting a simple type. If this is not the case, or you want to show the 
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT   = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC 
+# tag is set to YES, then doxygen will reuse the documentation of the first 
+# member in the group (if any) for the other members of the group. By default 
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC   = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of 
+# the same type (for instance a group of public functions) to be put as a 
+# subgroup of that type (e.g. under the Public Functions section). Set it to 
+# NO to prevent subgrouping. Alternatively, this can be done per class using 
+# the \nosubgrouping command.
+
+SUBGROUPING            = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and 
+# unions are shown inside the group in which they are included (e.g. using 
+# @ingroup) instead of on a separate page (for HTML and Man pages) or 
+# section (for LaTeX and RTF).
+
+INLINE_GROUPED_CLASSES = NO
+
+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and 
+# unions with only public data fields will be shown inline in the documentation 
+# of the scope in which they are defined (i.e. file, namespace, or group 
+# documentation), provided this scope is documented. If set to NO (the default), 
+# structs, classes, and unions are shown on a separate page (for HTML and Man 
+# pages) or section (for LaTeX and RTF).
+
+INLINE_SIMPLE_STRUCTS  = NO
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum 
+# is documented as struct, union, or enum with the name of the typedef. So 
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct 
+# with name TypeT. When disabled the typedef will appear as a member of a file, 
+# namespace, or class. And the struct will be named TypeS. This can typically 
+# be useful for C code in case the coding convention dictates that all compound 
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT   = NO
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to 
+# determine which symbols to keep in memory and which to flush to disk. 
+# When the cache is full, less often used symbols will be written to disk. 
+# For small to medium size projects (<1000 input files) the default value is 
+# probably good enough. For larger projects a too small cache size can cause 
+# doxygen to be busy swapping symbols to and from disk most of the time 
+# causing a significant performance penalty. 
+# If the system has enough physical memory increasing the cache will improve the 
+# performance by keeping more symbols in memory. Note that the value works on 
+# a logarithmic scale so increasing the size by one will roughly double the 
+# memory usage. The cache size is given by this formula: 
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, 
+# corresponding to a cache size of 2^16 = 65536 symbols.
+
+SYMBOL_CACHE_SIZE      = 0
+
+# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be 
+# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given 
+# their name and scope. Since this can be an expensive process and often the 
+# same symbol appear multiple times in the code, doxygen keeps a cache of 
+# pre-resolved symbols. If the cache is too small doxygen will become slower. 
+# If the cache is too large, memory is wasted. The cache size is given by this 
+# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, 
+# corresponding to a cache size of 2^16 = 65536 symbols.
+
+LOOKUP_CACHE_SIZE      = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in 
+# documentation are documented, even if no documentation was available. 
+# Private class members and static file members will be hidden unless 
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL            = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class 
+# will be included in the documentation.
+
+EXTRACT_PRIVATE        = NO
+
+# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal
+# scope will be included in the documentation.
+
+EXTRACT_PACKAGE        = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file 
+# will be included in the documentation.
+
+EXTRACT_STATIC         = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) 
+# defined locally in source files will be included in the documentation. 
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES  = NO
+
+# This flag is only useful for Objective-C code. When set to YES local 
+# methods, which are defined in the implementation section but not in 
+# the interface are included in the documentation. 
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS  = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be 
+# extracted and appear in the documentation as a namespace called 
+# 'anonymous_namespace{file}', where file will be replaced with the base 
+# name of the file that contains the anonymous namespace. By default 
+# anonymous namespaces are hidden.
+
+EXTRACT_ANON_NSPACES   = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all 
+# undocumented members of documented classes, files or namespaces. 
+# If set to NO (the default) these members will be included in the 
+# various overviews, but no documentation section is generated. 
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS     = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all 
+# undocumented classes that are normally visible in the class hierarchy. 
+# If set to NO (the default) these classes will be included in the various 
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES     = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all 
+# friend (class|struct|union) declarations. 
+# If set to NO (the default) these declarations will be included in the 
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS  = YES
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any 
+# documentation blocks found inside the body of a function. 
+# If set to NO (the default) these blocks will be appended to the 
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS      = NO
+
+# The INTERNAL_DOCS tag determines if documentation 
+# that is typed after a \internal command is included. If the tag is set 
+# to NO (the default) then the documentation will be excluded. 
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS          = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate 
+# file names in lower-case letters. If set to YES upper-case letters are also 
+# allowed. This is useful if you have classes or files whose names only differ 
+# in case and if your file system supports case sensitive file names. Windows 
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES       = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen 
+# will show members with their full class and namespace scopes in the 
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES       = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen 
+# will put a list of the files that are included by a file in the documentation 
+# of that file.
+
+SHOW_INCLUDE_FILES     = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen 
+# will list include files with double quotes in the documentation 
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES   = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] 
+# is inserted in the documentation for inline members.
+
+INLINE_INFO            = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen 
+# will sort the (detailed) documentation of file and class members 
+# alphabetically by member name. If set to NO the members will appear in 
+# declaration order.
+
+SORT_MEMBER_DOCS       = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the 
+# brief documentation of file, namespace and class members alphabetically 
+# by member name. If set to NO (the default) the members will appear in 
+# declaration order.
+
+SORT_BRIEF_DOCS        = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen 
+# will sort the (brief and detailed) documentation of class members so that 
+# constructors and destructors are listed first. If set to NO (the default) 
+# the constructors will appear in the respective orders defined by 
+# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. 
+# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO 
+# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the 
+# hierarchy of group names into alphabetical order. If set to NO (the default) 
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES       = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be 
+# sorted by fully-qualified names, including namespaces. If set to 
+# NO (the default), the class list will be sorted only by class name, 
+# not including the namespace part. 
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. 
+# Note: This option applies only to the class list, not to the 
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME     = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to 
+# do proper type resolution of all parameters of a function it will reject a 
+# match between the prototype and the implementation of a member function even 
+# if there is only one candidate or it is obvious which candidate to choose 
+# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen 
+# will still accept a match between prototype and implementation in such cases.
+
+STRICT_PROTO_MATCHING  = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or 
+# disable (NO) the todo list. This list is created by putting \todo 
+# commands in the documentation.
+
+GENERATE_TODOLIST      = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or 
+# disable (NO) the test list. This list is created by putting \test 
+# commands in the documentation.
+
+GENERATE_TESTLIST      = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or 
+# disable (NO) the bug list. This list is created by putting \bug 
+# commands in the documentation.
+
+GENERATE_BUGLIST       = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or 
+# disable (NO) the deprecated list. This list is created by putting 
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional 
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS       = 
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines 
+# the initial value of a variable or macro consists of for it to appear in 
+# the documentation. If the initializer consists of more lines than specified 
+# here it will be hidden. Use a value of 0 to hide initializers completely. 
+# The appearance of the initializer of individual variables and macros in the 
+# documentation can be controlled using \showinitializer or \hideinitializer 
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES  = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated 
+# at the bottom of the documentation of classes and structs. If set to YES the 
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES        = NO
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. 
+# This will remove the Files entry from the Quick Index and from the 
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES             = NO
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the 
+# Namespaces page.  This will remove the Namespaces entry from the Quick Index 
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES        = NO
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that 
+# doxygen should invoke to get the current version for each file (typically from 
+# the version control system). Doxygen will invoke the program by executing (via 
+# popen()) the command <command> <input-file>, where <command> is the value of 
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file 
+# provided by doxygen. Whatever the program writes to standard output 
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER    = 
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed 
+# by doxygen. The layout file controls the global structure of the generated 
+# output files in an output format independent way. The create the layout file 
+# that represents doxygen's defaults, run doxygen with the -l option. 
+# You can optionally specify a file name after the option, if omitted 
+# DoxygenLayout.xml will be used as the name of the layout file.
+
+LAYOUT_FILE            = 
+
+# The CITE_BIB_FILES tag can be used to specify one or more bib files 
+# containing the references data. This must be a list of .bib files. The 
+# .bib extension is automatically appended if omitted. Using this command 
+# requires the bibtex tool to be installed. See also 
+# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style 
+# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this 
+# feature you need bibtex and perl available in the search path.
+
+CITE_BIB_FILES         = 
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated 
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET                  = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are 
+# generated by doxygen. Possible values are YES and NO. If left blank 
+# NO is used.
+
+WARNINGS               = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings 
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will 
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED   = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for 
+# potential errors in the documentation, such as not documenting some 
+# parameters in a documented function, or documenting parameters that 
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR      = YES
+
+# The WARN_NO_PARAMDOC option can be enabled to get warnings for 
+# functions that are documented, but have no documentation for their parameters 
+# or return value. If set to NO (the default) doxygen will only warn about 
+# wrong or incomplete parameter documentation, but not about the absence of 
+# documentation.
+
+WARN_NO_PARAMDOC       = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that 
+# doxygen can produce. The string should contain the $file, $line, and $text 
+# tags, which will be replaced by the file and line number from which the 
+# warning originated and the warning text. Optionally the format may contain 
+# $version, which will be replaced by the version of the file (if it could 
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT            = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning 
+# and error messages should be written. If left blank the output is written 
+# to stderr.
+
+WARN_LOGFILE           = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain 
+# documented source files. You may enter file names like "myfile.cpp" or 
+# directories like "/usr/src/myproject". Separate the files or directories 
+# with spaces.
+
+INPUT                  = ./gameplay/src
+
+# This tag can be used to specify the character encoding of the source files 
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is 
+# also the default input encoding. Doxygen uses libiconv (or the iconv built 
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for 
+# the list of possible encodings.
+
+INPUT_ENCODING         = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the 
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
+# and *.h) to filter out the source-files in the directories. If left 
+# blank the following patterns are tested: 
+# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh 
+# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py 
+# *.f90 *.f *.for *.vhd *.vhdl
+
+FILE_PATTERNS          = *.h \
+                         *.cpp
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories 
+# should be searched for input files as well. Possible values are YES and NO. 
+# If left blank NO is used.
+
+RECURSIVE              = NO
+
+# The EXCLUDE tag can be used to specify files and/or directories that should be 
+# excluded from the INPUT source files. This way you can easily exclude a 
+# subdirectory from a directory tree whose root is specified with the INPUT tag. 
+# Note that relative paths are relative to the directory from which doxygen is 
+# run.
+
+EXCLUDE                = 
+
+# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or 
+# directories that are symbolic links (a Unix file system feature) are excluded 
+# from the input.
+
+EXCLUDE_SYMLINKS       = NO
+
+# If the value of the INPUT tag contains directories, you can use the 
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 
+# certain files from those directories. Note that the wildcards are matched 
+# against the file with absolute path, so to exclude all test directories 
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS       = 
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names 
+# (namespaces, classes, functions, etc.) that should be excluded from the 
+# output. The symbol name can be a fully qualified name, a word, or if the 
+# wildcard * is used, a substring. Examples: ANamespace, AClass, 
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS        = 
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or 
+# directories that contain example code fragments that are included (see 
+# the \include command).
+
+EXAMPLE_PATH           = 
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the 
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
+# and *.h) to filter out the source-files in the directories. If left 
+# blank all files are included.
+
+EXAMPLE_PATTERNS       = *
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be 
+# searched for input files to be used with the \include or \dontinclude 
+# commands irrespective of the value of the RECURSIVE tag. 
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE      = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or 
+# directories that contain image that are included in the documentation (see 
+# the \image command).
+
+IMAGE_PATH             = 
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should 
+# invoke to filter for each input file. Doxygen will invoke the filter program 
+# by executing (via popen()) the command <filter> <input-file>, where <filter> 
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an 
+# input file. Doxygen will then use the output that the filter program writes 
+# to standard output.  If FILTER_PATTERNS is specified, this tag will be 
+# ignored.
+
+INPUT_FILTER           = 
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern 
+# basis.  Doxygen will compare the file name with each pattern and apply the 
+# filter if there is a match.  The filters are a list of the form: 
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further 
+# info on how filters are used. If FILTER_PATTERNS is empty or if 
+# non of the patterns match the file name, INPUT_FILTER is applied.
+
+FILTER_PATTERNS        = 
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using 
+# INPUT_FILTER) will be used to filter the input files when producing source 
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES    = NO
+
+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file 
+# pattern. A pattern will override the setting for FILTER_PATTERN (if any) 
+# and it is also possible to disable source filtering for a specific pattern 
+# using *.ext= (so without naming a filter). This option only has effect when 
+# FILTER_SOURCE_FILES is enabled.
+
+FILTER_SOURCE_PATTERNS = 
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will 
+# be generated. Documented entities will be cross-referenced with these sources. 
+# Note: To get rid of all source code in the generated output, make sure also 
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER         = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body 
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES         = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct 
+# doxygen to hide any special comment blocks from generated source code 
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS    = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES 
+# then for each documented function all documented 
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES 
+# then for each documented function all documented entities 
+# called/used by that function will be listed.
+
+REFERENCES_RELATION    = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) 
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from 
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will 
+# link to the source code.  Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code 
+# will point to the HTML generated by the htags(1) tool instead of doxygen 
+# built-in source browser. The htags tool is part of GNU's global source 
+# tagging system (see http://www.gnu.org/software/global/global.html). You 
+# will need version 4.8.6 or higher.
+
+USE_HTAGS              = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen 
+# will generate a verbatim copy of the header file for each class for 
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS       = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index 
+# of all compounds will be generated. Enable this if the project 
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX     = YES
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then 
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns 
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX    = 5
+
+# In case all classes in a project start with a common prefix, all 
+# classes will be put under the same header in the alphabetical index. 
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that 
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX          = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will 
+# generate HTML output.
+
+GENERATE_HTML          = NO
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT            = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for 
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank 
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION    = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for 
+# each generated HTML page. If it is left blank doxygen will generate a 
+# standard header. Note that when using a custom header you are responsible  
+# for the proper inclusion of any scripts and style sheets that doxygen 
+# needs, which is dependent on the configuration options used. 
+# It is advised to generate a default header using "doxygen -w html 
+# header.html footer.html stylesheet.css YourConfigFile" and then modify 
+# that header. Note that the header is subject to change so you typically 
+# have to redo this when upgrading to a newer version of doxygen or when 
+# changing the value of configuration settings such as GENERATE_TREEVIEW!
+
+HTML_HEADER            = 
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for 
+# each generated HTML page. If it is left blank doxygen will generate a 
+# standard footer.
+
+HTML_FOOTER            = 
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading 
+# style sheet that is used by each HTML page. It can be used to 
+# fine-tune the look of the HTML output. If the tag is left blank doxygen 
+# will generate a default style sheet. Note that doxygen will try to copy 
+# the style sheet file to the HTML output directory, so don't put your own 
+# style sheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET        = 
+
+# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or 
+# other source files which should be copied to the HTML output directory. Note 
+# that these files will be copied to the base HTML output directory. Use the 
+# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these 
+# files. In the HTML_STYLESHEET file, use the file name only. Also note that 
+# the files will be copied as-is; there are no commands or markers available.
+
+HTML_EXTRA_FILES       = 
+
+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. 
+# Doxygen will adjust the colors in the style sheet and background images 
+# according to this color. Hue is specified as an angle on a colorwheel, 
+# see http://en.wikipedia.org/wiki/Hue for more information. 
+# For instance the value 0 represents red, 60 is yellow, 120 is green, 
+# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. 
+# The allowed range is 0 to 359.
+
+HTML_COLORSTYLE_HUE    = 220
+
+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of 
+# the colors in the HTML output. For a value of 0 the output will use 
+# grayscales only. A value of 255 will produce the most vivid colors.
+
+HTML_COLORSTYLE_SAT    = 100
+
+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to 
+# the luminance component of the colors in the HTML output. Values below 
+# 100 gradually make the output lighter, whereas values above 100 make 
+# the output darker. The value divided by 100 is the actual gamma applied, 
+# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, 
+# and 100 does not change the gamma.
+
+HTML_COLORSTYLE_GAMMA  = 80
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML 
+# page will contain the date and time when the page was generated. Setting 
+# this to NO can help when comparing the output of multiple runs.
+
+HTML_TIMESTAMP         = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML 
+# documentation will contain sections that can be hidden and shown after the 
+# page has loaded.
+
+HTML_DYNAMIC_SECTIONS  = NO
+
+# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of 
+# entries shown in the various tree structured indices initially; the user 
+# can expand and collapse entries dynamically later on. Doxygen will expand 
+# the tree to such a level that at most the specified number of entries are 
+# visible (unless a fully collapsed tree already exceeds this amount). 
+# So setting the number of entries 1 will produce a full collapsed tree by 
+# default. 0 is a special value representing an infinite number of entries 
+# and will result in a full expanded tree by default.
+
+HTML_INDEX_NUM_ENTRIES = 113
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files 
+# will be generated that can be used as input for Apple's Xcode 3 
+# integrated development environment, introduced with OSX 10.5 (Leopard). 
+# To create a documentation set, doxygen will generate a Makefile in the 
+# HTML output directory. Running make will produce the docset in that 
+# directory and running "make install" will install the docset in 
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find 
+# it at startup. 
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html 
+# for more information.
+
+GENERATE_DOCSET        = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the 
+# feed. A documentation feed provides an umbrella under which multiple 
+# documentation sets from a single provider (such as a company or product suite) 
+# can be grouped.
+
+DOCSET_FEEDNAME        = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that 
+# should uniquely identify the documentation set bundle. This should be a 
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen 
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID       = org.doxygen.Project
+
+# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify 
+# the documentation publisher. This should be a reverse domain-name style 
+# string, e.g. com.mycompany.MyDocSet.documentation.
+
+DOCSET_PUBLISHER_ID    = org.doxygen.Publisher
+
+# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
+
+DOCSET_PUBLISHER_NAME  = Publisher
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files 
+# will be generated that can be used as input for tools like the 
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) 
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP      = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can 
+# be used to specify the file name of the resulting .chm file. You 
+# can add a path in front of the file if the result should not be 
+# written to the html output directory.
+
+CHM_FILE               = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can 
+# be used to specify the location (absolute path including file name) of 
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run 
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION           = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag 
+# controls if a separate .chi index file is generated (YES) or that 
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI           = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING 
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file 
+# content.
+
+CHM_INDEX_ENCODING     = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag 
+# controls whether a binary table of contents is generated (YES) or a 
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC             = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members 
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND             = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and 
+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated 
+# that can be used as input for Qt's qhelpgenerator to generate a 
+# Qt Compressed Help (.qch) of the generated HTML documentation.
+
+GENERATE_QHP           = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can 
+# be used to specify the file name of the resulting .qch file. 
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE               = 
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating 
+# Qt Help Project output. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE          = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating 
+# Qt Help Project output. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER     = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to 
+# add. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME   = 
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the 
+# custom filter to add. For more information please see 
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters"> 
+# Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS  = 
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this 
+# project's 
+# filter section matches. 
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes"> 
+# Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS  = 
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can 
+# be used to specify the location of Qt's qhelpgenerator. 
+# If non-empty doxygen will try to run qhelpgenerator on the generated 
+# .qhp file.
+
+QHG_LOCATION           = 
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files  
+# will be generated, which together with the HTML files, form an Eclipse help 
+# plugin. To install this plugin and make it available under the help contents 
+# menu in Eclipse, the contents of the directory containing the HTML and XML 
+# files needs to be copied into the plugins directory of eclipse. The name of 
+# the directory within the plugins directory should be the same as 
+# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before 
+# the help appears.
+
+GENERATE_ECLIPSEHELP   = NO
+
+# A unique identifier for the eclipse help plugin. When installing the plugin 
+# the directory name containing the HTML and XML files should also have 
+# this name.
+
+ECLIPSE_DOC_ID         = org.doxygen.Project
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) 
+# at top of each HTML page. The value NO (the default) enables the index and 
+# the value YES disables it. Since the tabs have the same information as the 
+# navigation tree you can set this option to NO if you already set 
+# GENERATE_TREEVIEW to YES.
+
+DISABLE_INDEX          = NO
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index 
+# structure should be generated to display hierarchical information. 
+# If the tag value is set to YES, a side panel will be generated 
+# containing a tree-like index structure (just like the one that 
+# is generated for HTML Help). For this to work a browser that supports 
+# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). 
+# Windows users are probably better off using the HTML help feature. 
+# Since the tree basically has the same information as the tab index you 
+# could consider to set DISABLE_INDEX to NO when enabling this option.
+
+GENERATE_TREEVIEW      = NO
+
+# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values 
+# (range [0,1..20]) that doxygen will group on one line in the generated HTML 
+# documentation. Note that a value of 0 will completely suppress the enum 
+# values from appearing in the overview section.
+
+ENUM_VALUES_PER_LINE   = 4
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be 
+# used to set the initial width (in pixels) of the frame in which the tree 
+# is shown.
+
+TREEVIEW_WIDTH         = 250
+
+# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open 
+# links to external symbols imported via tag files in a separate window.
+
+EXT_LINKS_IN_WINDOW    = NO
+
+# Use this tag to change the font size of Latex formulas included 
+# as images in the HTML documentation. The default is 10. Note that 
+# when you change the font size after a successful doxygen run you need 
+# to manually remove any form_*.png images from the HTML output directory 
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE       = 10
+
+# Use the FORMULA_TRANPARENT tag to determine whether or not the images 
+# generated for formulas are transparent PNGs. Transparent PNGs are 
+# not supported properly for IE 6.0, but are supported on all modern browsers. 
+# Note that when changing this option you need to delete any form_*.png files 
+# in the HTML output before the changes have effect.
+
+FORMULA_TRANSPARENT    = YES
+
+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax 
+# (see http://www.mathjax.org) which uses client side Javascript for the 
+# rendering instead of using prerendered bitmaps. Use this if you do not 
+# have LaTeX installed or if you want to formulas look prettier in the HTML 
+# output. When enabled you may also need to install MathJax separately and 
+# configure the path to it using the MATHJAX_RELPATH option.
+
+USE_MATHJAX            = NO
+
+# When MathJax is enabled you need to specify the location relative to the 
+# HTML output directory using the MATHJAX_RELPATH option. The destination 
+# directory should contain the MathJax.js script. For instance, if the mathjax 
+# directory is located at the same level as the HTML output directory, then 
+# MATHJAX_RELPATH should be ../mathjax. The default value points to 
+# the MathJax Content Delivery Network so you can quickly see the result without 
+# installing MathJax.  However, it is strongly recommended to install a local 
+# copy of MathJax from http://www.mathjax.org before deployment.
+
+MATHJAX_RELPATH        = http://www.mathjax.org/mathjax
+
+# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension 
+# names that should be enabled during MathJax rendering.
+
+MATHJAX_EXTENSIONS     = 
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box 
+# for the HTML output. The underlying search engine uses javascript 
+# and DHTML and should work on any modern browser. Note that when using 
+# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets 
+# (GENERATE_DOCSET) there is already a search function so this one should 
+# typically be disabled. For large projects the javascript based search engine 
+# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+
+SEARCHENGINE           = YES
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be 
+# implemented using a PHP enabled web server instead of at the web client 
+# using Javascript. Doxygen will generate the search PHP script and index 
+# file to put on the web server. The advantage of the server 
+# based approach is that it scales better to large projects and allows 
+# full text search. The disadvantages are that it is more difficult to setup 
+# and does not have live searching capabilities.
+
+SERVER_BASED_SEARCH    = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will 
+# generate Latex output.
+
+GENERATE_LATEX         = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT           = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be 
+# invoked. If left blank `latex' will be used as the default command name. 
+# Note that when enabling USE_PDFLATEX this option is only used for 
+# generating bitmaps for formulas in the HTML output, but not in the 
+# Makefile that is written to the output directory.
+
+LATEX_CMD_NAME         = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to 
+# generate index for LaTeX. If left blank `makeindex' will be used as the 
+# default command name.
+
+MAKEINDEX_CMD_NAME     = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact 
+# LaTeX documents. This may be useful for small projects and may help to 
+# save some trees in general.
+
+COMPACT_LATEX          = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used 
+# by the printer. Possible values are: a4, letter, legal and 
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE             = a4
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX 
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES         = 
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for 
+# the generated latex document. The header should contain everything until 
+# the first chapter. If it is left blank doxygen will generate a 
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER           = 
+
+# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for 
+# the generated latex document. The footer should contain everything after 
+# the last chapter. If it is left blank doxygen will generate a 
+# standard footer. Notice: only use this tag if you know what you are doing!
+
+LATEX_FOOTER           = 
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated 
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will 
+# contain links (just like the HTML output) instead of page references 
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS         = YES
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of 
+# plain latex in the generated Makefile. Set this option to YES to get a 
+# higher quality PDF documentation.
+
+USE_PDFLATEX           = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. 
+# command to the generated LaTeX files. This will instruct LaTeX to keep 
+# running if errors occur, instead of asking the user for help. 
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE        = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not 
+# include the index chapters (such as File Index, Compound Index, etc.) 
+# in the output.
+
+LATEX_HIDE_INDICES     = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include 
+# source code with syntax highlighting in the LaTeX output. 
+# Note that which sources are shown also depends on other settings 
+# such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE      = NO
+
+# The LATEX_BIB_STYLE tag can be used to specify the style to use for the 
+# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See 
+# http://en.wikipedia.org/wiki/BibTeX for more info.
+
+LATEX_BIB_STYLE        = plain
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output 
+# The RTF output is optimized for Word 97 and may not look very pretty with 
+# other RTF readers or editors.
+
+GENERATE_RTF           = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT             = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact 
+# RTF documents. This may be useful for small projects and may help to 
+# save some trees in general.
+
+COMPACT_RTF            = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated 
+# will contain hyperlink fields. The RTF file will 
+# contain links (just like the HTML output) instead of page references. 
+# This makes the output suitable for online browsing using WORD or other 
+# programs which support those fields. 
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS         = NO
+
+# Load style sheet definitions from file. Syntax is similar to doxygen's 
+# config file, i.e. a series of assignments. You only have to provide 
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE    = 
+
+# Set optional variables used in the generation of an rtf document. 
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE    = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will 
+# generate man pages
+
+GENERATE_MAN           = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT             = man
+
+# The MAN_EXTENSION tag determines the extension that is added to 
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION          = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output, 
+# then it will generate one additional man file for each entity 
+# documented in the real man page(s). These additional files 
+# only source the real man page, but without them the man command 
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS              = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will 
+# generate an XML file that captures the structure of 
+# the code including all documentation.
+
+GENERATE_XML           = YES
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT             = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema, 
+# which can be used by a validating XML parser to check the 
+# syntax of the XML files.
+
+XML_SCHEMA             = 
+
+# The XML_DTD tag can be used to specify an XML DTD, 
+# which can be used by a validating XML parser to check the 
+# syntax of the XML files.
+
+XML_DTD                = 
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will 
+# dump the program listings (including syntax highlighting 
+# and cross-referencing information) to the XML output. Note that 
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING     = NO
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will 
+# generate an AutoGen Definitions (see autogen.sf.net) file 
+# that captures the structure of the code including all 
+# documentation. Note that this feature is still experimental 
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF   = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will 
+# generate a Perl module file that captures the structure of 
+# the code including all documentation. Note that this 
+# feature is still experimental and incomplete at the 
+# moment.
+
+GENERATE_PERLMOD       = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate 
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able 
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX          = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be 
+# nicely formatted so it can be parsed by a human reader.  This is useful 
+# if you want to understand what is going on.  On the other hand, if this 
+# tag is set to NO the size of the Perl module output will be much smaller 
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY         = YES
+
+# The names of the make variables in the generated doxyrules.make file 
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. 
+# This is useful so different doxyrules.make files included by the same 
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX = 
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will 
+# evaluate all C-preprocessor directives found in the sources and include 
+# files.
+
+ENABLE_PREPROCESSING   = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro 
+# names in the source code. If set to NO (the default) only conditional 
+# compilation will be performed. Macro expansion can be done in a controlled 
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION        = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES 
+# then the macro expansion is limited to the macros specified with the 
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF     = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files 
+# pointed to by INCLUDE_PATH will be searched when a #include is found.
+
+SEARCH_INCLUDES        = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that 
+# contain include files that are not input files but should be processed by 
+# the preprocessor.
+
+INCLUDE_PATH           = 
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard 
+# patterns (like *.h and *.hpp) to filter out the header-files in the 
+# directories. If left blank, the patterns specified with FILE_PATTERNS will 
+# be used.
+
+INCLUDE_FILE_PATTERNS  = 
+
+# The PREDEFINED tag can be used to specify one or more macro names that 
+# are defined before the preprocessor is started (similar to the -D option of 
+# gcc). The argument of the tag is a list of macros of the form: name 
+# or name=definition (no spaces). If the definition and the = are 
+# omitted =1 is assumed. To prevent a macro definition from being 
+# undefined via #undef or recursively expanded use the := operator 
+# instead of the = operator.
+
+PREDEFINED             = 
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then 
+# this tag can be used to specify a list of macro names that should be expanded. 
+# The macro definition that is found in the sources will be used. 
+# Use the PREDEFINED tag if you want to use a different macro definition that 
+# overrules the definition found in the source code.
+
+EXPAND_AS_DEFINED      = 
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then 
+# doxygen's preprocessor will remove all references to function-like macros 
+# that are alone on a line, have an all uppercase name, and do not end with a 
+# semicolon, because these will confuse the parser if not removed.
+
+SKIP_FUNCTION_MACROS   = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles. For each 
+# tag file the location of the external documentation should be added. The 
+# format of a tag file without this location is as follows: 
+#   TAGFILES = file1 file2 ... 
+# Adding location for the tag files is done as follows: 
+#   TAGFILES = file1=loc1 "file2 = loc2" ... 
+# where "loc1" and "loc2" can be relative or absolute paths 
+# or URLs. Note that each tag file must have a unique name (where the name does 
+# NOT include the path). If a tag file is not located in the directory in which 
+# doxygen is run, you must also specify the path to the tagfile here.
+
+TAGFILES               = 
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create 
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE       = 
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed 
+# in the class index. If set to NO only the inherited external classes 
+# will be listed.
+
+ALLEXTERNALS           = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed 
+# in the modules index. If set to NO, only the current project's groups will 
+# be listed.
+
+EXTERNAL_GROUPS        = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script 
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH              = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will 
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base 
+# or super classes. Setting the tag to NO turns the diagrams off. Note that 
+# this option also works with HAVE_DOT disabled, but it is recommended to 
+# install and use dot, since it yields more powerful graphs.
+
+CLASS_DIAGRAMS         = YES
+
+# You can define message sequence charts within doxygen comments using the \msc 
+# command. Doxygen will then run the mscgen tool (see 
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the 
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where 
+# the mscgen tool resides. If left empty the tool is assumed to be found in the 
+# default search path.
+
+MSCGEN_PATH            = 
+
+# If set to YES, the inheritance and collaboration graphs will hide 
+# inheritance and usage relations if the target is undocumented 
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS   = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is 
+# available from the path. This tool is part of Graphviz, a graph visualization 
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section 
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT               = NO
+
+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is 
+# allowed to run in parallel. When set to 0 (the default) doxygen will 
+# base this on the number of processors available in the system. You can set it 
+# explicitly to a value larger than 0 to get control over the balance 
+# between CPU load and processing speed.
+
+DOT_NUM_THREADS        = 0
+
+# By default doxygen will use the Helvetica font for all dot files that 
+# doxygen generates. When you want a differently looking font you can specify 
+# the font name using DOT_FONTNAME. You need to make sure dot is able to find 
+# the font, which can be done by putting it in a standard location or by setting 
+# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the 
+# directory containing the font.
+
+DOT_FONTNAME           = Helvetica
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. 
+# The default size is 10pt.
+
+DOT_FONTSIZE           = 10
+
+# By default doxygen will tell dot to use the Helvetica font. 
+# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to 
+# set the path where dot can find it.
+
+DOT_FONTPATH           = 
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for each documented class showing the direct and 
+# indirect inheritance relations. Setting this tag to YES will force the 
+# CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH            = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for each documented class showing the direct and 
+# indirect implementation dependencies (inheritance, containment, and 
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH    = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS           = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and 
+# collaboration diagrams in a style similar to the OMG's Unified Modeling 
+# Language.
+
+UML_LOOK               = NO
+
+# If the UML_LOOK tag is enabled, the fields and methods are shown inside 
+# the class node. If there are many fields or methods and many nodes the 
+# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS 
+# threshold limits the number of items for each type to make the size more 
+# managable. Set this to 0 for no limit. Note that the threshold may be 
+# exceeded by 50% before the limit is enforced.
+
+UML_LIMIT_NUM_FIELDS   = 10
+
+# If set to YES, the inheritance and collaboration graphs will show the 
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS     = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT 
+# tags are set to YES then doxygen will generate a graph for each documented 
+# file showing the direct and indirect include dependencies of the file with 
+# other documented files.
+
+INCLUDE_GRAPH          = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and 
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each 
+# documented header file showing the documented files that directly or 
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH      = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then 
+# doxygen will generate a call dependency graph for every global function 
+# or class method. Note that enabling this option will significantly increase 
+# the time of a run. So in most cases it will be better to enable call graphs 
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH             = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then 
+# doxygen will generate a caller dependency graph for every global function 
+# or class method. Note that enabling this option will significantly increase 
+# the time of a run. So in most cases it will be better to enable caller 
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH           = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY    = YES
+
+# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES 
+# then doxygen will show the dependencies a directory has on other directories 
+# in a graphical way. The dependency relations are determined by the #include 
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH        = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images 
+# generated by dot. Possible values are svg, png, jpg, or gif. 
+# If left blank png will be used. If you choose svg you need to set 
+# HTML_FILE_EXTENSION to xhtml in order to make the SVG files 
+# visible in IE 9+ (other browsers do not have this requirement).
+
+DOT_IMAGE_FORMAT       = png
+
+# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to 
+# enable generation of interactive SVG images that allow zooming and panning. 
+# Note that this requires a modern browser other than Internet Explorer. 
+# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you 
+# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files 
+# visible. Older versions of IE do not have SVG support.
+
+INTERACTIVE_SVG        = NO
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be 
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH               = 
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that 
+# contain dot files that are included in the documentation (see the 
+# \dotfile command).
+
+DOTFILE_DIRS           = 
+
+# The MSCFILE_DIRS tag can be used to specify one or more directories that 
+# contain msc files that are included in the documentation (see the 
+# \mscfile command).
+
+MSCFILE_DIRS           = 
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of 
+# nodes that will be shown in the graph. If the number of nodes in a graph 
+# becomes larger than this value, doxygen will truncate the graph, which is 
+# visualized by representing a node as a red box. Note that doxygen if the 
+# number of direct children of the root node in a graph is already larger than 
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note 
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES    = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the 
+# graphs generated by dot. A depth value of 3 means that only nodes reachable 
+# from the root by following a path via at most 3 edges will be shown. Nodes 
+# that lay further from the root node will be omitted. Note that setting this 
+# option to 1 or 2 may greatly reduce the computation time needed for large 
+# code bases. Also note that the size of a graph can be further restricted by 
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH    = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent 
+# background. This is disabled by default, because dot on Windows does not 
+# seem to support this out of the box. Warning: Depending on the platform used, 
+# enabling this option may lead to badly anti-aliased labels on the edges of 
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT        = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output 
+# files in one run (i.e. multiple -o and -T options on the command line). This 
+# makes dot run faster, but since only newer versions of dot (>1.8.10) 
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS      = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will 
+# generate a legend page explaining the meaning of the various boxes and 
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND        = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will 
+# remove the intermediate dot files that are used to generate 
+# the various graphs.
+
+DOT_CLEANUP            = YES

+ 13 - 3
gameplay-luagen/src/ClassBinding.cpp

@@ -24,7 +24,7 @@ ClassBinding::ClassBinding(string classname, string refId) : classname(classname
     uniquename = Generator::getUniqueName(this->classname);
 }
 
-void ClassBinding::write(string dir, string* bindingNS)
+void ClassBinding::write(string dir, const set<string>& includes, string* bindingNS)
 {
     // Calculate the constructor string.
     size_t index = uniquename.rfind(SCOPE_REPLACEMENT);
@@ -140,10 +140,20 @@ void ClassBinding::write(string dir, string* bindingNS)
         
         o << "#include \"Base.h\"\n";
         o << "#include \"ScriptController.h\"\n";
-        o << "#include \"" << include << "\"\n";
         o << "#include \"lua_" << uniquename << ".h\"\n";
-        o << "#include \"" << LUA_GLOBAL_FILENAME << ".h\"\n\n";
+
+        // Ensure we include the original class header, even 
+        // if the list of includes doesn't have it.
+        if (includes.find(include) == includes.end())
+            o << "#include \"" << include << "\"\n";
+
+        for (set<string>::iterator iter = includes.begin(); iter != includes.end(); iter++)
+        {
+            o << "#include \"" << *iter << "\"\n";
+        }
+        o << "\n";
         
+
         // If the original class is part of a namespace and we aren't generating into that namespace,
         // include its member with a 'using' statement.
         if (ns.length() > 0 && (!bindingNS || (*bindingNS != ns)))

+ 2 - 1
gameplay-luagen/src/ClassBinding.h

@@ -21,9 +21,10 @@ struct ClassBinding
      * Writes out the generated Lua bindings in C++ to the given directory.
      * 
      * @param dir The directory to write the bindings files (.h and .cpp) to.
+     * @param includes The includes for the class.
      * @param bindingNS The namespace to generate the Lua bindings within.
      */
-    void write(string dir, string* bindingNS = NULL);
+    void write(string dir, const set<string>& includes, string* bindingNS = NULL);
 
     /** Holds all the public function bindings of the class. */
     map<string, vector<FunctionBinding> > bindings;

+ 1 - 0
gameplay-luagen/src/EnumBinding.h

@@ -10,6 +10,7 @@ struct EnumBinding
 {
     vector<string> values;
     vector<string> scopePath;
+    string include;
 };
 
 #endif

+ 3 - 0
gameplay-luagen/src/FunctionBinding.cpp

@@ -891,6 +891,9 @@ static inline void outputReturnValue(ostream& o, const FunctionBinding& b, int i
     case FunctionBinding::Param::TYPE_LONG:
         o << "lua_pushinteger(state, result);\n";
         break;
+    case FunctionBinding::Param::TYPE_UNRECOGNIZED:
+        o << "GP_WARN(\"Attempting to return value with unrecognized type " << b.returnParam.info << " as an unsigned integer.\");\n";
+        indent(o, indentLevel);
     case FunctionBinding::Param::TYPE_UCHAR:
     case FunctionBinding::Param::TYPE_USHORT:
     case FunctionBinding::Param::TYPE_UINT:

+ 252 - 119
gameplay-luagen/src/Generator.cpp

@@ -154,7 +154,7 @@ void Generator::run(string inDir, string outDir)
 
     // Get a list of the Doxygen XML files that specify a namespace.
     // Note: we must do this before adding the normal files so that
-    // we we process the files sequentially, we process the namespaces
+    // when we process the files sequentially, we process the namespaces
     // before the normal files (so that namespaces can be removed
     // properly from class/struct names, etc.)
     vector<string> files;
@@ -212,8 +212,15 @@ void Generator::run(string inDir, string outDir)
         {
             string name = getCompoundName(node);
             cout << "Parsing file " << name << "...\n";
-            getFunctions(node);
-            getEnums(node);
+            if (name.find(".h") != name.npos)
+            {
+                getFunctions(node);
+                getEnums(node, name);
+            }
+            else if (name.find(".cpp") != name.npos)
+            {
+                getIncludes(node, name);
+            }
         }
     }
 
@@ -223,6 +230,9 @@ void Generator::run(string inDir, string outDir)
     // Resolve all unrecognized parameter and return value types.
     resolveTypes();
 
+    // Resolve all inherited include files.
+    resolveInheritedIncludes();
+
     // Generate the script bindings.
     generateBindings();
 
@@ -255,14 +265,6 @@ Generator::~Generator()
 
 void Generator::getFunctions(XMLElement* fileNode)
 {
-    // Add needed include files.
-    XMLElement* include = NULL;
-    for (include = fileNode->FirstChildElement("includes"); include != NULL; include = include->NextSiblingElement("includes"))
-    {
-        if (strcmp(include->Attribute("local"), "yes") == 0)
-            _includes.insert(include->GetText());
-    }
-
     // Process all public, non-static functions and variables that are defined in this file.
     XMLElement* node = NULL;
     const char* kind = NULL;
@@ -751,20 +753,25 @@ void Generator::getEnum(XMLElement* e, string classname, string ns, string inclu
 
     // Store the ref id to name mapping.
     Generator::getInstance()->setIdentifier(refId, enumname);
-
-    e = e->FirstChildElement("enumvalue");
-    while (e)
+    
+    // Add the enum to the enum list if it's not there 
+    // (we implicitly create it when we set its scope path).
+    if (_enums.find(enumname) == _enums.end())
+        _enums[enumname].scopePath = Generator::getScopePath(enumname, ns);
+
+    // Set the include file for the enum.
+    if (include.size() > 0)
+        _enums[enumname].include = include;
+    else
     {
-        if (_enums.find(enumname) == _enums.end())
-            _enums[enumname].scopePath = Generator::getScopePath(enumname, ns);
+        XMLElement* location = e->FirstChildElement("location");
+        if (location)
+            _enums[enumname].include = location->Attribute("file");
+    }
 
+    for (e = e->FirstChildElement("enumvalue"); e; e = e->NextSiblingElement("enumvalue"))
+    {
         _enums[enumname].values.push_back(getName(e));
-
-        // Add the include file to the list of includes for the global bindings file.
-        if (include.size() > 0)
-            _includes.insert(include);
-
-        e = e->NextSiblingElement("enumvalue");
     }
 }
 
@@ -1081,9 +1088,6 @@ void Generator::resolveMembers(const ClassBinding& c)
             b.type = iter->second[0].type;
             b.name = iter->second[0].name;
 
-            if (b.name == "create" && c.classname == "Node")
-                int x = 42;
-
             map<string, vector<FunctionBinding> >::iterator findIter = cb->bindings.find(b.getFunctionName());
             map<string, vector<FunctionBinding> >::iterator hiddenIter = cb->hidden.find(b.getFunctionName());
             if (findIter == cb->bindings.end() && hiddenIter == cb->hidden.end())
@@ -1169,11 +1173,61 @@ void Generator::resolveInheritance()
     }
 }
 
-void Generator::resolveType(FunctionBinding::Param* param, string functionName)
+void Generator::resolveIncludes(const ClassBinding& c)
+{
+    vector<ClassBinding*> derived;
+
+    // Go through the derived classes' bindings and update them.
+    ClassBinding* cb = NULL;
+    map<string, vector<FunctionBinding> >::const_iterator iter;
+    for (unsigned int i = 0; i < c.derived.size(); i++)
+    {
+        // If the class is not in the map of classes, then
+        // it was marked to be ignored, so skip over it.
+        string derivedClassName = getIdentifier(c.derived[i]);
+        if (_classes.find(derivedClassName) == _classes.end())
+            continue;
+
+        cb = &_classes[derivedClassName];
+
+        // Add all include files (uniquely) from the base class to the derived class.
+        map<string, set<string> >::iterator baseIncludes = _includes.find(c.include);
+        if (baseIncludes != _includes.end() && baseIncludes->second.size() > 0)
+        {
+            set<string>::iterator iter = baseIncludes->second.begin();
+            set<string>& derivedIncludes = _includes[cb->include];
+            for (; iter != baseIncludes->second.end(); iter++)
+            {
+                derivedIncludes.insert(*iter);
+            }
+        }
+        
+        derived.push_back(cb);
+    }
+
+    // Go through the derived classes' bindings and resolve the members for their derived classes.
+    for (unsigned int i = 0; i < derived.size(); i++)
+    {
+        resolveIncludes(*derived[i]);
+    }
+}
+
+void Generator::resolveInheritedIncludes()
+{
+    // Go through the class inheritance tree and update each class's 
+    // list of includes to include the includes from the base class
+    for (unsigned int i = 0; i < _topLevelBaseClasses.size(); i++)
+    {
+        resolveIncludes(_classes[_topLevelBaseClasses[i]]);
+    }
+}
+
+void Generator::resolveType(FunctionBinding::Param* param, string functionName, string header)
 {
+    string name = getIdentifier(param->info);
+
     if (param->type == FunctionBinding::Param::TYPE_UNRECOGNIZED)
     {
-        string name = getIdentifier(param->info);
         map<string, TypedefBinding>::iterator typedefIter = _typedefs.find(name);
         if (typedefIter != _typedefs.end() && typedefIter->second.refId.size() > 0)
         {
@@ -1201,6 +1255,24 @@ void Generator::resolveType(FunctionBinding::Param* param, string functionName)
             }
         }
     }
+
+    // Ensure that the header for the Lua enum conversion 
+    // functions is included in the file containing the
+    // generated binding that this param/return value is part of.
+    if (param->type == FunctionBinding::Param::TYPE_ENUM)
+    {
+        string enumHeader = string("lua_") + getUniqueName(name) + string(".h");
+        if (_includes.find(header) != _includes.end())
+        {
+            set<string>& includes = _includes[header];
+            if (includes.find(enumHeader) == includes.end())
+                includes.insert(enumHeader);
+        }
+        else
+        {
+            _includes[header].insert(enumHeader);
+        }
+    }
 }
 
 void Generator::resolveTypes()
@@ -1214,29 +1286,30 @@ void Generator::resolveTypes()
             vector<FunctionBinding>::iterator functionIter = functionNameIter->second.begin();
             for (; functionIter != functionNameIter->second.end(); functionIter++)
             {
-                resolveType(&functionIter->returnParam, iter->first + string("::") + functionIter->name);
+                resolveType(&functionIter->returnParam, iter->first + string("::") + functionIter->name, iter->second.include);
 
                 vector<FunctionBinding::Param>::iterator paramIter = functionIter->paramTypes.begin();
                 for (; paramIter != functionIter->paramTypes.end(); paramIter++)
                 {
-                    resolveType(&(*paramIter), iter->first + string("::") + functionIter->name);
+                    resolveType(&(*paramIter), iter->first + string("::") + functionIter->name, iter->second.include);
                 }
             }
         }
     }
 
     // Go through all non-member functions and attempt to resolve unrecognized types.
+    string globalHeader = string("lua_") + string(LUA_GLOBAL_FILENAME) + string(".h");
     for (map<string, vector<FunctionBinding> >::iterator iter = _functions.begin(); iter != _functions.end(); iter++)
     {
         vector<FunctionBinding>::iterator functionIter = iter->second.begin();
         for (; functionIter != iter->second.end(); functionIter++)
         {
-            resolveType(&functionIter->returnParam, functionIter->name);
+            resolveType(&functionIter->returnParam, functionIter->name, globalHeader);
 
             vector<FunctionBinding::Param>::iterator paramIter = functionIter->paramTypes.begin();
             for (; paramIter != functionIter->paramTypes.end(); paramIter++)
             {
-                resolveType(&(*paramIter), functionIter->name);
+                resolveType(&(*paramIter), functionIter->name, globalHeader);
             }
         }
     }
@@ -1270,7 +1343,7 @@ void Generator::generateBindings()
         for (; iter != _classes.end(); iter++)
         {
             cout << "Generating bindings for '" << iter->first << "'...\n";
-            iter->second.write(_outDir, bindingNS);
+            iter->second.write(_outDir, _includes[iter->second.include], bindingNS);
 
             luaAllH << "#include \"lua_" << iter->second.uniquename << ".h\"\n";
             luaAllCpp << "    luaRegister_" << iter->second.uniquename << "();\n";
@@ -1285,6 +1358,125 @@ void Generator::generateBindings()
             baseClasses.push_back(iter->first);
     }
 
+    // Write out all the enum files.
+    if (_enums.size() > 0)
+    {
+        // Write out the enum conversion function declarations.
+        for (map<string, EnumBinding>::iterator iter = _enums.begin(); iter != _enums.end(); iter++)
+        {
+            // Header.
+            ofstream enumH(_outDir + string("lua_") + getUniqueName(iter->first) + string(".h"));
+            includeGuard = string("lua_") + getUniqueName(iter->first) + string("_H_");
+            transform(includeGuard.begin(), includeGuard.end(), includeGuard.begin(), ::toupper);
+            enumH << "#ifndef " << includeGuard << "\n";
+            enumH << "#define " << includeGuard << "\n\n";
+            enumH << "#include \"" << iter->second.include << "\"\n\n";
+
+            if (bindingNS)
+            {
+                enumH << "namespace " << *bindingNS << "\n";
+                enumH << "{\n\n";
+            }
+
+            enumH << "// Lua bindings for enum conversion functions for " << iter->first << ".\n";
+            enumH << iter->first << " lua_enumFromString_" << getUniqueName(iter->first) << "(const char* s);\n";
+            enumH << "const char* lua_stringFromEnum_" << getUniqueName(iter->first) << "(" << iter->first << " e);\n\n";
+
+            if (bindingNS)
+            {
+                enumH << "}\n\n";
+            }
+
+            enumH << "#endif\n";
+            enumH.close();
+
+            // Implementation.
+            ofstream enumCpp(_outDir + string("lua_") + getUniqueName(iter->first) + string(".cpp"));
+            enumCpp << "#include \"Base.h\"\n";
+            enumCpp << "#include \"lua_" << getUniqueName(iter->first) << ".h\"\n\n";
+
+            if (bindingNS)
+            {
+                enumCpp << "namespace " << *bindingNS << "\n";
+                enumCpp << "{\n\n";
+            }
+
+            enumCpp << "static const char* enumStringEmpty = \"\";\n\n";
+
+            // Build the scope string if applicable.
+            string scope;
+            if (iter->second.scopePath.size() > 0)
+            {
+                for (unsigned int i = 0; i < iter->second.scopePath.size(); i++)
+                {
+                    scope += iter->second.scopePath[i] + string("::");
+                }
+            }
+
+            // Write out the string constants that correspond to the enumeration values.
+            for (unsigned int i = 0; i < iter->second.values.size(); i++)
+            {
+                enumCpp << "static const char* luaEnumString_" << getUniqueName(iter->first) << "_";
+                enumCpp << iter->second.values[i] << " = \"" << iter->second.values[i] << "\";\n";
+            }
+            enumCpp << "\n";
+
+            enumCpp << iter->first << " lua_enumFromString_" << getUniqueName(iter->first) << "(const char* s)\n";
+            enumCpp << "{\n";
+                
+            for (unsigned int i = 0; i < iter->second.values.size(); i++)
+            {
+                enumCpp << "    ";
+                        
+                enumCpp << "if (strcmp(s, luaEnumString_" << getUniqueName(iter->first) << "_" << iter->second.values[i] << ") == 0)\n";
+                enumCpp << "        return ";
+                if (scope.size() > 0)
+                    enumCpp << scope;
+                enumCpp << iter->second.values[i] << ";\n";
+
+                if (i == iter->second.values.size() - 1)
+                {
+                    enumCpp << "    GP_ERROR(\"Invalid enumeration value '%s' for enumeration " << iter->first << ".\", s);\n";
+                    enumCpp << "    return ";
+                    if (scope.size() > 0)
+                        enumCpp << scope;
+                    enumCpp << iter->second.values[0] << ";\n";
+                }
+            }
+
+            enumCpp << "}\n\n";
+
+            enumCpp << "const char* lua_stringFromEnum_" << getUniqueName(iter->first) << "(" << iter->first << " e)\n";
+            enumCpp << "{\n";
+
+            // Write out the enum-to-string conversion code.
+            for (unsigned int i = 0; i < iter->second.values.size(); i++)
+            {
+                enumCpp << "    ";
+                        
+                enumCpp << "if (e == ";
+                if (scope.size() > 0)
+                    enumCpp << scope;
+                enumCpp << iter->second.values[i] << ")\n";
+                enumCpp << "        return luaEnumString_" << getUniqueName(iter->first) << "_" << iter->second.values[i] << ";\n";
+
+                if (i == iter->second.values.size() - 1)
+                {
+                    enumCpp << "    GP_ERROR(\"Invalid enumeration value '%d' for enumeration " << iter->first << ".\", e);\n";
+                    enumCpp << "    return enumStringEmpty;\n";
+                }
+            }
+
+            enumCpp << "}\n\n";
+
+            if (bindingNS)
+            {
+                enumCpp << "}\n\n";
+            }
+            enumCpp.close();
+        }
+    }
+
     // Write out the global bindings file.
     cout << "Generating global bindings...\n";
     if (baseClasses.size() > 0 || _functions.size() > 0 || _enums.size() > 0)
@@ -1303,12 +1495,10 @@ void Generator::generateBindings()
             global << "#ifndef " << includeGuard << "\n";
             global << "#define " << includeGuard << "\n\n";
 
-            // Write out the needed includes.
-            for (set<string>::iterator iter = _includes.begin(); iter != _includes.end(); iter++)
+            // Write out the needed includes for the global enumeration function.
+            for (map<string, EnumBinding>::iterator iter = _enums.begin(); iter != _enums.end(); iter++)
             {
-                // Don't include inline files.
-                if (iter->find(".inl") == iter->npos)
-                    global << "#include \"" << *iter << "\"\n";
+                global << "#include \"lua_" << getUniqueName(iter->first) << ".h\"\n";
             }
             global << "\n";
             luaAllH << "#include \"" << string(LUA_GLOBAL_FILENAME) << ".h\"\n";
@@ -1334,15 +1524,7 @@ void Generator::generateBindings()
 
             if (_enums.size() > 0)
             {
-                global << "// Lua bindings for enum conversion functions.\n";
-
-                // Write out the enum conversion function declarations.
-                for (map<string, EnumBinding>::iterator iter = _enums.begin(); iter != _enums.end(); iter++)
-                {
-                    global << iter->first << " lua_enumFromString_" << getUniqueName(iter->first) << "(const char* s);\n";
-                    global << "const char* lua_stringFromEnum_" << getUniqueName(iter->first) << "(" << iter->first << " e);\n";
-                }
-                global << "\n";
+                global << "// Global enum to string conversion function (used to pass enums to Lua from C++).\n";
                 global << "const char* lua_stringFromEnumGlobal(std::string& enumname, unsigned int value);\n\n";
             }
             
@@ -1366,7 +1548,17 @@ void Generator::generateBindings()
             }
             
             global << "#include \"ScriptController.h\"\n";
-            global << "#include \"" << LUA_GLOBAL_FILENAME << ".h\"\n\n";
+            global << "#include \"" << LUA_GLOBAL_FILENAME << ".h\"\n";
+            map<string, set<string> >::iterator iter = _includes.find(string(LUA_GLOBAL_FILENAME) + string(".h"));
+            if (iter != _includes.end())
+            {
+                set<string>::iterator includeIter = iter->second.begin();
+                for (; includeIter != iter->second.end(); includeIter++)
+                {
+                    global << "#include \"" << *includeIter << "\"\n";
+                }
+            }
+            global << "\n";
 
             if (bindingNS)
             {
@@ -1436,78 +1628,8 @@ void Generator::generateBindings()
                 FunctionBinding::write(global, iter->second);
             }
 
-            // Write out the enum conversion functions.
-            global << "static const char* enumStringEmpty = \"\";\n\n";
-            for (map<string, EnumBinding>::iterator iter = _enums.begin(); iter != _enums.end(); iter++)
-            {
-                // Build the scope string if applicable.
-                string scope;
-                if (iter->second.scopePath.size() > 0)
-                {
-                    for (unsigned int i = 0; i < iter->second.scopePath.size(); i++)
-                    {
-                        scope += iter->second.scopePath[i] + string("::");
-                    }
-                }
-
-                // Write out the string constants that correspond to the enumeration values.
-                for (unsigned int i = 0; i < iter->second.values.size(); i++)
-                {
-                    global << "static const char* luaEnumString_" << getUniqueName(iter->first) << "_";
-                    global << iter->second.values[i] << " = \"" << iter->second.values[i] << "\";\n";
-                }
-                global << "\n";
-
-                global << iter->first << " lua_enumFromString_" << getUniqueName(iter->first) << "(const char* s)\n";
-                global << "{\n";
-                
-                for (unsigned int i = 0; i < iter->second.values.size(); i++)
-                {
-                    global << "    ";
-                        
-                    global << "if (strcmp(s, luaEnumString_" << getUniqueName(iter->first) << "_" << iter->second.values[i] << ") == 0)\n";
-                    global << "        return ";
-                    if (scope.size() > 0)
-                        global << scope;
-                    global << iter->second.values[i] << ";\n";
-
-                    if (i == iter->second.values.size() - 1)
-                    {
-                        global << "    GP_ERROR(\"Invalid enumeration value '%s' for enumeration " << iter->first << ".\", s);\n";
-                        global << "    return ";
-                        if (scope.size() > 0)
-                            global << scope;
-                        global << iter->second.values[0] << ";\n";
-                    }
-                }
-
-                global << "}\n\n";
-
-                global << "const char* lua_stringFromEnum_" << getUniqueName(iter->first) << "(" << iter->first << " e)\n";
-                global << "{\n";
-
-                // Write out the enum-to-string conversion code.
-                for (unsigned int i = 0; i < iter->second.values.size(); i++)
-                {
-                    global << "    ";
-                        
-                    global << "if (e == ";
-                    if (scope.size() > 0)
-                        global << scope;
-                    global << iter->second.values[i] << ")\n";
-                    global << "        return luaEnumString_" << getUniqueName(iter->first) << "_" << iter->second.values[i] << ";\n";
-
-                    if (i == iter->second.values.size() - 1)
-                    {
-                        global << "    GP_ERROR(\"Invalid enumeration value '%d' for enumeration " << iter->first << ".\", e);\n";
-                        global << "    return enumStringEmpty;\n";
-                    }
-                }
-
-                global << "}\n\n";
-            }
-
             // Write out the global enum conversion function (used to pass enums from C++ to Lua).
+            global << "static const char* enumStringEmpty = \"\";\n\n";
             global << "const char* lua_stringFromEnumGlobal(std::string& enumname, unsigned int value)\n";
             global << "{\n";
             for (map<string, EnumBinding>::iterator iter = _enums.begin(); iter != _enums.end(); iter++)
@@ -1557,6 +1679,16 @@ void Generator::getAllDerived(set<string>& derived, string classname)
     }
 }
 
+void Generator::getIncludes(XMLElement* e, string filename)
+{
+    filename.replace(filename.find(".cpp"), 4, ".h");
+    for (e = e->FirstChildElement("includes"); e; e = e->NextSiblingElement("includes"))
+    {
+        if (e->Attribute("refid"))
+            _includes[filename].insert(e->GetText());
+    }
+}
+
 // ----------------------------------------------------------------------------
 // Utility functions
 
@@ -1609,7 +1741,8 @@ static inline bool isWantedFileNormal(const string& s)
 {
     if (s.find(".xml") == s.size() - 4)
     {
-        if (s.find("class") == 0 || s.find("struct") == 0 || (s.find("_") == 0 && s.find("h.xml") != s.npos))
+        if (s.find("class") == 0 || s.find("struct") == 0 || 
+            (s.find("_") == 0 && (s.find("h.xml") != s.npos || s.find("cpp.xml") != s.npos)))
             return true;
     }
     return false;

+ 16 - 3
gameplay-luagen/src/Generator.h

@@ -161,8 +161,18 @@ protected:
     // Resolves the inheritance.
     void resolveInheritance();
 
-    // Resolves the type for a single parameter/return value (also takes the function that the parameter/return value is for).
-    void resolveType(FunctionBinding::Param* param, string functionName);
+    // Resolves includes for all classes' derived from class 'c'.
+    void resolveIncludes(const ClassBinding& c);
+
+    // Resolves inherited include files.
+    void resolveInheritedIncludes();
+
+    // Resolves the type for a single parameter/return value 
+    // (also takes the function that the parameter/return value is for along
+    // with the header file that the parameter/return value belongs to-the original
+    // class header file for class bindings or the global Lua bindings header file
+    // for global bindings).
+    void resolveType(FunctionBinding::Param* param, string functionName, string header);
 
     // Resolves all unrecognized types.
     void resolveTypes();
@@ -173,6 +183,9 @@ protected:
     // Gets the set off all classes that derives from the given class.
     void getAllDerived(set<string>& derived, string classname);
 
+    // Gets the included files for a cpp file.
+    void getIncludes(XMLElement* e, string filename);
+
 private:
     static Generator* __instance;
 
@@ -181,7 +194,7 @@ private:
     string _outDir;
     map<string, ClassBinding> _classes;
     vector<string> _topLevelBaseClasses;
-    set<string> _includes;
+    map<string, set<string> > _includes;
     map<string, vector<FunctionBinding> > _functions;
     map<string, EnumBinding> _enums;
     map<string, vector<string> > _namespaces;

+ 76 - 0
gameplay/gameplay.vcxproj

@@ -58,6 +58,7 @@
     <ClCompile Include="src\lua\lua_Animation.cpp" />
     <ClCompile Include="src\lua\lua_AnimationClip.cpp" />
     <ClCompile Include="src\lua\lua_AnimationClipListener.cpp" />
+    <ClCompile Include="src\lua\lua_AnimationClipListenerEventType.cpp" />
     <ClCompile Include="src\lua\lua_AnimationController.cpp" />
     <ClCompile Include="src\lua\lua_AnimationTarget.cpp" />
     <ClCompile Include="src\lua\lua_AnimationValue.cpp" />
@@ -65,61 +66,89 @@
     <ClCompile Include="src\lua\lua_AudioController.cpp" />
     <ClCompile Include="src\lua\lua_AudioListener.cpp" />
     <ClCompile Include="src\lua\lua_AudioSource.cpp" />
+    <ClCompile Include="src\lua\lua_AudioSourceState.cpp" />
     <ClCompile Include="src\lua\lua_BoundingBox.cpp" />
     <ClCompile Include="src\lua\lua_BoundingSphere.cpp" />
     <ClCompile Include="src\lua\lua_Bundle.cpp" />
     <ClCompile Include="src\lua\lua_Button.cpp" />
     <ClCompile Include="src\lua\lua_Camera.cpp" />
+    <ClCompile Include="src\lua\lua_CameraType.cpp" />
     <ClCompile Include="src\lua\lua_CheckBox.cpp" />
     <ClCompile Include="src\lua\lua_Container.cpp" />
+    <ClCompile Include="src\lua\lua_ContainerScroll.cpp" />
     <ClCompile Include="src\lua\lua_Control.cpp" />
+    <ClCompile Include="src\lua\lua_ControlAlignment.cpp" />
     <ClCompile Include="src\lua\lua_ControlListener.cpp" />
+    <ClCompile Include="src\lua\lua_ControlListenerEventType.cpp" />
+    <ClCompile Include="src\lua\lua_ControlState.cpp" />
     <ClCompile Include="src\lua\lua_Curve.cpp" />
+    <ClCompile Include="src\lua\lua_CurveInterpolationType.cpp" />
     <ClCompile Include="src\lua\lua_DepthStencilTarget.cpp" />
+    <ClCompile Include="src\lua\lua_DepthStencilTargetFormat.cpp" />
     <ClCompile Include="src\lua\lua_Effect.cpp" />
     <ClCompile Include="src\lua\lua_FileSystem.cpp" />
     <ClCompile Include="src\lua\lua_FlowLayout.cpp" />
     <ClCompile Include="src\lua\lua_Font.cpp" />
     <ClCompile Include="src\lua\lua_FontGlyph.cpp" />
+    <ClCompile Include="src\lua\lua_FontJustify.cpp" />
+    <ClCompile Include="src\lua\lua_FontStyle.cpp" />
     <ClCompile Include="src\lua\lua_FontText.cpp" />
     <ClCompile Include="src\lua\lua_Form.cpp" />
     <ClCompile Include="src\lua\lua_FrameBuffer.cpp" />
     <ClCompile Include="src\lua\lua_Frustum.cpp" />
     <ClCompile Include="src\lua\lua_Game.cpp" />
+    <ClCompile Include="src\lua\lua_GameClearFlags.cpp" />
     <ClCompile Include="src\lua\lua_Gamepad.cpp" />
+    <ClCompile Include="src\lua\lua_GamepadButtonState.cpp" />
+    <ClCompile Include="src\lua\lua_GamepadGamepadEvent.cpp" />
+    <ClCompile Include="src\lua\lua_GameState.cpp" />
     <ClCompile Include="src\lua\lua_Global.cpp" />
     <ClCompile Include="src\lua\lua_Image.cpp" />
+    <ClCompile Include="src\lua\lua_ImageFormat.cpp" />
     <ClCompile Include="src\lua\lua_Joint.cpp" />
     <ClCompile Include="src\lua\lua_Joystick.cpp" />
     <ClCompile Include="src\lua\lua_Keyboard.cpp" />
+    <ClCompile Include="src\lua\lua_KeyboardKey.cpp" />
+    <ClCompile Include="src\lua\lua_KeyboardKeyEvent.cpp" />
     <ClCompile Include="src\lua\lua_Label.cpp" />
     <ClCompile Include="src\lua\lua_Layout.cpp" />
+    <ClCompile Include="src\lua\lua_LayoutType.cpp" />
     <ClCompile Include="src\lua\lua_Light.cpp" />
+    <ClCompile Include="src\lua\lua_LightType.cpp" />
     <ClCompile Include="src\lua\lua_Material.cpp" />
     <ClCompile Include="src\lua\lua_MaterialParameter.cpp" />
     <ClCompile Include="src\lua\lua_MathUtil.cpp" />
     <ClCompile Include="src\lua\lua_Matrix.cpp" />
     <ClCompile Include="src\lua\lua_Mesh.cpp" />
     <ClCompile Include="src\lua\lua_MeshBatch.cpp" />
+    <ClCompile Include="src\lua\lua_MeshIndexFormat.cpp" />
     <ClCompile Include="src\lua\lua_MeshPart.cpp" />
+    <ClCompile Include="src\lua\lua_MeshPrimitiveType.cpp" />
     <ClCompile Include="src\lua\lua_MeshSkin.cpp" />
     <ClCompile Include="src\lua\lua_Model.cpp" />
     <ClCompile Include="src\lua\lua_Mouse.cpp" />
+    <ClCompile Include="src\lua\lua_MouseMouseEvent.cpp" />
     <ClCompile Include="src\lua\lua_Node.cpp" />
     <ClCompile Include="src\lua\lua_NodeCloneContext.cpp" />
+    <ClCompile Include="src\lua\lua_NodeType.cpp" />
     <ClCompile Include="src\lua\lua_ParticleEmitter.cpp" />
+    <ClCompile Include="src\lua\lua_ParticleEmitterTextureBlending.cpp" />
     <ClCompile Include="src\lua\lua_Pass.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsCharacter.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsCollisionObject.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsCollisionObjectCollisionListener.cpp" />
+    <ClCompile Include="src\lua\lua_PhysicsCollisionObjectCollisionListenerEventType.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsCollisionObjectCollisionPair.cpp" />
+    <ClCompile Include="src\lua\lua_PhysicsCollisionObjectType.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsCollisionShape.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsCollisionShapeDefinition.cpp" />
+    <ClCompile Include="src\lua\lua_PhysicsCollisionShapeType.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsConstraint.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsController.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsControllerHitFilter.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsControllerHitResult.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsControllerListener.cpp" />
+    <ClCompile Include="src\lua\lua_PhysicsControllerListenerEventType.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsFixedConstraint.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsGenericConstraint.cpp" />
     <ClCompile Include="src\lua\lua_PhysicsGhostObject.cpp" />
@@ -131,15 +160,19 @@
     <ClCompile Include="src\lua\lua_Plane.cpp" />
     <ClCompile Include="src\lua\lua_Platform.cpp" />
     <ClCompile Include="src\lua\lua_Properties.cpp" />
+    <ClCompile Include="src\lua\lua_PropertiesType.cpp" />
     <ClCompile Include="src\lua\lua_Quaternion.cpp" />
     <ClCompile Include="src\lua\lua_RadioButton.cpp" />
     <ClCompile Include="src\lua\lua_Ray.cpp" />
     <ClCompile Include="src\lua\lua_Rectangle.cpp" />
     <ClCompile Include="src\lua\lua_Ref.cpp" />
     <ClCompile Include="src\lua\lua_RenderState.cpp" />
+    <ClCompile Include="src\lua\lua_RenderStateAutoBinding.cpp" />
+    <ClCompile Include="src\lua\lua_RenderStateBlend.cpp" />
     <ClCompile Include="src\lua\lua_RenderStateStateBlock.cpp" />
     <ClCompile Include="src\lua\lua_RenderTarget.cpp" />
     <ClCompile Include="src\lua\lua_Scene.cpp" />
+    <ClCompile Include="src\lua\lua_SceneDebugFlags.cpp" />
     <ClCompile Include="src\lua\lua_SceneLoader.cpp" />
     <ClCompile Include="src\lua\lua_ScreenDisplayer.cpp" />
     <ClCompile Include="src\lua\lua_ScriptController.cpp" />
@@ -148,13 +181,17 @@
     <ClCompile Include="src\lua\lua_Technique.cpp" />
     <ClCompile Include="src\lua\lua_TextBox.cpp" />
     <ClCompile Include="src\lua\lua_Texture.cpp" />
+    <ClCompile Include="src\lua\lua_TextureFilter.cpp" />
+    <ClCompile Include="src\lua\lua_TextureFormat.cpp" />
     <ClCompile Include="src\lua\lua_TextureSampler.cpp" />
+    <ClCompile Include="src\lua\lua_TextureWrap.cpp" />
     <ClCompile Include="src\lua\lua_Theme.cpp" />
     <ClCompile Include="src\lua\lua_ThemeSideRegions.cpp" />
     <ClCompile Include="src\lua\lua_ThemeStyle.cpp" />
     <ClCompile Include="src\lua\lua_ThemeThemeImage.cpp" />
     <ClCompile Include="src\lua\lua_ThemeUVs.cpp" />
     <ClCompile Include="src\lua\lua_Touch.cpp" />
+    <ClCompile Include="src\lua\lua_TouchTouchEvent.cpp" />
     <ClCompile Include="src\lua\lua_Transform.cpp" />
     <ClCompile Include="src\lua\lua_TransformListener.cpp" />
     <ClCompile Include="src\lua\lua_Uniform.cpp" />
@@ -164,6 +201,7 @@
     <ClCompile Include="src\lua\lua_VertexAttributeBinding.cpp" />
     <ClCompile Include="src\lua\lua_VertexFormat.cpp" />
     <ClCompile Include="src\lua\lua_VertexFormatElement.cpp" />
+    <ClCompile Include="src\lua\lua_VertexFormatUsage.cpp" />
     <ClCompile Include="src\lua\lua_VerticalLayout.cpp" />
     <ClCompile Include="src\Material.cpp" />
     <ClCompile Include="src\MeshBatch.cpp" />
@@ -264,6 +302,7 @@
     <ClInclude Include="src\lua\lua_Animation.h" />
     <ClInclude Include="src\lua\lua_AnimationClip.h" />
     <ClInclude Include="src\lua\lua_AnimationClipListener.h" />
+    <ClInclude Include="src\lua\lua_AnimationClipListenerEventType.h" />
     <ClInclude Include="src\lua\lua_AnimationController.h" />
     <ClInclude Include="src\lua\lua_AnimationTarget.h" />
     <ClInclude Include="src\lua\lua_AnimationValue.h" />
@@ -271,61 +310,89 @@
     <ClInclude Include="src\lua\lua_AudioController.h" />
     <ClInclude Include="src\lua\lua_AudioListener.h" />
     <ClInclude Include="src\lua\lua_AudioSource.h" />
+    <ClInclude Include="src\lua\lua_AudioSourceState.h" />
     <ClInclude Include="src\lua\lua_BoundingBox.h" />
     <ClInclude Include="src\lua\lua_BoundingSphere.h" />
     <ClInclude Include="src\lua\lua_Bundle.h" />
     <ClInclude Include="src\lua\lua_Button.h" />
     <ClInclude Include="src\lua\lua_Camera.h" />
+    <ClInclude Include="src\lua\lua_CameraType.h" />
     <ClInclude Include="src\lua\lua_CheckBox.h" />
     <ClInclude Include="src\lua\lua_Container.h" />
+    <ClInclude Include="src\lua\lua_ContainerScroll.h" />
     <ClInclude Include="src\lua\lua_Control.h" />
+    <ClInclude Include="src\lua\lua_ControlAlignment.h" />
     <ClInclude Include="src\lua\lua_ControlListener.h" />
+    <ClInclude Include="src\lua\lua_ControlListenerEventType.h" />
+    <ClInclude Include="src\lua\lua_ControlState.h" />
     <ClInclude Include="src\lua\lua_Curve.h" />
+    <ClInclude Include="src\lua\lua_CurveInterpolationType.h" />
     <ClInclude Include="src\lua\lua_DepthStencilTarget.h" />
+    <ClInclude Include="src\lua\lua_DepthStencilTargetFormat.h" />
     <ClInclude Include="src\lua\lua_Effect.h" />
     <ClInclude Include="src\lua\lua_FileSystem.h" />
     <ClInclude Include="src\lua\lua_FlowLayout.h" />
     <ClInclude Include="src\lua\lua_Font.h" />
     <ClInclude Include="src\lua\lua_FontGlyph.h" />
+    <ClInclude Include="src\lua\lua_FontJustify.h" />
+    <ClInclude Include="src\lua\lua_FontStyle.h" />
     <ClInclude Include="src\lua\lua_FontText.h" />
     <ClInclude Include="src\lua\lua_Form.h" />
     <ClInclude Include="src\lua\lua_FrameBuffer.h" />
     <ClInclude Include="src\lua\lua_Frustum.h" />
     <ClInclude Include="src\lua\lua_Game.h" />
+    <ClInclude Include="src\lua\lua_GameClearFlags.h" />
     <ClInclude Include="src\lua\lua_Gamepad.h" />
+    <ClInclude Include="src\lua\lua_GamepadButtonState.h" />
+    <ClInclude Include="src\lua\lua_GamepadGamepadEvent.h" />
+    <ClInclude Include="src\lua\lua_GameState.h" />
     <ClInclude Include="src\lua\lua_Global.h" />
     <ClInclude Include="src\lua\lua_Image.h" />
+    <ClInclude Include="src\lua\lua_ImageFormat.h" />
     <ClInclude Include="src\lua\lua_Joint.h" />
     <ClInclude Include="src\lua\lua_Joystick.h" />
     <ClInclude Include="src\lua\lua_Keyboard.h" />
+    <ClInclude Include="src\lua\lua_KeyboardKey.h" />
+    <ClInclude Include="src\lua\lua_KeyboardKeyEvent.h" />
     <ClInclude Include="src\lua\lua_Label.h" />
     <ClInclude Include="src\lua\lua_Layout.h" />
+    <ClInclude Include="src\lua\lua_LayoutType.h" />
     <ClInclude Include="src\lua\lua_Light.h" />
+    <ClInclude Include="src\lua\lua_LightType.h" />
     <ClInclude Include="src\lua\lua_Material.h" />
     <ClInclude Include="src\lua\lua_MaterialParameter.h" />
     <ClInclude Include="src\lua\lua_MathUtil.h" />
     <ClInclude Include="src\lua\lua_Matrix.h" />
     <ClInclude Include="src\lua\lua_Mesh.h" />
     <ClInclude Include="src\lua\lua_MeshBatch.h" />
+    <ClInclude Include="src\lua\lua_MeshIndexFormat.h" />
     <ClInclude Include="src\lua\lua_MeshPart.h" />
+    <ClInclude Include="src\lua\lua_MeshPrimitiveType.h" />
     <ClInclude Include="src\lua\lua_MeshSkin.h" />
     <ClInclude Include="src\lua\lua_Model.h" />
     <ClInclude Include="src\lua\lua_Mouse.h" />
+    <ClInclude Include="src\lua\lua_MouseMouseEvent.h" />
     <ClInclude Include="src\lua\lua_Node.h" />
     <ClInclude Include="src\lua\lua_NodeCloneContext.h" />
+    <ClInclude Include="src\lua\lua_NodeType.h" />
     <ClInclude Include="src\lua\lua_ParticleEmitter.h" />
+    <ClInclude Include="src\lua\lua_ParticleEmitterTextureBlending.h" />
     <ClInclude Include="src\lua\lua_Pass.h" />
     <ClInclude Include="src\lua\lua_PhysicsCharacter.h" />
     <ClInclude Include="src\lua\lua_PhysicsCollisionObject.h" />
     <ClInclude Include="src\lua\lua_PhysicsCollisionObjectCollisionListener.h" />
+    <ClInclude Include="src\lua\lua_PhysicsCollisionObjectCollisionListenerEventType.h" />
     <ClInclude Include="src\lua\lua_PhysicsCollisionObjectCollisionPair.h" />
+    <ClInclude Include="src\lua\lua_PhysicsCollisionObjectType.h" />
     <ClInclude Include="src\lua\lua_PhysicsCollisionShape.h" />
     <ClInclude Include="src\lua\lua_PhysicsCollisionShapeDefinition.h" />
+    <ClInclude Include="src\lua\lua_PhysicsCollisionShapeType.h" />
     <ClInclude Include="src\lua\lua_PhysicsConstraint.h" />
     <ClInclude Include="src\lua\lua_PhysicsController.h" />
     <ClInclude Include="src\lua\lua_PhysicsControllerHitFilter.h" />
     <ClInclude Include="src\lua\lua_PhysicsControllerHitResult.h" />
     <ClInclude Include="src\lua\lua_PhysicsControllerListener.h" />
+    <ClInclude Include="src\lua\lua_PhysicsControllerListenerEventType.h" />
     <ClInclude Include="src\lua\lua_PhysicsFixedConstraint.h" />
     <ClInclude Include="src\lua\lua_PhysicsGenericConstraint.h" />
     <ClInclude Include="src\lua\lua_PhysicsGhostObject.h" />
@@ -337,15 +404,19 @@
     <ClInclude Include="src\lua\lua_Plane.h" />
     <ClInclude Include="src\lua\lua_Platform.h" />
     <ClInclude Include="src\lua\lua_Properties.h" />
+    <ClInclude Include="src\lua\lua_PropertiesType.h" />
     <ClInclude Include="src\lua\lua_Quaternion.h" />
     <ClInclude Include="src\lua\lua_RadioButton.h" />
     <ClInclude Include="src\lua\lua_Ray.h" />
     <ClInclude Include="src\lua\lua_Rectangle.h" />
     <ClInclude Include="src\lua\lua_Ref.h" />
     <ClInclude Include="src\lua\lua_RenderState.h" />
+    <ClInclude Include="src\lua\lua_RenderStateAutoBinding.h" />
+    <ClInclude Include="src\lua\lua_RenderStateBlend.h" />
     <ClInclude Include="src\lua\lua_RenderStateStateBlock.h" />
     <ClInclude Include="src\lua\lua_RenderTarget.h" />
     <ClInclude Include="src\lua\lua_Scene.h" />
+    <ClInclude Include="src\lua\lua_SceneDebugFlags.h" />
     <ClInclude Include="src\lua\lua_SceneLoader.h" />
     <ClInclude Include="src\lua\lua_ScreenDisplayer.h" />
     <ClInclude Include="src\lua\lua_ScriptController.h" />
@@ -354,13 +425,17 @@
     <ClInclude Include="src\lua\lua_Technique.h" />
     <ClInclude Include="src\lua\lua_TextBox.h" />
     <ClInclude Include="src\lua\lua_Texture.h" />
+    <ClInclude Include="src\lua\lua_TextureFilter.h" />
+    <ClInclude Include="src\lua\lua_TextureFormat.h" />
     <ClInclude Include="src\lua\lua_TextureSampler.h" />
+    <ClInclude Include="src\lua\lua_TextureWrap.h" />
     <ClInclude Include="src\lua\lua_Theme.h" />
     <ClInclude Include="src\lua\lua_ThemeSideRegions.h" />
     <ClInclude Include="src\lua\lua_ThemeStyle.h" />
     <ClInclude Include="src\lua\lua_ThemeThemeImage.h" />
     <ClInclude Include="src\lua\lua_ThemeUVs.h" />
     <ClInclude Include="src\lua\lua_Touch.h" />
+    <ClInclude Include="src\lua\lua_TouchTouchEvent.h" />
     <ClInclude Include="src\lua\lua_Transform.h" />
     <ClInclude Include="src\lua\lua_TransformListener.h" />
     <ClInclude Include="src\lua\lua_Uniform.h" />
@@ -370,6 +445,7 @@
     <ClInclude Include="src\lua\lua_VertexAttributeBinding.h" />
     <ClInclude Include="src\lua\lua_VertexFormat.h" />
     <ClInclude Include="src\lua\lua_VertexFormatElement.h" />
+    <ClInclude Include="src\lua\lua_VertexFormatUsage.h" />
     <ClInclude Include="src\lua\lua_VerticalLayout.h" />
     <ClInclude Include="src\Material.h" />
     <ClInclude Include="src\MathUtil.h" />

+ 228 - 0
gameplay/gameplay.vcxproj.filters

@@ -627,6 +627,120 @@
     <ClCompile Include="src\ScreenDisplayer.cpp">
       <Filter>src</Filter>
     </ClCompile>
+    <ClCompile Include="src\lua\lua_AnimationClipListenerEventType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_AudioSourceState.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_CameraType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_ContainerScroll.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_ControlAlignment.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_ControlListenerEventType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_ControlState.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_CurveInterpolationType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_DepthStencilTargetFormat.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_FontJustify.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_FontStyle.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_GameClearFlags.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_GamepadButtonState.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_GamepadGamepadEvent.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_GameState.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_ImageFormat.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_KeyboardKey.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_KeyboardKeyEvent.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_LayoutType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_LightType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_MeshIndexFormat.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_MeshPrimitiveType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_MouseMouseEvent.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_NodeType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_ParticleEmitterTextureBlending.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_PhysicsCollisionObjectCollisionListenerEventType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_PhysicsCollisionObjectType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_PhysicsCollisionShapeType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_PhysicsControllerListenerEventType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_PropertiesType.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_RenderStateAutoBinding.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_RenderStateBlend.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_SceneDebugFlags.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_TextureFilter.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_TextureFormat.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_TextureWrap.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_TouchTouchEvent.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
+    <ClCompile Include="src\lua\lua_VertexFormatUsage.cpp">
+      <Filter>lua</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="src\Animation.h">
@@ -1247,6 +1361,120 @@
     <ClInclude Include="src\Gamepad.h">
       <Filter>src</Filter>
     </ClInclude>
+    <ClInclude Include="src\lua\lua_AnimationClipListenerEventType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_AudioSourceState.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_CameraType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_ContainerScroll.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_ControlAlignment.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_ControlListenerEventType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_ControlState.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_CurveInterpolationType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_DepthStencilTargetFormat.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_FontJustify.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_FontStyle.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_GameClearFlags.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_GamepadButtonState.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_GamepadGamepadEvent.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_GameState.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_ImageFormat.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_KeyboardKey.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_KeyboardKeyEvent.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_LayoutType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_LightType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_MeshIndexFormat.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_MeshPrimitiveType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_MouseMouseEvent.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_NodeType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_ParticleEmitterTextureBlending.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_PhysicsCollisionObjectCollisionListenerEventType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_PhysicsCollisionObjectType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_PhysicsCollisionShapeType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_PhysicsControllerListenerEventType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_PropertiesType.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_RenderStateAutoBinding.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_RenderStateBlend.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_SceneDebugFlags.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_TextureFilter.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_TextureFormat.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_TextureWrap.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_TouchTouchEvent.h">
+      <Filter>lua</Filter>
+    </ClInclude>
+    <ClInclude Include="src\lua\lua_VertexFormatUsage.h">
+      <Filter>lua</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="src\gameplay-main-macosx.mm">

+ 0 - 5
gameplay/src/Control.cpp

@@ -125,11 +125,6 @@ void Control::initialize(Theme::Style* style, Properties* properties)
     }
 }
 
-void initialize(const char* id, Theme::Style* style, const Vector2& position, const Vector2& size)
-{
-
-}
-
 const char* Control::getId() const
 {
     return _id.c_str();

+ 3 - 3
gameplay/src/Effect.cpp

@@ -103,7 +103,7 @@ Effect* Effect::createFromSource(const char* vshSource, const char* fshSource, c
 }
 
 
-void replaceDefines(const char* defines, std::string& out)
+static void replaceDefines(const char* defines, std::string& out)
 {
     if (defines && strlen(defines) != 0)
     {
@@ -121,7 +121,7 @@ void replaceDefines(const char* defines, std::string& out)
 #endif
 }
 
-void replaceIncludes(const char* filepath, const char* source, std::string& out)
+static void replaceIncludes(const char* filepath, const char* source, std::string& out)
 {
     // Replace the #include "xxxx.xxx" with the sourced file contents of "filepath/xxxx.xxx"
     std::string str = source;
@@ -197,7 +197,7 @@ void replaceIncludes(const char* filepath, const char* source, std::string& out)
     }
 }
 
-void writeShaderToErrorFile(const char* filePath, const char* source)
+static void writeShaderToErrorFile(const char* filePath, const char* source)
 {
     std::string path = filePath;
     path += ".err";

+ 1 - 1
gameplay/src/Form.cpp

@@ -311,7 +311,7 @@ void Form::setAutoHeight(bool autoHeight)
     }
 }
 
-Effect* createEffect()
+static Effect* createEffect()
 {
     Effect* effect = NULL;
     if (__formEffect == NULL)

+ 2 - 0
gameplay/src/Platform.h

@@ -238,4 +238,6 @@ private:
 
 }
 
+#include "Game.h"
+
 #endif

+ 2 - 0
gameplay/src/Properties.cpp

@@ -7,7 +7,9 @@ namespace gameplay
 {
 
 // Utility functions (shared with SceneLoader).
+/** @script{ignore} */
 void calculateNamespacePath(const std::string& urlString, std::string& fileString, std::vector<std::string>& namespacePath);
+/** @script{ignore} */
 Properties* getPropertiesFromNamespacePath(Properties* properties, const std::vector<std::string>& namespacePath);
 
 Properties::Properties()

+ 1 - 0
gameplay/src/Scene.cpp

@@ -317,6 +317,7 @@ static Material* createDebugMaterial()
 
 /**
  * DebugVertex structure.
+ * @script{ignore}
  */
 struct DebugVertex
 {

+ 8 - 2
gameplay/src/lua/lua_AbsoluteLayout.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AbsoluteLayout.h"
 #include "lua_AbsoluteLayout.h"
-#include "lua_Global.h"
+#include "AbsoluteLayout.h"
+#include "Base.h"
+#include "Container.h"
+#include "Control.h"
+#include "Game.h"
+#include "Layout.h"
+#include "Ref.h"
+#include "lua_LayoutType.h"
 
 namespace gameplay
 {

+ 9 - 2
gameplay/src/lua/lua_Animation.cpp

@@ -1,8 +1,15 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Animation.h"
 #include "lua_Animation.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationClip.h"
+#include "AnimationController.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Game.h"
+#include "Properties.h"
+#include "Ref.h"
+#include "Transform.h"
 
 namespace gameplay
 {

+ 8 - 2
gameplay/src/lua/lua_AnimationClip.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AnimationClip.h"
 #include "lua_AnimationClip.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationClip.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Game.h"
+#include "Quaternion.h"
+#include "Ref.h"
+#include "lua_AnimationClipListenerEventType.h"
 
 namespace gameplay
 {

+ 8 - 2
gameplay/src/lua/lua_AnimationClipListener.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AnimationClip.h"
 #include "lua_AnimationClipListener.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationClip.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Game.h"
+#include "Quaternion.h"
+#include "Ref.h"
+#include "lua_AnimationClipListenerEventType.h"
 
 namespace gameplay
 {

+ 38 - 0
gameplay/src/lua/lua_AnimationClipListenerEventType.cpp

@@ -0,0 +1,38 @@
+#include "Base.h"
+#include "lua_AnimationClipListenerEventType.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_AnimationClipListenerEventType_DEFAULT = "DEFAULT";
+static const char* luaEnumString_AnimationClipListenerEventType_BEGIN = "BEGIN";
+static const char* luaEnumString_AnimationClipListenerEventType_END = "END";
+
+AnimationClip::Listener::EventType lua_enumFromString_AnimationClipListenerEventType(const char* s)
+{
+    if (strcmp(s, luaEnumString_AnimationClipListenerEventType_DEFAULT) == 0)
+        return AnimationClip::Listener::DEFAULT;
+    if (strcmp(s, luaEnumString_AnimationClipListenerEventType_BEGIN) == 0)
+        return AnimationClip::Listener::BEGIN;
+    if (strcmp(s, luaEnumString_AnimationClipListenerEventType_END) == 0)
+        return AnimationClip::Listener::END;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration AnimationClip::Listener::EventType.", s);
+    return AnimationClip::Listener::DEFAULT;
+}
+
+const char* lua_stringFromEnum_AnimationClipListenerEventType(AnimationClip::Listener::EventType e)
+{
+    if (e == AnimationClip::Listener::DEFAULT)
+        return luaEnumString_AnimationClipListenerEventType_DEFAULT;
+    if (e == AnimationClip::Listener::BEGIN)
+        return luaEnumString_AnimationClipListenerEventType_BEGIN;
+    if (e == AnimationClip::Listener::END)
+        return luaEnumString_AnimationClipListenerEventType_END;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration AnimationClip::Listener::EventType.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_AnimationClipListenerEventType.h

@@ -0,0 +1,15 @@
+#ifndef LUA_ANIMATIONCLIPLISTENEREVENTTYPE_H_
+#define LUA_ANIMATIONCLIPLISTENEREVENTTYPE_H_
+
+#include "AnimationClip.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for AnimationClip::Listener::EventType.
+AnimationClip::Listener::EventType lua_enumFromString_AnimationClipListenerEventType(const char* s);
+const char* lua_stringFromEnum_AnimationClipListenerEventType(AnimationClip::Listener::EventType e);
+
+}
+
+#endif

+ 4 - 2
gameplay/src/lua/lua_AnimationController.cpp

@@ -1,8 +1,10 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AnimationController.h"
 #include "lua_AnimationController.h"
-#include "lua_Global.h"
+#include "AnimationController.h"
+#include "Base.h"
+#include "Curve.h"
+#include "Game.h"
 
 namespace gameplay
 {

+ 6 - 2
gameplay/src/lua/lua_AnimationTarget.cpp

@@ -1,8 +1,12 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AnimationTarget.h"
 #include "lua_AnimationTarget.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Game.h"
+#include "Node.h"
+#include "lua_CurveInterpolationType.h"
 
 namespace gameplay
 {

+ 2 - 2
gameplay/src/lua/lua_AnimationValue.cpp

@@ -1,8 +1,8 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AnimationValue.h"
 #include "lua_AnimationValue.h"
-#include "lua_Global.h"
+#include "AnimationValue.h"
+#include "Base.h"
 
 namespace gameplay
 {

+ 5 - 2
gameplay/src/lua/lua_AudioBuffer.cpp

@@ -1,8 +1,11 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AudioBuffer.h"
 #include "lua_AudioBuffer.h"
-#include "lua_Global.h"
+#include "AudioBuffer.h"
+#include "Base.h"
+#include "FileSystem.h"
+#include "Game.h"
+#include "Ref.h"
 
 namespace gameplay
 {

+ 5 - 2
gameplay/src/lua/lua_AudioController.cpp

@@ -1,8 +1,11 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AudioController.h"
 #include "lua_AudioController.h"
-#include "lua_Global.h"
+#include "AudioBuffer.h"
+#include "AudioController.h"
+#include "AudioListener.h"
+#include "AudioSource.h"
+#include "Base.h"
 
 namespace gameplay
 {

+ 8 - 2
gameplay/src/lua/lua_AudioListener.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AudioListener.h"
 #include "lua_AudioListener.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "AudioListener.h"
+#include "Base.h"
+#include "Game.h"
+#include "Node.h"
+#include "Transform.h"
+#include "lua_CurveInterpolationType.h"
 
 namespace gameplay
 {

+ 12 - 2
gameplay/src/lua/lua_AudioSource.cpp

@@ -1,8 +1,18 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "AudioSource.h"
 #include "lua_AudioSource.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "AudioBuffer.h"
+#include "AudioController.h"
+#include "AudioSource.h"
+#include "Base.h"
+#include "Game.h"
+#include "Node.h"
+#include "Ref.h"
+#include "Transform.h"
+#include "lua_AudioSourceState.h"
+#include "lua_CurveInterpolationType.h"
 
 namespace gameplay
 {

+ 43 - 0
gameplay/src/lua/lua_AudioSourceState.cpp

@@ -0,0 +1,43 @@
+#include "Base.h"
+#include "lua_AudioSourceState.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_AudioSourceState_INITIAL = "INITIAL";
+static const char* luaEnumString_AudioSourceState_PLAYING = "PLAYING";
+static const char* luaEnumString_AudioSourceState_PAUSED = "PAUSED";
+static const char* luaEnumString_AudioSourceState_STOPPED = "STOPPED";
+
+AudioSource::State lua_enumFromString_AudioSourceState(const char* s)
+{
+    if (strcmp(s, luaEnumString_AudioSourceState_INITIAL) == 0)
+        return AudioSource::INITIAL;
+    if (strcmp(s, luaEnumString_AudioSourceState_PLAYING) == 0)
+        return AudioSource::PLAYING;
+    if (strcmp(s, luaEnumString_AudioSourceState_PAUSED) == 0)
+        return AudioSource::PAUSED;
+    if (strcmp(s, luaEnumString_AudioSourceState_STOPPED) == 0)
+        return AudioSource::STOPPED;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration AudioSource::State.", s);
+    return AudioSource::INITIAL;
+}
+
+const char* lua_stringFromEnum_AudioSourceState(AudioSource::State e)
+{
+    if (e == AudioSource::INITIAL)
+        return luaEnumString_AudioSourceState_INITIAL;
+    if (e == AudioSource::PLAYING)
+        return luaEnumString_AudioSourceState_PLAYING;
+    if (e == AudioSource::PAUSED)
+        return luaEnumString_AudioSourceState_PAUSED;
+    if (e == AudioSource::STOPPED)
+        return luaEnumString_AudioSourceState_STOPPED;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration AudioSource::State.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_AudioSourceState.h

@@ -0,0 +1,15 @@
+#ifndef LUA_AUDIOSOURCESTATE_H_
+#define LUA_AUDIOSOURCESTATE_H_
+
+#include "AudioSource.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for AudioSource::State.
+AudioSource::State lua_enumFromString_AudioSourceState(const char* s);
+const char* lua_stringFromEnum_AudioSourceState(AudioSource::State e);
+
+}
+
+#endif

+ 4 - 2
gameplay/src/lua/lua_BoundingBox.cpp

@@ -1,8 +1,10 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "BoundingBox.h"
 #include "lua_BoundingBox.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "BoundingBox.h"
+#include "BoundingSphere.h"
+#include "Plane.h"
 
 namespace gameplay
 {

+ 3 - 2
gameplay/src/lua/lua_BoundingSphere.cpp

@@ -1,8 +1,9 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "BoundingSphere.h"
 #include "lua_BoundingSphere.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "BoundingBox.h"
+#include "BoundingSphere.h"
 
 namespace gameplay
 {

+ 8 - 2
gameplay/src/lua/lua_Bundle.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Bundle.h"
 #include "lua_Bundle.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Bundle.h"
+#include "FileSystem.h"
+#include "Game.h"
+#include "Joint.h"
+#include "MeshPart.h"
+#include "Ref.h"
+#include "Scene.h"
 
 namespace gameplay
 {

+ 14 - 2
gameplay/src/lua/lua_Button.cpp

@@ -1,8 +1,20 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Button.h"
 #include "lua_Button.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Button.h"
+#include "Control.h"
+#include "Game.h"
+#include "Label.h"
+#include "Node.h"
+#include "Ref.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_FontJustify.h"
 
 namespace gameplay
 {

+ 11 - 2
gameplay/src/lua/lua_Camera.cpp

@@ -1,8 +1,17 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Camera.h"
 #include "lua_Camera.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Camera.h"
+#include "Game.h"
+#include "Node.h"
+#include "PhysicsController.h"
+#include "Ref.h"
+#include "Transform.h"
+#include "lua_CameraType.h"
+#include "lua_CurveInterpolationType.h"
 
 namespace gameplay
 {

+ 33 - 0
gameplay/src/lua/lua_CameraType.cpp

@@ -0,0 +1,33 @@
+#include "Base.h"
+#include "lua_CameraType.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_CameraType_PERSPECTIVE = "PERSPECTIVE";
+static const char* luaEnumString_CameraType_ORTHOGRAPHIC = "ORTHOGRAPHIC";
+
+Camera::Type lua_enumFromString_CameraType(const char* s)
+{
+    if (strcmp(s, luaEnumString_CameraType_PERSPECTIVE) == 0)
+        return Camera::PERSPECTIVE;
+    if (strcmp(s, luaEnumString_CameraType_ORTHOGRAPHIC) == 0)
+        return Camera::ORTHOGRAPHIC;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Camera::Type.", s);
+    return Camera::PERSPECTIVE;
+}
+
+const char* lua_stringFromEnum_CameraType(Camera::Type e)
+{
+    if (e == Camera::PERSPECTIVE)
+        return luaEnumString_CameraType_PERSPECTIVE;
+    if (e == Camera::ORTHOGRAPHIC)
+        return luaEnumString_CameraType_ORTHOGRAPHIC;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Camera::Type.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_CameraType.h

@@ -0,0 +1,15 @@
+#ifndef LUA_CAMERATYPE_H_
+#define LUA_CAMERATYPE_H_
+
+#include "Camera.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Camera::Type.
+Camera::Type lua_enumFromString_CameraType(const char* s);
+const char* lua_stringFromEnum_CameraType(Camera::Type e);
+
+}
+
+#endif

+ 15 - 2
gameplay/src/lua/lua_CheckBox.cpp

@@ -1,8 +1,21 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "CheckBox.h"
 #include "lua_CheckBox.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Button.h"
+#include "CheckBox.h"
+#include "Control.h"
+#include "Game.h"
+#include "Label.h"
+#include "Node.h"
+#include "Ref.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_FontJustify.h"
 
 namespace gameplay
 {

+ 26 - 2
gameplay/src/lua/lua_Container.cpp

@@ -1,8 +1,32 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Container.h"
 #include "lua_Container.h"
-#include "lua_Global.h"
+#include "AbsoluteLayout.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Button.h"
+#include "CheckBox.h"
+#include "Container.h"
+#include "Control.h"
+#include "FlowLayout.h"
+#include "Game.h"
+#include "Joystick.h"
+#include "Label.h"
+#include "Layout.h"
+#include "Node.h"
+#include "RadioButton.h"
+#include "Ref.h"
+#include "Slider.h"
+#include "TextBox.h"
+#include "VerticalLayout.h"
+#include "lua_ContainerScroll.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_FontJustify.h"
+#include "lua_LayoutType.h"
 
 namespace gameplay
 {

+ 43 - 0
gameplay/src/lua/lua_ContainerScroll.cpp

@@ -0,0 +1,43 @@
+#include "Base.h"
+#include "lua_ContainerScroll.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_ContainerScroll_SCROLL_NONE = "SCROLL_NONE";
+static const char* luaEnumString_ContainerScroll_SCROLL_HORIZONTAL = "SCROLL_HORIZONTAL";
+static const char* luaEnumString_ContainerScroll_SCROLL_VERTICAL = "SCROLL_VERTICAL";
+static const char* luaEnumString_ContainerScroll_SCROLL_BOTH = "SCROLL_BOTH";
+
+Container::Scroll lua_enumFromString_ContainerScroll(const char* s)
+{
+    if (strcmp(s, luaEnumString_ContainerScroll_SCROLL_NONE) == 0)
+        return Container::SCROLL_NONE;
+    if (strcmp(s, luaEnumString_ContainerScroll_SCROLL_HORIZONTAL) == 0)
+        return Container::SCROLL_HORIZONTAL;
+    if (strcmp(s, luaEnumString_ContainerScroll_SCROLL_VERTICAL) == 0)
+        return Container::SCROLL_VERTICAL;
+    if (strcmp(s, luaEnumString_ContainerScroll_SCROLL_BOTH) == 0)
+        return Container::SCROLL_BOTH;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Container::Scroll.", s);
+    return Container::SCROLL_NONE;
+}
+
+const char* lua_stringFromEnum_ContainerScroll(Container::Scroll e)
+{
+    if (e == Container::SCROLL_NONE)
+        return luaEnumString_ContainerScroll_SCROLL_NONE;
+    if (e == Container::SCROLL_HORIZONTAL)
+        return luaEnumString_ContainerScroll_SCROLL_HORIZONTAL;
+    if (e == Container::SCROLL_VERTICAL)
+        return luaEnumString_ContainerScroll_SCROLL_VERTICAL;
+    if (e == Container::SCROLL_BOTH)
+        return luaEnumString_ContainerScroll_SCROLL_BOTH;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Container::Scroll.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_ContainerScroll.h

@@ -0,0 +1,15 @@
+#ifndef LUA_CONTAINERSCROLL_H_
+#define LUA_CONTAINERSCROLL_H_
+
+#include "Container.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Container::Scroll.
+Container::Scroll lua_enumFromString_ContainerScroll(const char* s);
+const char* lua_stringFromEnum_ContainerScroll(Container::Scroll e);
+
+}
+
+#endif

+ 12 - 2
gameplay/src/lua/lua_Control.cpp

@@ -1,8 +1,18 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Control.h"
 #include "lua_Control.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Control.h"
+#include "Game.h"
+#include "Node.h"
+#include "Ref.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_FontJustify.h"
 
 namespace gameplay
 {

+ 98 - 0
gameplay/src/lua/lua_ControlAlignment.cpp

@@ -0,0 +1,98 @@
+#include "Base.h"
+#include "lua_ControlAlignment.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_ControlAlignment_ALIGN_LEFT = "ALIGN_LEFT";
+static const char* luaEnumString_ControlAlignment_ALIGN_HCENTER = "ALIGN_HCENTER";
+static const char* luaEnumString_ControlAlignment_ALIGN_RIGHT = "ALIGN_RIGHT";
+static const char* luaEnumString_ControlAlignment_ALIGN_TOP = "ALIGN_TOP";
+static const char* luaEnumString_ControlAlignment_ALIGN_VCENTER = "ALIGN_VCENTER";
+static const char* luaEnumString_ControlAlignment_ALIGN_BOTTOM = "ALIGN_BOTTOM";
+static const char* luaEnumString_ControlAlignment_ALIGN_TOP_LEFT = "ALIGN_TOP_LEFT";
+static const char* luaEnumString_ControlAlignment_ALIGN_VCENTER_LEFT = "ALIGN_VCENTER_LEFT";
+static const char* luaEnumString_ControlAlignment_ALIGN_BOTTOM_LEFT = "ALIGN_BOTTOM_LEFT";
+static const char* luaEnumString_ControlAlignment_ALIGN_TOP_HCENTER = "ALIGN_TOP_HCENTER";
+static const char* luaEnumString_ControlAlignment_ALIGN_VCENTER_HCENTER = "ALIGN_VCENTER_HCENTER";
+static const char* luaEnumString_ControlAlignment_ALIGN_BOTTOM_HCENTER = "ALIGN_BOTTOM_HCENTER";
+static const char* luaEnumString_ControlAlignment_ALIGN_TOP_RIGHT = "ALIGN_TOP_RIGHT";
+static const char* luaEnumString_ControlAlignment_ALIGN_VCENTER_RIGHT = "ALIGN_VCENTER_RIGHT";
+static const char* luaEnumString_ControlAlignment_ALIGN_BOTTOM_RIGHT = "ALIGN_BOTTOM_RIGHT";
+
+Control::Alignment lua_enumFromString_ControlAlignment(const char* s)
+{
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_LEFT) == 0)
+        return Control::ALIGN_LEFT;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_HCENTER) == 0)
+        return Control::ALIGN_HCENTER;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_RIGHT) == 0)
+        return Control::ALIGN_RIGHT;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_TOP) == 0)
+        return Control::ALIGN_TOP;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_VCENTER) == 0)
+        return Control::ALIGN_VCENTER;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_BOTTOM) == 0)
+        return Control::ALIGN_BOTTOM;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_TOP_LEFT) == 0)
+        return Control::ALIGN_TOP_LEFT;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_VCENTER_LEFT) == 0)
+        return Control::ALIGN_VCENTER_LEFT;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_BOTTOM_LEFT) == 0)
+        return Control::ALIGN_BOTTOM_LEFT;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_TOP_HCENTER) == 0)
+        return Control::ALIGN_TOP_HCENTER;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_VCENTER_HCENTER) == 0)
+        return Control::ALIGN_VCENTER_HCENTER;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_BOTTOM_HCENTER) == 0)
+        return Control::ALIGN_BOTTOM_HCENTER;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_TOP_RIGHT) == 0)
+        return Control::ALIGN_TOP_RIGHT;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_VCENTER_RIGHT) == 0)
+        return Control::ALIGN_VCENTER_RIGHT;
+    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_BOTTOM_RIGHT) == 0)
+        return Control::ALIGN_BOTTOM_RIGHT;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Control::Alignment.", s);
+    return Control::ALIGN_LEFT;
+}
+
+const char* lua_stringFromEnum_ControlAlignment(Control::Alignment e)
+{
+    if (e == Control::ALIGN_LEFT)
+        return luaEnumString_ControlAlignment_ALIGN_LEFT;
+    if (e == Control::ALIGN_HCENTER)
+        return luaEnumString_ControlAlignment_ALIGN_HCENTER;
+    if (e == Control::ALIGN_RIGHT)
+        return luaEnumString_ControlAlignment_ALIGN_RIGHT;
+    if (e == Control::ALIGN_TOP)
+        return luaEnumString_ControlAlignment_ALIGN_TOP;
+    if (e == Control::ALIGN_VCENTER)
+        return luaEnumString_ControlAlignment_ALIGN_VCENTER;
+    if (e == Control::ALIGN_BOTTOM)
+        return luaEnumString_ControlAlignment_ALIGN_BOTTOM;
+    if (e == Control::ALIGN_TOP_LEFT)
+        return luaEnumString_ControlAlignment_ALIGN_TOP_LEFT;
+    if (e == Control::ALIGN_VCENTER_LEFT)
+        return luaEnumString_ControlAlignment_ALIGN_VCENTER_LEFT;
+    if (e == Control::ALIGN_BOTTOM_LEFT)
+        return luaEnumString_ControlAlignment_ALIGN_BOTTOM_LEFT;
+    if (e == Control::ALIGN_TOP_HCENTER)
+        return luaEnumString_ControlAlignment_ALIGN_TOP_HCENTER;
+    if (e == Control::ALIGN_VCENTER_HCENTER)
+        return luaEnumString_ControlAlignment_ALIGN_VCENTER_HCENTER;
+    if (e == Control::ALIGN_BOTTOM_HCENTER)
+        return luaEnumString_ControlAlignment_ALIGN_BOTTOM_HCENTER;
+    if (e == Control::ALIGN_TOP_RIGHT)
+        return luaEnumString_ControlAlignment_ALIGN_TOP_RIGHT;
+    if (e == Control::ALIGN_VCENTER_RIGHT)
+        return luaEnumString_ControlAlignment_ALIGN_VCENTER_RIGHT;
+    if (e == Control::ALIGN_BOTTOM_RIGHT)
+        return luaEnumString_ControlAlignment_ALIGN_BOTTOM_RIGHT;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Control::Alignment.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_ControlAlignment.h

@@ -0,0 +1,15 @@
+#ifndef LUA_CONTROLALIGNMENT_H_
+#define LUA_CONTROLALIGNMENT_H_
+
+#include "Control.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Control::Alignment.
+Control::Alignment lua_enumFromString_ControlAlignment(const char* s);
+const char* lua_stringFromEnum_ControlAlignment(Control::Alignment e);
+
+}
+
+#endif

+ 12 - 2
gameplay/src/lua/lua_ControlListener.cpp

@@ -1,8 +1,18 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Control.h"
 #include "lua_ControlListener.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Control.h"
+#include "Game.h"
+#include "Node.h"
+#include "Ref.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_FontJustify.h"
 
 namespace gameplay
 {

+ 58 - 0
gameplay/src/lua/lua_ControlListenerEventType.cpp

@@ -0,0 +1,58 @@
+#include "Base.h"
+#include "lua_ControlListenerEventType.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_ControlListenerEventType_PRESS = "PRESS";
+static const char* luaEnumString_ControlListenerEventType_RELEASE = "RELEASE";
+static const char* luaEnumString_ControlListenerEventType_CLICK = "CLICK";
+static const char* luaEnumString_ControlListenerEventType_VALUE_CHANGED = "VALUE_CHANGED";
+static const char* luaEnumString_ControlListenerEventType_TEXT_CHANGED = "TEXT_CHANGED";
+static const char* luaEnumString_ControlListenerEventType_MIDDLE_CLICK = "MIDDLE_CLICK";
+static const char* luaEnumString_ControlListenerEventType_RIGHT_CLICK = "RIGHT_CLICK";
+
+Control::Listener::EventType lua_enumFromString_ControlListenerEventType(const char* s)
+{
+    if (strcmp(s, luaEnumString_ControlListenerEventType_PRESS) == 0)
+        return Control::Listener::PRESS;
+    if (strcmp(s, luaEnumString_ControlListenerEventType_RELEASE) == 0)
+        return Control::Listener::RELEASE;
+    if (strcmp(s, luaEnumString_ControlListenerEventType_CLICK) == 0)
+        return Control::Listener::CLICK;
+    if (strcmp(s, luaEnumString_ControlListenerEventType_VALUE_CHANGED) == 0)
+        return Control::Listener::VALUE_CHANGED;
+    if (strcmp(s, luaEnumString_ControlListenerEventType_TEXT_CHANGED) == 0)
+        return Control::Listener::TEXT_CHANGED;
+    if (strcmp(s, luaEnumString_ControlListenerEventType_MIDDLE_CLICK) == 0)
+        return Control::Listener::MIDDLE_CLICK;
+    if (strcmp(s, luaEnumString_ControlListenerEventType_RIGHT_CLICK) == 0)
+        return Control::Listener::RIGHT_CLICK;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Control::Listener::EventType.", s);
+    return Control::Listener::PRESS;
+}
+
+const char* lua_stringFromEnum_ControlListenerEventType(Control::Listener::EventType e)
+{
+    if (e == Control::Listener::PRESS)
+        return luaEnumString_ControlListenerEventType_PRESS;
+    if (e == Control::Listener::RELEASE)
+        return luaEnumString_ControlListenerEventType_RELEASE;
+    if (e == Control::Listener::CLICK)
+        return luaEnumString_ControlListenerEventType_CLICK;
+    if (e == Control::Listener::VALUE_CHANGED)
+        return luaEnumString_ControlListenerEventType_VALUE_CHANGED;
+    if (e == Control::Listener::TEXT_CHANGED)
+        return luaEnumString_ControlListenerEventType_TEXT_CHANGED;
+    if (e == Control::Listener::MIDDLE_CLICK)
+        return luaEnumString_ControlListenerEventType_MIDDLE_CLICK;
+    if (e == Control::Listener::RIGHT_CLICK)
+        return luaEnumString_ControlListenerEventType_RIGHT_CLICK;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Control::Listener::EventType.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_ControlListenerEventType.h

@@ -0,0 +1,15 @@
+#ifndef LUA_CONTROLLISTENEREVENTTYPE_H_
+#define LUA_CONTROLLISTENEREVENTTYPE_H_
+
+#include "Control.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Control::Listener::EventType.
+Control::Listener::EventType lua_enumFromString_ControlListenerEventType(const char* s);
+const char* lua_stringFromEnum_ControlListenerEventType(Control::Listener::EventType e);
+
+}
+
+#endif

+ 43 - 0
gameplay/src/lua/lua_ControlState.cpp

@@ -0,0 +1,43 @@
+#include "Base.h"
+#include "lua_ControlState.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_ControlState_NORMAL = "NORMAL";
+static const char* luaEnumString_ControlState_FOCUS = "FOCUS";
+static const char* luaEnumString_ControlState_ACTIVE = "ACTIVE";
+static const char* luaEnumString_ControlState_DISABLED = "DISABLED";
+
+Control::State lua_enumFromString_ControlState(const char* s)
+{
+    if (strcmp(s, luaEnumString_ControlState_NORMAL) == 0)
+        return Control::NORMAL;
+    if (strcmp(s, luaEnumString_ControlState_FOCUS) == 0)
+        return Control::FOCUS;
+    if (strcmp(s, luaEnumString_ControlState_ACTIVE) == 0)
+        return Control::ACTIVE;
+    if (strcmp(s, luaEnumString_ControlState_DISABLED) == 0)
+        return Control::DISABLED;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Control::State.", s);
+    return Control::NORMAL;
+}
+
+const char* lua_stringFromEnum_ControlState(Control::State e)
+{
+    if (e == Control::NORMAL)
+        return luaEnumString_ControlState_NORMAL;
+    if (e == Control::FOCUS)
+        return luaEnumString_ControlState_FOCUS;
+    if (e == Control::ACTIVE)
+        return luaEnumString_ControlState_ACTIVE;
+    if (e == Control::DISABLED)
+        return luaEnumString_ControlState_DISABLED;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Control::State.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_ControlState.h

@@ -0,0 +1,15 @@
+#ifndef LUA_CONTROLSTATE_H_
+#define LUA_CONTROLSTATE_H_
+
+#include "Control.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Control::State.
+Control::State lua_enumFromString_ControlState(const char* s);
+const char* lua_stringFromEnum_ControlState(Control::State e);
+
+}
+
+#endif

+ 6 - 2
gameplay/src/lua/lua_Curve.cpp

@@ -1,8 +1,12 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Curve.h"
 #include "lua_Curve.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Curve.h"
+#include "Game.h"
+#include "Quaternion.h"
+#include "Ref.h"
+#include "lua_CurveInterpolationType.h"
 
 namespace gameplay
 {

+ 258 - 0
gameplay/src/lua/lua_CurveInterpolationType.cpp

@@ -0,0 +1,258 @@
+#include "Base.h"
+#include "lua_CurveInterpolationType.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_CurveInterpolationType_BEZIER = "BEZIER";
+static const char* luaEnumString_CurveInterpolationType_BSPLINE = "BSPLINE";
+static const char* luaEnumString_CurveInterpolationType_FLAT = "FLAT";
+static const char* luaEnumString_CurveInterpolationType_HERMITE = "HERMITE";
+static const char* luaEnumString_CurveInterpolationType_LINEAR = "LINEAR";
+static const char* luaEnumString_CurveInterpolationType_SMOOTH = "SMOOTH";
+static const char* luaEnumString_CurveInterpolationType_STEP = "STEP";
+static const char* luaEnumString_CurveInterpolationType_QUADRATIC_IN = "QUADRATIC_IN";
+static const char* luaEnumString_CurveInterpolationType_QUADRATIC_OUT = "QUADRATIC_OUT";
+static const char* luaEnumString_CurveInterpolationType_QUADRATIC_IN_OUT = "QUADRATIC_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_QUADRATIC_OUT_IN = "QUADRATIC_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_CUBIC_IN = "CUBIC_IN";
+static const char* luaEnumString_CurveInterpolationType_CUBIC_OUT = "CUBIC_OUT";
+static const char* luaEnumString_CurveInterpolationType_CUBIC_IN_OUT = "CUBIC_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_CUBIC_OUT_IN = "CUBIC_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_QUARTIC_IN = "QUARTIC_IN";
+static const char* luaEnumString_CurveInterpolationType_QUARTIC_OUT = "QUARTIC_OUT";
+static const char* luaEnumString_CurveInterpolationType_QUARTIC_IN_OUT = "QUARTIC_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_QUARTIC_OUT_IN = "QUARTIC_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_QUINTIC_IN = "QUINTIC_IN";
+static const char* luaEnumString_CurveInterpolationType_QUINTIC_OUT = "QUINTIC_OUT";
+static const char* luaEnumString_CurveInterpolationType_QUINTIC_IN_OUT = "QUINTIC_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_QUINTIC_OUT_IN = "QUINTIC_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_SINE_IN = "SINE_IN";
+static const char* luaEnumString_CurveInterpolationType_SINE_OUT = "SINE_OUT";
+static const char* luaEnumString_CurveInterpolationType_SINE_IN_OUT = "SINE_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_SINE_OUT_IN = "SINE_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_EXPONENTIAL_IN = "EXPONENTIAL_IN";
+static const char* luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT = "EXPONENTIAL_OUT";
+static const char* luaEnumString_CurveInterpolationType_EXPONENTIAL_IN_OUT = "EXPONENTIAL_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT_IN = "EXPONENTIAL_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_CIRCULAR_IN = "CIRCULAR_IN";
+static const char* luaEnumString_CurveInterpolationType_CIRCULAR_OUT = "CIRCULAR_OUT";
+static const char* luaEnumString_CurveInterpolationType_CIRCULAR_IN_OUT = "CIRCULAR_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_CIRCULAR_OUT_IN = "CIRCULAR_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_ELASTIC_IN = "ELASTIC_IN";
+static const char* luaEnumString_CurveInterpolationType_ELASTIC_OUT = "ELASTIC_OUT";
+static const char* luaEnumString_CurveInterpolationType_ELASTIC_IN_OUT = "ELASTIC_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_ELASTIC_OUT_IN = "ELASTIC_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_OVERSHOOT_IN = "OVERSHOOT_IN";
+static const char* luaEnumString_CurveInterpolationType_OVERSHOOT_OUT = "OVERSHOOT_OUT";
+static const char* luaEnumString_CurveInterpolationType_OVERSHOOT_IN_OUT = "OVERSHOOT_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_OVERSHOOT_OUT_IN = "OVERSHOOT_OUT_IN";
+static const char* luaEnumString_CurveInterpolationType_BOUNCE_IN = "BOUNCE_IN";
+static const char* luaEnumString_CurveInterpolationType_BOUNCE_OUT = "BOUNCE_OUT";
+static const char* luaEnumString_CurveInterpolationType_BOUNCE_IN_OUT = "BOUNCE_IN_OUT";
+static const char* luaEnumString_CurveInterpolationType_BOUNCE_OUT_IN = "BOUNCE_OUT_IN";
+
+Curve::InterpolationType lua_enumFromString_CurveInterpolationType(const char* s)
+{
+    if (strcmp(s, luaEnumString_CurveInterpolationType_BEZIER) == 0)
+        return Curve::BEZIER;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_BSPLINE) == 0)
+        return Curve::BSPLINE;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_FLAT) == 0)
+        return Curve::FLAT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_HERMITE) == 0)
+        return Curve::HERMITE;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_LINEAR) == 0)
+        return Curve::LINEAR;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_SMOOTH) == 0)
+        return Curve::SMOOTH;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_STEP) == 0)
+        return Curve::STEP;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUADRATIC_IN) == 0)
+        return Curve::QUADRATIC_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUADRATIC_OUT) == 0)
+        return Curve::QUADRATIC_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUADRATIC_IN_OUT) == 0)
+        return Curve::QUADRATIC_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUADRATIC_OUT_IN) == 0)
+        return Curve::QUADRATIC_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_CUBIC_IN) == 0)
+        return Curve::CUBIC_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_CUBIC_OUT) == 0)
+        return Curve::CUBIC_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_CUBIC_IN_OUT) == 0)
+        return Curve::CUBIC_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_CUBIC_OUT_IN) == 0)
+        return Curve::CUBIC_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUARTIC_IN) == 0)
+        return Curve::QUARTIC_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUARTIC_OUT) == 0)
+        return Curve::QUARTIC_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUARTIC_IN_OUT) == 0)
+        return Curve::QUARTIC_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUARTIC_OUT_IN) == 0)
+        return Curve::QUARTIC_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUINTIC_IN) == 0)
+        return Curve::QUINTIC_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUINTIC_OUT) == 0)
+        return Curve::QUINTIC_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUINTIC_IN_OUT) == 0)
+        return Curve::QUINTIC_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_QUINTIC_OUT_IN) == 0)
+        return Curve::QUINTIC_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_SINE_IN) == 0)
+        return Curve::SINE_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_SINE_OUT) == 0)
+        return Curve::SINE_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_SINE_IN_OUT) == 0)
+        return Curve::SINE_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_SINE_OUT_IN) == 0)
+        return Curve::SINE_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_EXPONENTIAL_IN) == 0)
+        return Curve::EXPONENTIAL_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT) == 0)
+        return Curve::EXPONENTIAL_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_EXPONENTIAL_IN_OUT) == 0)
+        return Curve::EXPONENTIAL_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT_IN) == 0)
+        return Curve::EXPONENTIAL_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_CIRCULAR_IN) == 0)
+        return Curve::CIRCULAR_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_CIRCULAR_OUT) == 0)
+        return Curve::CIRCULAR_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_CIRCULAR_IN_OUT) == 0)
+        return Curve::CIRCULAR_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_CIRCULAR_OUT_IN) == 0)
+        return Curve::CIRCULAR_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_ELASTIC_IN) == 0)
+        return Curve::ELASTIC_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_ELASTIC_OUT) == 0)
+        return Curve::ELASTIC_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_ELASTIC_IN_OUT) == 0)
+        return Curve::ELASTIC_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_ELASTIC_OUT_IN) == 0)
+        return Curve::ELASTIC_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_OVERSHOOT_IN) == 0)
+        return Curve::OVERSHOOT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_OVERSHOOT_OUT) == 0)
+        return Curve::OVERSHOOT_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_OVERSHOOT_IN_OUT) == 0)
+        return Curve::OVERSHOOT_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_OVERSHOOT_OUT_IN) == 0)
+        return Curve::OVERSHOOT_OUT_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_BOUNCE_IN) == 0)
+        return Curve::BOUNCE_IN;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_BOUNCE_OUT) == 0)
+        return Curve::BOUNCE_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_BOUNCE_IN_OUT) == 0)
+        return Curve::BOUNCE_IN_OUT;
+    if (strcmp(s, luaEnumString_CurveInterpolationType_BOUNCE_OUT_IN) == 0)
+        return Curve::BOUNCE_OUT_IN;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Curve::InterpolationType.", s);
+    return Curve::BEZIER;
+}
+
+const char* lua_stringFromEnum_CurveInterpolationType(Curve::InterpolationType e)
+{
+    if (e == Curve::BEZIER)
+        return luaEnumString_CurveInterpolationType_BEZIER;
+    if (e == Curve::BSPLINE)
+        return luaEnumString_CurveInterpolationType_BSPLINE;
+    if (e == Curve::FLAT)
+        return luaEnumString_CurveInterpolationType_FLAT;
+    if (e == Curve::HERMITE)
+        return luaEnumString_CurveInterpolationType_HERMITE;
+    if (e == Curve::LINEAR)
+        return luaEnumString_CurveInterpolationType_LINEAR;
+    if (e == Curve::SMOOTH)
+        return luaEnumString_CurveInterpolationType_SMOOTH;
+    if (e == Curve::STEP)
+        return luaEnumString_CurveInterpolationType_STEP;
+    if (e == Curve::QUADRATIC_IN)
+        return luaEnumString_CurveInterpolationType_QUADRATIC_IN;
+    if (e == Curve::QUADRATIC_OUT)
+        return luaEnumString_CurveInterpolationType_QUADRATIC_OUT;
+    if (e == Curve::QUADRATIC_IN_OUT)
+        return luaEnumString_CurveInterpolationType_QUADRATIC_IN_OUT;
+    if (e == Curve::QUADRATIC_OUT_IN)
+        return luaEnumString_CurveInterpolationType_QUADRATIC_OUT_IN;
+    if (e == Curve::CUBIC_IN)
+        return luaEnumString_CurveInterpolationType_CUBIC_IN;
+    if (e == Curve::CUBIC_OUT)
+        return luaEnumString_CurveInterpolationType_CUBIC_OUT;
+    if (e == Curve::CUBIC_IN_OUT)
+        return luaEnumString_CurveInterpolationType_CUBIC_IN_OUT;
+    if (e == Curve::CUBIC_OUT_IN)
+        return luaEnumString_CurveInterpolationType_CUBIC_OUT_IN;
+    if (e == Curve::QUARTIC_IN)
+        return luaEnumString_CurveInterpolationType_QUARTIC_IN;
+    if (e == Curve::QUARTIC_OUT)
+        return luaEnumString_CurveInterpolationType_QUARTIC_OUT;
+    if (e == Curve::QUARTIC_IN_OUT)
+        return luaEnumString_CurveInterpolationType_QUARTIC_IN_OUT;
+    if (e == Curve::QUARTIC_OUT_IN)
+        return luaEnumString_CurveInterpolationType_QUARTIC_OUT_IN;
+    if (e == Curve::QUINTIC_IN)
+        return luaEnumString_CurveInterpolationType_QUINTIC_IN;
+    if (e == Curve::QUINTIC_OUT)
+        return luaEnumString_CurveInterpolationType_QUINTIC_OUT;
+    if (e == Curve::QUINTIC_IN_OUT)
+        return luaEnumString_CurveInterpolationType_QUINTIC_IN_OUT;
+    if (e == Curve::QUINTIC_OUT_IN)
+        return luaEnumString_CurveInterpolationType_QUINTIC_OUT_IN;
+    if (e == Curve::SINE_IN)
+        return luaEnumString_CurveInterpolationType_SINE_IN;
+    if (e == Curve::SINE_OUT)
+        return luaEnumString_CurveInterpolationType_SINE_OUT;
+    if (e == Curve::SINE_IN_OUT)
+        return luaEnumString_CurveInterpolationType_SINE_IN_OUT;
+    if (e == Curve::SINE_OUT_IN)
+        return luaEnumString_CurveInterpolationType_SINE_OUT_IN;
+    if (e == Curve::EXPONENTIAL_IN)
+        return luaEnumString_CurveInterpolationType_EXPONENTIAL_IN;
+    if (e == Curve::EXPONENTIAL_OUT)
+        return luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT;
+    if (e == Curve::EXPONENTIAL_IN_OUT)
+        return luaEnumString_CurveInterpolationType_EXPONENTIAL_IN_OUT;
+    if (e == Curve::EXPONENTIAL_OUT_IN)
+        return luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT_IN;
+    if (e == Curve::CIRCULAR_IN)
+        return luaEnumString_CurveInterpolationType_CIRCULAR_IN;
+    if (e == Curve::CIRCULAR_OUT)
+        return luaEnumString_CurveInterpolationType_CIRCULAR_OUT;
+    if (e == Curve::CIRCULAR_IN_OUT)
+        return luaEnumString_CurveInterpolationType_CIRCULAR_IN_OUT;
+    if (e == Curve::CIRCULAR_OUT_IN)
+        return luaEnumString_CurveInterpolationType_CIRCULAR_OUT_IN;
+    if (e == Curve::ELASTIC_IN)
+        return luaEnumString_CurveInterpolationType_ELASTIC_IN;
+    if (e == Curve::ELASTIC_OUT)
+        return luaEnumString_CurveInterpolationType_ELASTIC_OUT;
+    if (e == Curve::ELASTIC_IN_OUT)
+        return luaEnumString_CurveInterpolationType_ELASTIC_IN_OUT;
+    if (e == Curve::ELASTIC_OUT_IN)
+        return luaEnumString_CurveInterpolationType_ELASTIC_OUT_IN;
+    if (e == Curve::OVERSHOOT_IN)
+        return luaEnumString_CurveInterpolationType_OVERSHOOT_IN;
+    if (e == Curve::OVERSHOOT_OUT)
+        return luaEnumString_CurveInterpolationType_OVERSHOOT_OUT;
+    if (e == Curve::OVERSHOOT_IN_OUT)
+        return luaEnumString_CurveInterpolationType_OVERSHOOT_IN_OUT;
+    if (e == Curve::OVERSHOOT_OUT_IN)
+        return luaEnumString_CurveInterpolationType_OVERSHOOT_OUT_IN;
+    if (e == Curve::BOUNCE_IN)
+        return luaEnumString_CurveInterpolationType_BOUNCE_IN;
+    if (e == Curve::BOUNCE_OUT)
+        return luaEnumString_CurveInterpolationType_BOUNCE_OUT;
+    if (e == Curve::BOUNCE_IN_OUT)
+        return luaEnumString_CurveInterpolationType_BOUNCE_IN_OUT;
+    if (e == Curve::BOUNCE_OUT_IN)
+        return luaEnumString_CurveInterpolationType_BOUNCE_OUT_IN;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Curve::InterpolationType.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_CurveInterpolationType.h

@@ -0,0 +1,15 @@
+#ifndef LUA_CURVEINTERPOLATIONTYPE_H_
+#define LUA_CURVEINTERPOLATIONTYPE_H_
+
+#include "Curve.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Curve::InterpolationType.
+Curve::InterpolationType lua_enumFromString_CurveInterpolationType(const char* s);
+const char* lua_stringFromEnum_CurveInterpolationType(Curve::InterpolationType e);
+
+}
+
+#endif

+ 5 - 2
gameplay/src/lua/lua_DepthStencilTarget.cpp

@@ -1,8 +1,11 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "DepthStencilTarget.h"
 #include "lua_DepthStencilTarget.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "DepthStencilTarget.h"
+#include "Game.h"
+#include "Ref.h"
+#include "lua_DepthStencilTargetFormat.h"
 
 namespace gameplay
 {

+ 33 - 0
gameplay/src/lua/lua_DepthStencilTargetFormat.cpp

@@ -0,0 +1,33 @@
+#include "Base.h"
+#include "lua_DepthStencilTargetFormat.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_DepthStencilTargetFormat_DEPTH = "DEPTH";
+static const char* luaEnumString_DepthStencilTargetFormat_DEPTH_STENCIL = "DEPTH_STENCIL";
+
+DepthStencilTarget::Format lua_enumFromString_DepthStencilTargetFormat(const char* s)
+{
+    if (strcmp(s, luaEnumString_DepthStencilTargetFormat_DEPTH) == 0)
+        return DepthStencilTarget::DEPTH;
+    if (strcmp(s, luaEnumString_DepthStencilTargetFormat_DEPTH_STENCIL) == 0)
+        return DepthStencilTarget::DEPTH_STENCIL;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration DepthStencilTarget::Format.", s);
+    return DepthStencilTarget::DEPTH;
+}
+
+const char* lua_stringFromEnum_DepthStencilTargetFormat(DepthStencilTarget::Format e)
+{
+    if (e == DepthStencilTarget::DEPTH)
+        return luaEnumString_DepthStencilTargetFormat_DEPTH;
+    if (e == DepthStencilTarget::DEPTH_STENCIL)
+        return luaEnumString_DepthStencilTargetFormat_DEPTH_STENCIL;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration DepthStencilTarget::Format.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_DepthStencilTargetFormat.h

@@ -0,0 +1,15 @@
+#ifndef LUA_DEPTHSTENCILTARGETFORMAT_H_
+#define LUA_DEPTHSTENCILTARGETFORMAT_H_
+
+#include "DepthStencilTarget.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for DepthStencilTarget::Format.
+DepthStencilTarget::Format lua_enumFromString_DepthStencilTargetFormat(const char* s);
+const char* lua_stringFromEnum_DepthStencilTargetFormat(DepthStencilTarget::Format e);
+
+}
+
+#endif

+ 5 - 2
gameplay/src/lua/lua_Effect.cpp

@@ -1,8 +1,11 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Effect.h"
 #include "lua_Effect.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Effect.h"
+#include "FileSystem.h"
+#include "Game.h"
+#include "Ref.h"
 
 namespace gameplay
 {

+ 3 - 2
gameplay/src/lua/lua_FileSystem.cpp

@@ -1,8 +1,9 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "FileSystem.h"
 #include "lua_FileSystem.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "FileSystem.h"
+#include "Properties.h"
 
 namespace gameplay
 {

+ 8 - 2
gameplay/src/lua/lua_FlowLayout.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "FlowLayout.h"
 #include "lua_FlowLayout.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Container.h"
+#include "Control.h"
+#include "FlowLayout.h"
+#include "Game.h"
+#include "Layout.h"
+#include "Ref.h"
+#include "lua_LayoutType.h"
 
 namespace gameplay
 {

+ 8 - 2
gameplay/src/lua/lua_Font.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Font.h"
 #include "lua_Font.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Bundle.h"
+#include "FileSystem.h"
+#include "Font.h"
+#include "Game.h"
+#include "Ref.h"
+#include "lua_FontJustify.h"
+#include "lua_FontStyle.h"
 
 namespace gameplay
 {

+ 8 - 2
gameplay/src/lua/lua_FontGlyph.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Font.h"
 #include "lua_FontGlyph.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Bundle.h"
+#include "FileSystem.h"
+#include "Font.h"
+#include "Game.h"
+#include "Ref.h"
+#include "lua_FontJustify.h"
+#include "lua_FontStyle.h"
 
 namespace gameplay
 {

+ 98 - 0
gameplay/src/lua/lua_FontJustify.cpp

@@ -0,0 +1,98 @@
+#include "Base.h"
+#include "lua_FontJustify.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_FontJustify_ALIGN_LEFT = "ALIGN_LEFT";
+static const char* luaEnumString_FontJustify_ALIGN_HCENTER = "ALIGN_HCENTER";
+static const char* luaEnumString_FontJustify_ALIGN_RIGHT = "ALIGN_RIGHT";
+static const char* luaEnumString_FontJustify_ALIGN_TOP = "ALIGN_TOP";
+static const char* luaEnumString_FontJustify_ALIGN_VCENTER = "ALIGN_VCENTER";
+static const char* luaEnumString_FontJustify_ALIGN_BOTTOM = "ALIGN_BOTTOM";
+static const char* luaEnumString_FontJustify_ALIGN_TOP_LEFT = "ALIGN_TOP_LEFT";
+static const char* luaEnumString_FontJustify_ALIGN_VCENTER_LEFT = "ALIGN_VCENTER_LEFT";
+static const char* luaEnumString_FontJustify_ALIGN_BOTTOM_LEFT = "ALIGN_BOTTOM_LEFT";
+static const char* luaEnumString_FontJustify_ALIGN_TOP_HCENTER = "ALIGN_TOP_HCENTER";
+static const char* luaEnumString_FontJustify_ALIGN_VCENTER_HCENTER = "ALIGN_VCENTER_HCENTER";
+static const char* luaEnumString_FontJustify_ALIGN_BOTTOM_HCENTER = "ALIGN_BOTTOM_HCENTER";
+static const char* luaEnumString_FontJustify_ALIGN_TOP_RIGHT = "ALIGN_TOP_RIGHT";
+static const char* luaEnumString_FontJustify_ALIGN_VCENTER_RIGHT = "ALIGN_VCENTER_RIGHT";
+static const char* luaEnumString_FontJustify_ALIGN_BOTTOM_RIGHT = "ALIGN_BOTTOM_RIGHT";
+
+Font::Justify lua_enumFromString_FontJustify(const char* s)
+{
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_LEFT) == 0)
+        return Font::ALIGN_LEFT;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_HCENTER) == 0)
+        return Font::ALIGN_HCENTER;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_RIGHT) == 0)
+        return Font::ALIGN_RIGHT;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_TOP) == 0)
+        return Font::ALIGN_TOP;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_VCENTER) == 0)
+        return Font::ALIGN_VCENTER;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_BOTTOM) == 0)
+        return Font::ALIGN_BOTTOM;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_TOP_LEFT) == 0)
+        return Font::ALIGN_TOP_LEFT;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_VCENTER_LEFT) == 0)
+        return Font::ALIGN_VCENTER_LEFT;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_BOTTOM_LEFT) == 0)
+        return Font::ALIGN_BOTTOM_LEFT;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_TOP_HCENTER) == 0)
+        return Font::ALIGN_TOP_HCENTER;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_VCENTER_HCENTER) == 0)
+        return Font::ALIGN_VCENTER_HCENTER;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_BOTTOM_HCENTER) == 0)
+        return Font::ALIGN_BOTTOM_HCENTER;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_TOP_RIGHT) == 0)
+        return Font::ALIGN_TOP_RIGHT;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_VCENTER_RIGHT) == 0)
+        return Font::ALIGN_VCENTER_RIGHT;
+    if (strcmp(s, luaEnumString_FontJustify_ALIGN_BOTTOM_RIGHT) == 0)
+        return Font::ALIGN_BOTTOM_RIGHT;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Font::Justify.", s);
+    return Font::ALIGN_LEFT;
+}
+
+const char* lua_stringFromEnum_FontJustify(Font::Justify e)
+{
+    if (e == Font::ALIGN_LEFT)
+        return luaEnumString_FontJustify_ALIGN_LEFT;
+    if (e == Font::ALIGN_HCENTER)
+        return luaEnumString_FontJustify_ALIGN_HCENTER;
+    if (e == Font::ALIGN_RIGHT)
+        return luaEnumString_FontJustify_ALIGN_RIGHT;
+    if (e == Font::ALIGN_TOP)
+        return luaEnumString_FontJustify_ALIGN_TOP;
+    if (e == Font::ALIGN_VCENTER)
+        return luaEnumString_FontJustify_ALIGN_VCENTER;
+    if (e == Font::ALIGN_BOTTOM)
+        return luaEnumString_FontJustify_ALIGN_BOTTOM;
+    if (e == Font::ALIGN_TOP_LEFT)
+        return luaEnumString_FontJustify_ALIGN_TOP_LEFT;
+    if (e == Font::ALIGN_VCENTER_LEFT)
+        return luaEnumString_FontJustify_ALIGN_VCENTER_LEFT;
+    if (e == Font::ALIGN_BOTTOM_LEFT)
+        return luaEnumString_FontJustify_ALIGN_BOTTOM_LEFT;
+    if (e == Font::ALIGN_TOP_HCENTER)
+        return luaEnumString_FontJustify_ALIGN_TOP_HCENTER;
+    if (e == Font::ALIGN_VCENTER_HCENTER)
+        return luaEnumString_FontJustify_ALIGN_VCENTER_HCENTER;
+    if (e == Font::ALIGN_BOTTOM_HCENTER)
+        return luaEnumString_FontJustify_ALIGN_BOTTOM_HCENTER;
+    if (e == Font::ALIGN_TOP_RIGHT)
+        return luaEnumString_FontJustify_ALIGN_TOP_RIGHT;
+    if (e == Font::ALIGN_VCENTER_RIGHT)
+        return luaEnumString_FontJustify_ALIGN_VCENTER_RIGHT;
+    if (e == Font::ALIGN_BOTTOM_RIGHT)
+        return luaEnumString_FontJustify_ALIGN_BOTTOM_RIGHT;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Font::Justify.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_FontJustify.h

@@ -0,0 +1,15 @@
+#ifndef LUA_FONTJUSTIFY_H_
+#define LUA_FONTJUSTIFY_H_
+
+#include "Font.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Font::Justify.
+Font::Justify lua_enumFromString_FontJustify(const char* s);
+const char* lua_stringFromEnum_FontJustify(Font::Justify e);
+
+}
+
+#endif

+ 43 - 0
gameplay/src/lua/lua_FontStyle.cpp

@@ -0,0 +1,43 @@
+#include "Base.h"
+#include "lua_FontStyle.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_FontStyle_PLAIN = "PLAIN";
+static const char* luaEnumString_FontStyle_BOLD = "BOLD";
+static const char* luaEnumString_FontStyle_ITALIC = "ITALIC";
+static const char* luaEnumString_FontStyle_BOLD_ITALIC = "BOLD_ITALIC";
+
+Font::Style lua_enumFromString_FontStyle(const char* s)
+{
+    if (strcmp(s, luaEnumString_FontStyle_PLAIN) == 0)
+        return Font::PLAIN;
+    if (strcmp(s, luaEnumString_FontStyle_BOLD) == 0)
+        return Font::BOLD;
+    if (strcmp(s, luaEnumString_FontStyle_ITALIC) == 0)
+        return Font::ITALIC;
+    if (strcmp(s, luaEnumString_FontStyle_BOLD_ITALIC) == 0)
+        return Font::BOLD_ITALIC;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Font::Style.", s);
+    return Font::PLAIN;
+}
+
+const char* lua_stringFromEnum_FontStyle(Font::Style e)
+{
+    if (e == Font::PLAIN)
+        return luaEnumString_FontStyle_PLAIN;
+    if (e == Font::BOLD)
+        return luaEnumString_FontStyle_BOLD;
+    if (e == Font::ITALIC)
+        return luaEnumString_FontStyle_ITALIC;
+    if (e == Font::BOLD_ITALIC)
+        return luaEnumString_FontStyle_BOLD_ITALIC;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Font::Style.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_FontStyle.h

@@ -0,0 +1,15 @@
+#ifndef LUA_FONTSTYLE_H_
+#define LUA_FONTSTYLE_H_
+
+#include "Font.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Font::Style.
+Font::Style lua_enumFromString_FontStyle(const char* s);
+const char* lua_stringFromEnum_FontStyle(Font::Style e);
+
+}
+
+#endif

+ 8 - 2
gameplay/src/lua/lua_FontText.cpp

@@ -1,8 +1,14 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Font.h"
 #include "lua_FontText.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Bundle.h"
+#include "FileSystem.h"
+#include "Font.h"
+#include "Game.h"
+#include "Ref.h"
+#include "lua_FontJustify.h"
+#include "lua_FontStyle.h"
 
 namespace gameplay
 {

+ 29 - 2
gameplay/src/lua/lua_Form.cpp

@@ -1,8 +1,35 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Form.h"
 #include "lua_Form.h"
-#include "lua_Global.h"
+#include "AbsoluteLayout.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Button.h"
+#include "CheckBox.h"
+#include "Container.h"
+#include "Control.h"
+#include "FlowLayout.h"
+#include "Form.h"
+#include "Game.h"
+#include "Joystick.h"
+#include "Label.h"
+#include "Layout.h"
+#include "Node.h"
+#include "RadioButton.h"
+#include "Ref.h"
+#include "Scene.h"
+#include "Slider.h"
+#include "TextBox.h"
+#include "Theme.h"
+#include "VerticalLayout.h"
+#include "lua_ContainerScroll.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_FontJustify.h"
+#include "lua_LayoutType.h"
 
 namespace gameplay
 {

+ 4 - 2
gameplay/src/lua/lua_FrameBuffer.cpp

@@ -1,8 +1,10 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "FrameBuffer.h"
 #include "lua_FrameBuffer.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "FrameBuffer.h"
+#include "Game.h"
+#include "Ref.h"
 
 namespace gameplay
 {

+ 4 - 2
gameplay/src/lua/lua_Frustum.cpp

@@ -1,8 +1,10 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Frustum.h"
 #include "lua_Frustum.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "BoundingBox.h"
+#include "BoundingSphere.h"
+#include "Frustum.h"
 
 namespace gameplay
 {

+ 13 - 2
gameplay/src/lua/lua_Game.cpp

@@ -1,8 +1,19 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Game.h"
 #include "lua_Game.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "FileSystem.h"
+#include "FrameBuffer.h"
+#include "Game.h"
+#include "Platform.h"
+#include "RenderState.h"
+#include "SceneLoader.h"
+#include "lua_GameClearFlags.h"
+#include "lua_GameState.h"
+#include "lua_GamepadGamepadEvent.h"
+#include "lua_KeyboardKeyEvent.h"
+#include "lua_MouseMouseEvent.h"
+#include "lua_TouchTouchEvent.h"
 
 namespace gameplay
 {

+ 58 - 0
gameplay/src/lua/lua_GameClearFlags.cpp

@@ -0,0 +1,58 @@
+#include "Base.h"
+#include "lua_GameClearFlags.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_GameClearFlags_CLEAR_COLOR = "CLEAR_COLOR";
+static const char* luaEnumString_GameClearFlags_CLEAR_DEPTH = "CLEAR_DEPTH";
+static const char* luaEnumString_GameClearFlags_CLEAR_STENCIL = "CLEAR_STENCIL";
+static const char* luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH = "CLEAR_COLOR_DEPTH";
+static const char* luaEnumString_GameClearFlags_CLEAR_COLOR_STENCIL = "CLEAR_COLOR_STENCIL";
+static const char* luaEnumString_GameClearFlags_CLEAR_DEPTH_STENCIL = "CLEAR_DEPTH_STENCIL";
+static const char* luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH_STENCIL = "CLEAR_COLOR_DEPTH_STENCIL";
+
+Game::ClearFlags lua_enumFromString_GameClearFlags(const char* s)
+{
+    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_COLOR) == 0)
+        return Game::CLEAR_COLOR;
+    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_DEPTH) == 0)
+        return Game::CLEAR_DEPTH;
+    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_STENCIL) == 0)
+        return Game::CLEAR_STENCIL;
+    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH) == 0)
+        return Game::CLEAR_COLOR_DEPTH;
+    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_COLOR_STENCIL) == 0)
+        return Game::CLEAR_COLOR_STENCIL;
+    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_DEPTH_STENCIL) == 0)
+        return Game::CLEAR_DEPTH_STENCIL;
+    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH_STENCIL) == 0)
+        return Game::CLEAR_COLOR_DEPTH_STENCIL;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Game::ClearFlags.", s);
+    return Game::CLEAR_COLOR;
+}
+
+const char* lua_stringFromEnum_GameClearFlags(Game::ClearFlags e)
+{
+    if (e == Game::CLEAR_COLOR)
+        return luaEnumString_GameClearFlags_CLEAR_COLOR;
+    if (e == Game::CLEAR_DEPTH)
+        return luaEnumString_GameClearFlags_CLEAR_DEPTH;
+    if (e == Game::CLEAR_STENCIL)
+        return luaEnumString_GameClearFlags_CLEAR_STENCIL;
+    if (e == Game::CLEAR_COLOR_DEPTH)
+        return luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH;
+    if (e == Game::CLEAR_COLOR_STENCIL)
+        return luaEnumString_GameClearFlags_CLEAR_COLOR_STENCIL;
+    if (e == Game::CLEAR_DEPTH_STENCIL)
+        return luaEnumString_GameClearFlags_CLEAR_DEPTH_STENCIL;
+    if (e == Game::CLEAR_COLOR_DEPTH_STENCIL)
+        return luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH_STENCIL;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Game::ClearFlags.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_GameClearFlags.h

@@ -0,0 +1,15 @@
+#ifndef LUA_GAMECLEARFLAGS_H_
+#define LUA_GAMECLEARFLAGS_H_
+
+#include "Game.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Game::ClearFlags.
+Game::ClearFlags lua_enumFromString_GameClearFlags(const char* s);
+const char* lua_stringFromEnum_GameClearFlags(Game::ClearFlags e);
+
+}
+
+#endif

+ 38 - 0
gameplay/src/lua/lua_GameState.cpp

@@ -0,0 +1,38 @@
+#include "Base.h"
+#include "lua_GameState.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_GameState_UNINITIALIZED = "UNINITIALIZED";
+static const char* luaEnumString_GameState_RUNNING = "RUNNING";
+static const char* luaEnumString_GameState_PAUSED = "PAUSED";
+
+Game::State lua_enumFromString_GameState(const char* s)
+{
+    if (strcmp(s, luaEnumString_GameState_UNINITIALIZED) == 0)
+        return Game::UNINITIALIZED;
+    if (strcmp(s, luaEnumString_GameState_RUNNING) == 0)
+        return Game::RUNNING;
+    if (strcmp(s, luaEnumString_GameState_PAUSED) == 0)
+        return Game::PAUSED;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Game::State.", s);
+    return Game::UNINITIALIZED;
+}
+
+const char* lua_stringFromEnum_GameState(Game::State e)
+{
+    if (e == Game::UNINITIALIZED)
+        return luaEnumString_GameState_UNINITIALIZED;
+    if (e == Game::RUNNING)
+        return luaEnumString_GameState_RUNNING;
+    if (e == Game::PAUSED)
+        return luaEnumString_GameState_PAUSED;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Game::State.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_GameState.h

@@ -0,0 +1,15 @@
+#ifndef LUA_GAMESTATE_H_
+#define LUA_GAMESTATE_H_
+
+#include "Game.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Game::State.
+Game::State lua_enumFromString_GameState(const char* s);
+const char* lua_stringFromEnum_GameState(Game::State e);
+
+}
+
+#endif

+ 4 - 2
gameplay/src/lua/lua_Gamepad.cpp

@@ -1,8 +1,10 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Gamepad.h"
 #include "lua_Gamepad.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Game.h"
+#include "Gamepad.h"
+#include "lua_GamepadButtonState.h"
 
 namespace gameplay
 {

+ 33 - 0
gameplay/src/lua/lua_GamepadButtonState.cpp

@@ -0,0 +1,33 @@
+#include "Base.h"
+#include "lua_GamepadButtonState.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_GamepadButtonState_BUTTON_PRESSED = "BUTTON_PRESSED";
+static const char* luaEnumString_GamepadButtonState_BUTTON_RELEASED = "BUTTON_RELEASED";
+
+Gamepad::ButtonState lua_enumFromString_GamepadButtonState(const char* s)
+{
+    if (strcmp(s, luaEnumString_GamepadButtonState_BUTTON_PRESSED) == 0)
+        return Gamepad::BUTTON_PRESSED;
+    if (strcmp(s, luaEnumString_GamepadButtonState_BUTTON_RELEASED) == 0)
+        return Gamepad::BUTTON_RELEASED;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Gamepad::ButtonState.", s);
+    return Gamepad::BUTTON_PRESSED;
+}
+
+const char* lua_stringFromEnum_GamepadButtonState(Gamepad::ButtonState e)
+{
+    if (e == Gamepad::BUTTON_PRESSED)
+        return luaEnumString_GamepadButtonState_BUTTON_PRESSED;
+    if (e == Gamepad::BUTTON_RELEASED)
+        return luaEnumString_GamepadButtonState_BUTTON_RELEASED;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Gamepad::ButtonState.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_GamepadButtonState.h

@@ -0,0 +1,15 @@
+#ifndef LUA_GAMEPADBUTTONSTATE_H_
+#define LUA_GAMEPADBUTTONSTATE_H_
+
+#include "Gamepad.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Gamepad::ButtonState.
+Gamepad::ButtonState lua_enumFromString_GamepadButtonState(const char* s);
+const char* lua_stringFromEnum_GamepadButtonState(Gamepad::ButtonState e);
+
+}
+
+#endif

+ 33 - 0
gameplay/src/lua/lua_GamepadGamepadEvent.cpp

@@ -0,0 +1,33 @@
+#include "Base.h"
+#include "lua_GamepadGamepadEvent.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_GamepadGamepadEvent_ATTACHED_EVENT = "ATTACHED_EVENT";
+static const char* luaEnumString_GamepadGamepadEvent_DETACHED_EVENT = "DETACHED_EVENT";
+
+Gamepad::GamepadEvent lua_enumFromString_GamepadGamepadEvent(const char* s)
+{
+    if (strcmp(s, luaEnumString_GamepadGamepadEvent_ATTACHED_EVENT) == 0)
+        return Gamepad::ATTACHED_EVENT;
+    if (strcmp(s, luaEnumString_GamepadGamepadEvent_DETACHED_EVENT) == 0)
+        return Gamepad::DETACHED_EVENT;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Gamepad::GamepadEvent.", s);
+    return Gamepad::ATTACHED_EVENT;
+}
+
+const char* lua_stringFromEnum_GamepadGamepadEvent(Gamepad::GamepadEvent e)
+{
+    if (e == Gamepad::ATTACHED_EVENT)
+        return luaEnumString_GamepadGamepadEvent_ATTACHED_EVENT;
+    if (e == Gamepad::DETACHED_EVENT)
+        return luaEnumString_GamepadGamepadEvent_DETACHED_EVENT;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Gamepad::GamepadEvent.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_GamepadGamepadEvent.h

@@ -0,0 +1,15 @@
+#ifndef LUA_GAMEPADGAMEPADEVENT_H_
+#define LUA_GAMEPADGAMEPADEVENT_H_
+
+#include "Gamepad.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Gamepad::GamepadEvent.
+Gamepad::GamepadEvent lua_enumFromString_GamepadGamepadEvent(const char* s);
+const char* lua_stringFromEnum_GamepadGamepadEvent(Gamepad::GamepadEvent e);
+
+}
+
+#endif

+ 6 - 2431
gameplay/src/lua/lua_Global.cpp

@@ -767,7 +767,9 @@ int lua____al_error_code(lua_State* state)
         ALenum result = __al_error_code;
 
         // Push the return value onto the stack.
-        
+        GP_WARN("Attempting to return value with unrecognized type ALenum as an unsigned integer.");
+        lua_pushunsigned(state, result);
+
         return 1;
     }
 }
@@ -795,7 +797,9 @@ int lua____gl_error_code(lua_State* state)
         GLenum result = __gl_error_code;
 
         // Push the return value onto the stack.
-        
+        GP_WARN("Attempting to return value with unrecognized type GLenum as an unsigned integer.");
+        lua_pushunsigned(state, result);
+
         return 1;
     }
 }
@@ -838,2435 +842,6 @@ int lua__printError(lua_State* state)
 
 static const char* enumStringEmpty = "";
 
-static const char* luaEnumString_AnimationClipListenerEventType_DEFAULT = "DEFAULT";
-static const char* luaEnumString_AnimationClipListenerEventType_BEGIN = "BEGIN";
-static const char* luaEnumString_AnimationClipListenerEventType_END = "END";
-
-AnimationClip::Listener::EventType lua_enumFromString_AnimationClipListenerEventType(const char* s)
-{
-    if (strcmp(s, luaEnumString_AnimationClipListenerEventType_DEFAULT) == 0)
-        return AnimationClip::Listener::DEFAULT;
-    if (strcmp(s, luaEnumString_AnimationClipListenerEventType_BEGIN) == 0)
-        return AnimationClip::Listener::BEGIN;
-    if (strcmp(s, luaEnumString_AnimationClipListenerEventType_END) == 0)
-        return AnimationClip::Listener::END;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration AnimationClip::Listener::EventType.", s);
-    return AnimationClip::Listener::DEFAULT;
-}
-
-const char* lua_stringFromEnum_AnimationClipListenerEventType(AnimationClip::Listener::EventType e)
-{
-    if (e == AnimationClip::Listener::DEFAULT)
-        return luaEnumString_AnimationClipListenerEventType_DEFAULT;
-    if (e == AnimationClip::Listener::BEGIN)
-        return luaEnumString_AnimationClipListenerEventType_BEGIN;
-    if (e == AnimationClip::Listener::END)
-        return luaEnumString_AnimationClipListenerEventType_END;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration AnimationClip::Listener::EventType.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_AudioSourceState_INITIAL = "INITIAL";
-static const char* luaEnumString_AudioSourceState_PLAYING = "PLAYING";
-static const char* luaEnumString_AudioSourceState_PAUSED = "PAUSED";
-static const char* luaEnumString_AudioSourceState_STOPPED = "STOPPED";
-
-AudioSource::State lua_enumFromString_AudioSourceState(const char* s)
-{
-    if (strcmp(s, luaEnumString_AudioSourceState_INITIAL) == 0)
-        return AudioSource::INITIAL;
-    if (strcmp(s, luaEnumString_AudioSourceState_PLAYING) == 0)
-        return AudioSource::PLAYING;
-    if (strcmp(s, luaEnumString_AudioSourceState_PAUSED) == 0)
-        return AudioSource::PAUSED;
-    if (strcmp(s, luaEnumString_AudioSourceState_STOPPED) == 0)
-        return AudioSource::STOPPED;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration AudioSource::State.", s);
-    return AudioSource::INITIAL;
-}
-
-const char* lua_stringFromEnum_AudioSourceState(AudioSource::State e)
-{
-    if (e == AudioSource::INITIAL)
-        return luaEnumString_AudioSourceState_INITIAL;
-    if (e == AudioSource::PLAYING)
-        return luaEnumString_AudioSourceState_PLAYING;
-    if (e == AudioSource::PAUSED)
-        return luaEnumString_AudioSourceState_PAUSED;
-    if (e == AudioSource::STOPPED)
-        return luaEnumString_AudioSourceState_STOPPED;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration AudioSource::State.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_CameraType_PERSPECTIVE = "PERSPECTIVE";
-static const char* luaEnumString_CameraType_ORTHOGRAPHIC = "ORTHOGRAPHIC";
-
-Camera::Type lua_enumFromString_CameraType(const char* s)
-{
-    if (strcmp(s, luaEnumString_CameraType_PERSPECTIVE) == 0)
-        return Camera::PERSPECTIVE;
-    if (strcmp(s, luaEnumString_CameraType_ORTHOGRAPHIC) == 0)
-        return Camera::ORTHOGRAPHIC;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Camera::Type.", s);
-    return Camera::PERSPECTIVE;
-}
-
-const char* lua_stringFromEnum_CameraType(Camera::Type e)
-{
-    if (e == Camera::PERSPECTIVE)
-        return luaEnumString_CameraType_PERSPECTIVE;
-    if (e == Camera::ORTHOGRAPHIC)
-        return luaEnumString_CameraType_ORTHOGRAPHIC;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Camera::Type.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_ContainerScroll_SCROLL_NONE = "SCROLL_NONE";
-static const char* luaEnumString_ContainerScroll_SCROLL_HORIZONTAL = "SCROLL_HORIZONTAL";
-static const char* luaEnumString_ContainerScroll_SCROLL_VERTICAL = "SCROLL_VERTICAL";
-static const char* luaEnumString_ContainerScroll_SCROLL_BOTH = "SCROLL_BOTH";
-
-Container::Scroll lua_enumFromString_ContainerScroll(const char* s)
-{
-    if (strcmp(s, luaEnumString_ContainerScroll_SCROLL_NONE) == 0)
-        return Container::SCROLL_NONE;
-    if (strcmp(s, luaEnumString_ContainerScroll_SCROLL_HORIZONTAL) == 0)
-        return Container::SCROLL_HORIZONTAL;
-    if (strcmp(s, luaEnumString_ContainerScroll_SCROLL_VERTICAL) == 0)
-        return Container::SCROLL_VERTICAL;
-    if (strcmp(s, luaEnumString_ContainerScroll_SCROLL_BOTH) == 0)
-        return Container::SCROLL_BOTH;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Container::Scroll.", s);
-    return Container::SCROLL_NONE;
-}
-
-const char* lua_stringFromEnum_ContainerScroll(Container::Scroll e)
-{
-    if (e == Container::SCROLL_NONE)
-        return luaEnumString_ContainerScroll_SCROLL_NONE;
-    if (e == Container::SCROLL_HORIZONTAL)
-        return luaEnumString_ContainerScroll_SCROLL_HORIZONTAL;
-    if (e == Container::SCROLL_VERTICAL)
-        return luaEnumString_ContainerScroll_SCROLL_VERTICAL;
-    if (e == Container::SCROLL_BOTH)
-        return luaEnumString_ContainerScroll_SCROLL_BOTH;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Container::Scroll.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_ControlAlignment_ALIGN_LEFT = "ALIGN_LEFT";
-static const char* luaEnumString_ControlAlignment_ALIGN_HCENTER = "ALIGN_HCENTER";
-static const char* luaEnumString_ControlAlignment_ALIGN_RIGHT = "ALIGN_RIGHT";
-static const char* luaEnumString_ControlAlignment_ALIGN_TOP = "ALIGN_TOP";
-static const char* luaEnumString_ControlAlignment_ALIGN_VCENTER = "ALIGN_VCENTER";
-static const char* luaEnumString_ControlAlignment_ALIGN_BOTTOM = "ALIGN_BOTTOM";
-static const char* luaEnumString_ControlAlignment_ALIGN_TOP_LEFT = "ALIGN_TOP_LEFT";
-static const char* luaEnumString_ControlAlignment_ALIGN_VCENTER_LEFT = "ALIGN_VCENTER_LEFT";
-static const char* luaEnumString_ControlAlignment_ALIGN_BOTTOM_LEFT = "ALIGN_BOTTOM_LEFT";
-static const char* luaEnumString_ControlAlignment_ALIGN_TOP_HCENTER = "ALIGN_TOP_HCENTER";
-static const char* luaEnumString_ControlAlignment_ALIGN_VCENTER_HCENTER = "ALIGN_VCENTER_HCENTER";
-static const char* luaEnumString_ControlAlignment_ALIGN_BOTTOM_HCENTER = "ALIGN_BOTTOM_HCENTER";
-static const char* luaEnumString_ControlAlignment_ALIGN_TOP_RIGHT = "ALIGN_TOP_RIGHT";
-static const char* luaEnumString_ControlAlignment_ALIGN_VCENTER_RIGHT = "ALIGN_VCENTER_RIGHT";
-static const char* luaEnumString_ControlAlignment_ALIGN_BOTTOM_RIGHT = "ALIGN_BOTTOM_RIGHT";
-
-Control::Alignment lua_enumFromString_ControlAlignment(const char* s)
-{
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_LEFT) == 0)
-        return Control::ALIGN_LEFT;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_HCENTER) == 0)
-        return Control::ALIGN_HCENTER;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_RIGHT) == 0)
-        return Control::ALIGN_RIGHT;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_TOP) == 0)
-        return Control::ALIGN_TOP;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_VCENTER) == 0)
-        return Control::ALIGN_VCENTER;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_BOTTOM) == 0)
-        return Control::ALIGN_BOTTOM;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_TOP_LEFT) == 0)
-        return Control::ALIGN_TOP_LEFT;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_VCENTER_LEFT) == 0)
-        return Control::ALIGN_VCENTER_LEFT;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_BOTTOM_LEFT) == 0)
-        return Control::ALIGN_BOTTOM_LEFT;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_TOP_HCENTER) == 0)
-        return Control::ALIGN_TOP_HCENTER;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_VCENTER_HCENTER) == 0)
-        return Control::ALIGN_VCENTER_HCENTER;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_BOTTOM_HCENTER) == 0)
-        return Control::ALIGN_BOTTOM_HCENTER;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_TOP_RIGHT) == 0)
-        return Control::ALIGN_TOP_RIGHT;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_VCENTER_RIGHT) == 0)
-        return Control::ALIGN_VCENTER_RIGHT;
-    if (strcmp(s, luaEnumString_ControlAlignment_ALIGN_BOTTOM_RIGHT) == 0)
-        return Control::ALIGN_BOTTOM_RIGHT;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Control::Alignment.", s);
-    return Control::ALIGN_LEFT;
-}
-
-const char* lua_stringFromEnum_ControlAlignment(Control::Alignment e)
-{
-    if (e == Control::ALIGN_LEFT)
-        return luaEnumString_ControlAlignment_ALIGN_LEFT;
-    if (e == Control::ALIGN_HCENTER)
-        return luaEnumString_ControlAlignment_ALIGN_HCENTER;
-    if (e == Control::ALIGN_RIGHT)
-        return luaEnumString_ControlAlignment_ALIGN_RIGHT;
-    if (e == Control::ALIGN_TOP)
-        return luaEnumString_ControlAlignment_ALIGN_TOP;
-    if (e == Control::ALIGN_VCENTER)
-        return luaEnumString_ControlAlignment_ALIGN_VCENTER;
-    if (e == Control::ALIGN_BOTTOM)
-        return luaEnumString_ControlAlignment_ALIGN_BOTTOM;
-    if (e == Control::ALIGN_TOP_LEFT)
-        return luaEnumString_ControlAlignment_ALIGN_TOP_LEFT;
-    if (e == Control::ALIGN_VCENTER_LEFT)
-        return luaEnumString_ControlAlignment_ALIGN_VCENTER_LEFT;
-    if (e == Control::ALIGN_BOTTOM_LEFT)
-        return luaEnumString_ControlAlignment_ALIGN_BOTTOM_LEFT;
-    if (e == Control::ALIGN_TOP_HCENTER)
-        return luaEnumString_ControlAlignment_ALIGN_TOP_HCENTER;
-    if (e == Control::ALIGN_VCENTER_HCENTER)
-        return luaEnumString_ControlAlignment_ALIGN_VCENTER_HCENTER;
-    if (e == Control::ALIGN_BOTTOM_HCENTER)
-        return luaEnumString_ControlAlignment_ALIGN_BOTTOM_HCENTER;
-    if (e == Control::ALIGN_TOP_RIGHT)
-        return luaEnumString_ControlAlignment_ALIGN_TOP_RIGHT;
-    if (e == Control::ALIGN_VCENTER_RIGHT)
-        return luaEnumString_ControlAlignment_ALIGN_VCENTER_RIGHT;
-    if (e == Control::ALIGN_BOTTOM_RIGHT)
-        return luaEnumString_ControlAlignment_ALIGN_BOTTOM_RIGHT;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Control::Alignment.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_ControlListenerEventType_PRESS = "PRESS";
-static const char* luaEnumString_ControlListenerEventType_RELEASE = "RELEASE";
-static const char* luaEnumString_ControlListenerEventType_CLICK = "CLICK";
-static const char* luaEnumString_ControlListenerEventType_VALUE_CHANGED = "VALUE_CHANGED";
-static const char* luaEnumString_ControlListenerEventType_TEXT_CHANGED = "TEXT_CHANGED";
-static const char* luaEnumString_ControlListenerEventType_MIDDLE_CLICK = "MIDDLE_CLICK";
-static const char* luaEnumString_ControlListenerEventType_RIGHT_CLICK = "RIGHT_CLICK";
-
-Control::Listener::EventType lua_enumFromString_ControlListenerEventType(const char* s)
-{
-    if (strcmp(s, luaEnumString_ControlListenerEventType_PRESS) == 0)
-        return Control::Listener::PRESS;
-    if (strcmp(s, luaEnumString_ControlListenerEventType_RELEASE) == 0)
-        return Control::Listener::RELEASE;
-    if (strcmp(s, luaEnumString_ControlListenerEventType_CLICK) == 0)
-        return Control::Listener::CLICK;
-    if (strcmp(s, luaEnumString_ControlListenerEventType_VALUE_CHANGED) == 0)
-        return Control::Listener::VALUE_CHANGED;
-    if (strcmp(s, luaEnumString_ControlListenerEventType_TEXT_CHANGED) == 0)
-        return Control::Listener::TEXT_CHANGED;
-    if (strcmp(s, luaEnumString_ControlListenerEventType_MIDDLE_CLICK) == 0)
-        return Control::Listener::MIDDLE_CLICK;
-    if (strcmp(s, luaEnumString_ControlListenerEventType_RIGHT_CLICK) == 0)
-        return Control::Listener::RIGHT_CLICK;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Control::Listener::EventType.", s);
-    return Control::Listener::PRESS;
-}
-
-const char* lua_stringFromEnum_ControlListenerEventType(Control::Listener::EventType e)
-{
-    if (e == Control::Listener::PRESS)
-        return luaEnumString_ControlListenerEventType_PRESS;
-    if (e == Control::Listener::RELEASE)
-        return luaEnumString_ControlListenerEventType_RELEASE;
-    if (e == Control::Listener::CLICK)
-        return luaEnumString_ControlListenerEventType_CLICK;
-    if (e == Control::Listener::VALUE_CHANGED)
-        return luaEnumString_ControlListenerEventType_VALUE_CHANGED;
-    if (e == Control::Listener::TEXT_CHANGED)
-        return luaEnumString_ControlListenerEventType_TEXT_CHANGED;
-    if (e == Control::Listener::MIDDLE_CLICK)
-        return luaEnumString_ControlListenerEventType_MIDDLE_CLICK;
-    if (e == Control::Listener::RIGHT_CLICK)
-        return luaEnumString_ControlListenerEventType_RIGHT_CLICK;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Control::Listener::EventType.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_ControlState_NORMAL = "NORMAL";
-static const char* luaEnumString_ControlState_FOCUS = "FOCUS";
-static const char* luaEnumString_ControlState_ACTIVE = "ACTIVE";
-static const char* luaEnumString_ControlState_DISABLED = "DISABLED";
-
-Control::State lua_enumFromString_ControlState(const char* s)
-{
-    if (strcmp(s, luaEnumString_ControlState_NORMAL) == 0)
-        return Control::NORMAL;
-    if (strcmp(s, luaEnumString_ControlState_FOCUS) == 0)
-        return Control::FOCUS;
-    if (strcmp(s, luaEnumString_ControlState_ACTIVE) == 0)
-        return Control::ACTIVE;
-    if (strcmp(s, luaEnumString_ControlState_DISABLED) == 0)
-        return Control::DISABLED;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Control::State.", s);
-    return Control::NORMAL;
-}
-
-const char* lua_stringFromEnum_ControlState(Control::State e)
-{
-    if (e == Control::NORMAL)
-        return luaEnumString_ControlState_NORMAL;
-    if (e == Control::FOCUS)
-        return luaEnumString_ControlState_FOCUS;
-    if (e == Control::ACTIVE)
-        return luaEnumString_ControlState_ACTIVE;
-    if (e == Control::DISABLED)
-        return luaEnumString_ControlState_DISABLED;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Control::State.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_CurveInterpolationType_BEZIER = "BEZIER";
-static const char* luaEnumString_CurveInterpolationType_BSPLINE = "BSPLINE";
-static const char* luaEnumString_CurveInterpolationType_FLAT = "FLAT";
-static const char* luaEnumString_CurveInterpolationType_HERMITE = "HERMITE";
-static const char* luaEnumString_CurveInterpolationType_LINEAR = "LINEAR";
-static const char* luaEnumString_CurveInterpolationType_SMOOTH = "SMOOTH";
-static const char* luaEnumString_CurveInterpolationType_STEP = "STEP";
-static const char* luaEnumString_CurveInterpolationType_QUADRATIC_IN = "QUADRATIC_IN";
-static const char* luaEnumString_CurveInterpolationType_QUADRATIC_OUT = "QUADRATIC_OUT";
-static const char* luaEnumString_CurveInterpolationType_QUADRATIC_IN_OUT = "QUADRATIC_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_QUADRATIC_OUT_IN = "QUADRATIC_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_CUBIC_IN = "CUBIC_IN";
-static const char* luaEnumString_CurveInterpolationType_CUBIC_OUT = "CUBIC_OUT";
-static const char* luaEnumString_CurveInterpolationType_CUBIC_IN_OUT = "CUBIC_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_CUBIC_OUT_IN = "CUBIC_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_QUARTIC_IN = "QUARTIC_IN";
-static const char* luaEnumString_CurveInterpolationType_QUARTIC_OUT = "QUARTIC_OUT";
-static const char* luaEnumString_CurveInterpolationType_QUARTIC_IN_OUT = "QUARTIC_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_QUARTIC_OUT_IN = "QUARTIC_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_QUINTIC_IN = "QUINTIC_IN";
-static const char* luaEnumString_CurveInterpolationType_QUINTIC_OUT = "QUINTIC_OUT";
-static const char* luaEnumString_CurveInterpolationType_QUINTIC_IN_OUT = "QUINTIC_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_QUINTIC_OUT_IN = "QUINTIC_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_SINE_IN = "SINE_IN";
-static const char* luaEnumString_CurveInterpolationType_SINE_OUT = "SINE_OUT";
-static const char* luaEnumString_CurveInterpolationType_SINE_IN_OUT = "SINE_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_SINE_OUT_IN = "SINE_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_EXPONENTIAL_IN = "EXPONENTIAL_IN";
-static const char* luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT = "EXPONENTIAL_OUT";
-static const char* luaEnumString_CurveInterpolationType_EXPONENTIAL_IN_OUT = "EXPONENTIAL_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT_IN = "EXPONENTIAL_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_CIRCULAR_IN = "CIRCULAR_IN";
-static const char* luaEnumString_CurveInterpolationType_CIRCULAR_OUT = "CIRCULAR_OUT";
-static const char* luaEnumString_CurveInterpolationType_CIRCULAR_IN_OUT = "CIRCULAR_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_CIRCULAR_OUT_IN = "CIRCULAR_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_ELASTIC_IN = "ELASTIC_IN";
-static const char* luaEnumString_CurveInterpolationType_ELASTIC_OUT = "ELASTIC_OUT";
-static const char* luaEnumString_CurveInterpolationType_ELASTIC_IN_OUT = "ELASTIC_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_ELASTIC_OUT_IN = "ELASTIC_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_OVERSHOOT_IN = "OVERSHOOT_IN";
-static const char* luaEnumString_CurveInterpolationType_OVERSHOOT_OUT = "OVERSHOOT_OUT";
-static const char* luaEnumString_CurveInterpolationType_OVERSHOOT_IN_OUT = "OVERSHOOT_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_OVERSHOOT_OUT_IN = "OVERSHOOT_OUT_IN";
-static const char* luaEnumString_CurveInterpolationType_BOUNCE_IN = "BOUNCE_IN";
-static const char* luaEnumString_CurveInterpolationType_BOUNCE_OUT = "BOUNCE_OUT";
-static const char* luaEnumString_CurveInterpolationType_BOUNCE_IN_OUT = "BOUNCE_IN_OUT";
-static const char* luaEnumString_CurveInterpolationType_BOUNCE_OUT_IN = "BOUNCE_OUT_IN";
-
-Curve::InterpolationType lua_enumFromString_CurveInterpolationType(const char* s)
-{
-    if (strcmp(s, luaEnumString_CurveInterpolationType_BEZIER) == 0)
-        return Curve::BEZIER;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_BSPLINE) == 0)
-        return Curve::BSPLINE;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_FLAT) == 0)
-        return Curve::FLAT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_HERMITE) == 0)
-        return Curve::HERMITE;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_LINEAR) == 0)
-        return Curve::LINEAR;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_SMOOTH) == 0)
-        return Curve::SMOOTH;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_STEP) == 0)
-        return Curve::STEP;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUADRATIC_IN) == 0)
-        return Curve::QUADRATIC_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUADRATIC_OUT) == 0)
-        return Curve::QUADRATIC_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUADRATIC_IN_OUT) == 0)
-        return Curve::QUADRATIC_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUADRATIC_OUT_IN) == 0)
-        return Curve::QUADRATIC_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_CUBIC_IN) == 0)
-        return Curve::CUBIC_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_CUBIC_OUT) == 0)
-        return Curve::CUBIC_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_CUBIC_IN_OUT) == 0)
-        return Curve::CUBIC_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_CUBIC_OUT_IN) == 0)
-        return Curve::CUBIC_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUARTIC_IN) == 0)
-        return Curve::QUARTIC_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUARTIC_OUT) == 0)
-        return Curve::QUARTIC_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUARTIC_IN_OUT) == 0)
-        return Curve::QUARTIC_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUARTIC_OUT_IN) == 0)
-        return Curve::QUARTIC_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUINTIC_IN) == 0)
-        return Curve::QUINTIC_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUINTIC_OUT) == 0)
-        return Curve::QUINTIC_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUINTIC_IN_OUT) == 0)
-        return Curve::QUINTIC_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_QUINTIC_OUT_IN) == 0)
-        return Curve::QUINTIC_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_SINE_IN) == 0)
-        return Curve::SINE_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_SINE_OUT) == 0)
-        return Curve::SINE_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_SINE_IN_OUT) == 0)
-        return Curve::SINE_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_SINE_OUT_IN) == 0)
-        return Curve::SINE_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_EXPONENTIAL_IN) == 0)
-        return Curve::EXPONENTIAL_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT) == 0)
-        return Curve::EXPONENTIAL_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_EXPONENTIAL_IN_OUT) == 0)
-        return Curve::EXPONENTIAL_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT_IN) == 0)
-        return Curve::EXPONENTIAL_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_CIRCULAR_IN) == 0)
-        return Curve::CIRCULAR_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_CIRCULAR_OUT) == 0)
-        return Curve::CIRCULAR_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_CIRCULAR_IN_OUT) == 0)
-        return Curve::CIRCULAR_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_CIRCULAR_OUT_IN) == 0)
-        return Curve::CIRCULAR_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_ELASTIC_IN) == 0)
-        return Curve::ELASTIC_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_ELASTIC_OUT) == 0)
-        return Curve::ELASTIC_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_ELASTIC_IN_OUT) == 0)
-        return Curve::ELASTIC_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_ELASTIC_OUT_IN) == 0)
-        return Curve::ELASTIC_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_OVERSHOOT_IN) == 0)
-        return Curve::OVERSHOOT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_OVERSHOOT_OUT) == 0)
-        return Curve::OVERSHOOT_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_OVERSHOOT_IN_OUT) == 0)
-        return Curve::OVERSHOOT_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_OVERSHOOT_OUT_IN) == 0)
-        return Curve::OVERSHOOT_OUT_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_BOUNCE_IN) == 0)
-        return Curve::BOUNCE_IN;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_BOUNCE_OUT) == 0)
-        return Curve::BOUNCE_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_BOUNCE_IN_OUT) == 0)
-        return Curve::BOUNCE_IN_OUT;
-    if (strcmp(s, luaEnumString_CurveInterpolationType_BOUNCE_OUT_IN) == 0)
-        return Curve::BOUNCE_OUT_IN;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Curve::InterpolationType.", s);
-    return Curve::BEZIER;
-}
-
-const char* lua_stringFromEnum_CurveInterpolationType(Curve::InterpolationType e)
-{
-    if (e == Curve::BEZIER)
-        return luaEnumString_CurveInterpolationType_BEZIER;
-    if (e == Curve::BSPLINE)
-        return luaEnumString_CurveInterpolationType_BSPLINE;
-    if (e == Curve::FLAT)
-        return luaEnumString_CurveInterpolationType_FLAT;
-    if (e == Curve::HERMITE)
-        return luaEnumString_CurveInterpolationType_HERMITE;
-    if (e == Curve::LINEAR)
-        return luaEnumString_CurveInterpolationType_LINEAR;
-    if (e == Curve::SMOOTH)
-        return luaEnumString_CurveInterpolationType_SMOOTH;
-    if (e == Curve::STEP)
-        return luaEnumString_CurveInterpolationType_STEP;
-    if (e == Curve::QUADRATIC_IN)
-        return luaEnumString_CurveInterpolationType_QUADRATIC_IN;
-    if (e == Curve::QUADRATIC_OUT)
-        return luaEnumString_CurveInterpolationType_QUADRATIC_OUT;
-    if (e == Curve::QUADRATIC_IN_OUT)
-        return luaEnumString_CurveInterpolationType_QUADRATIC_IN_OUT;
-    if (e == Curve::QUADRATIC_OUT_IN)
-        return luaEnumString_CurveInterpolationType_QUADRATIC_OUT_IN;
-    if (e == Curve::CUBIC_IN)
-        return luaEnumString_CurveInterpolationType_CUBIC_IN;
-    if (e == Curve::CUBIC_OUT)
-        return luaEnumString_CurveInterpolationType_CUBIC_OUT;
-    if (e == Curve::CUBIC_IN_OUT)
-        return luaEnumString_CurveInterpolationType_CUBIC_IN_OUT;
-    if (e == Curve::CUBIC_OUT_IN)
-        return luaEnumString_CurveInterpolationType_CUBIC_OUT_IN;
-    if (e == Curve::QUARTIC_IN)
-        return luaEnumString_CurveInterpolationType_QUARTIC_IN;
-    if (e == Curve::QUARTIC_OUT)
-        return luaEnumString_CurveInterpolationType_QUARTIC_OUT;
-    if (e == Curve::QUARTIC_IN_OUT)
-        return luaEnumString_CurveInterpolationType_QUARTIC_IN_OUT;
-    if (e == Curve::QUARTIC_OUT_IN)
-        return luaEnumString_CurveInterpolationType_QUARTIC_OUT_IN;
-    if (e == Curve::QUINTIC_IN)
-        return luaEnumString_CurveInterpolationType_QUINTIC_IN;
-    if (e == Curve::QUINTIC_OUT)
-        return luaEnumString_CurveInterpolationType_QUINTIC_OUT;
-    if (e == Curve::QUINTIC_IN_OUT)
-        return luaEnumString_CurveInterpolationType_QUINTIC_IN_OUT;
-    if (e == Curve::QUINTIC_OUT_IN)
-        return luaEnumString_CurveInterpolationType_QUINTIC_OUT_IN;
-    if (e == Curve::SINE_IN)
-        return luaEnumString_CurveInterpolationType_SINE_IN;
-    if (e == Curve::SINE_OUT)
-        return luaEnumString_CurveInterpolationType_SINE_OUT;
-    if (e == Curve::SINE_IN_OUT)
-        return luaEnumString_CurveInterpolationType_SINE_IN_OUT;
-    if (e == Curve::SINE_OUT_IN)
-        return luaEnumString_CurveInterpolationType_SINE_OUT_IN;
-    if (e == Curve::EXPONENTIAL_IN)
-        return luaEnumString_CurveInterpolationType_EXPONENTIAL_IN;
-    if (e == Curve::EXPONENTIAL_OUT)
-        return luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT;
-    if (e == Curve::EXPONENTIAL_IN_OUT)
-        return luaEnumString_CurveInterpolationType_EXPONENTIAL_IN_OUT;
-    if (e == Curve::EXPONENTIAL_OUT_IN)
-        return luaEnumString_CurveInterpolationType_EXPONENTIAL_OUT_IN;
-    if (e == Curve::CIRCULAR_IN)
-        return luaEnumString_CurveInterpolationType_CIRCULAR_IN;
-    if (e == Curve::CIRCULAR_OUT)
-        return luaEnumString_CurveInterpolationType_CIRCULAR_OUT;
-    if (e == Curve::CIRCULAR_IN_OUT)
-        return luaEnumString_CurveInterpolationType_CIRCULAR_IN_OUT;
-    if (e == Curve::CIRCULAR_OUT_IN)
-        return luaEnumString_CurveInterpolationType_CIRCULAR_OUT_IN;
-    if (e == Curve::ELASTIC_IN)
-        return luaEnumString_CurveInterpolationType_ELASTIC_IN;
-    if (e == Curve::ELASTIC_OUT)
-        return luaEnumString_CurveInterpolationType_ELASTIC_OUT;
-    if (e == Curve::ELASTIC_IN_OUT)
-        return luaEnumString_CurveInterpolationType_ELASTIC_IN_OUT;
-    if (e == Curve::ELASTIC_OUT_IN)
-        return luaEnumString_CurveInterpolationType_ELASTIC_OUT_IN;
-    if (e == Curve::OVERSHOOT_IN)
-        return luaEnumString_CurveInterpolationType_OVERSHOOT_IN;
-    if (e == Curve::OVERSHOOT_OUT)
-        return luaEnumString_CurveInterpolationType_OVERSHOOT_OUT;
-    if (e == Curve::OVERSHOOT_IN_OUT)
-        return luaEnumString_CurveInterpolationType_OVERSHOOT_IN_OUT;
-    if (e == Curve::OVERSHOOT_OUT_IN)
-        return luaEnumString_CurveInterpolationType_OVERSHOOT_OUT_IN;
-    if (e == Curve::BOUNCE_IN)
-        return luaEnumString_CurveInterpolationType_BOUNCE_IN;
-    if (e == Curve::BOUNCE_OUT)
-        return luaEnumString_CurveInterpolationType_BOUNCE_OUT;
-    if (e == Curve::BOUNCE_IN_OUT)
-        return luaEnumString_CurveInterpolationType_BOUNCE_IN_OUT;
-    if (e == Curve::BOUNCE_OUT_IN)
-        return luaEnumString_CurveInterpolationType_BOUNCE_OUT_IN;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Curve::InterpolationType.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_DepthStencilTargetFormat_DEPTH = "DEPTH";
-static const char* luaEnumString_DepthStencilTargetFormat_DEPTH_STENCIL = "DEPTH_STENCIL";
-
-DepthStencilTarget::Format lua_enumFromString_DepthStencilTargetFormat(const char* s)
-{
-    if (strcmp(s, luaEnumString_DepthStencilTargetFormat_DEPTH) == 0)
-        return DepthStencilTarget::DEPTH;
-    if (strcmp(s, luaEnumString_DepthStencilTargetFormat_DEPTH_STENCIL) == 0)
-        return DepthStencilTarget::DEPTH_STENCIL;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration DepthStencilTarget::Format.", s);
-    return DepthStencilTarget::DEPTH;
-}
-
-const char* lua_stringFromEnum_DepthStencilTargetFormat(DepthStencilTarget::Format e)
-{
-    if (e == DepthStencilTarget::DEPTH)
-        return luaEnumString_DepthStencilTargetFormat_DEPTH;
-    if (e == DepthStencilTarget::DEPTH_STENCIL)
-        return luaEnumString_DepthStencilTargetFormat_DEPTH_STENCIL;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration DepthStencilTarget::Format.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_FontJustify_ALIGN_LEFT = "ALIGN_LEFT";
-static const char* luaEnumString_FontJustify_ALIGN_HCENTER = "ALIGN_HCENTER";
-static const char* luaEnumString_FontJustify_ALIGN_RIGHT = "ALIGN_RIGHT";
-static const char* luaEnumString_FontJustify_ALIGN_TOP = "ALIGN_TOP";
-static const char* luaEnumString_FontJustify_ALIGN_VCENTER = "ALIGN_VCENTER";
-static const char* luaEnumString_FontJustify_ALIGN_BOTTOM = "ALIGN_BOTTOM";
-static const char* luaEnumString_FontJustify_ALIGN_TOP_LEFT = "ALIGN_TOP_LEFT";
-static const char* luaEnumString_FontJustify_ALIGN_VCENTER_LEFT = "ALIGN_VCENTER_LEFT";
-static const char* luaEnumString_FontJustify_ALIGN_BOTTOM_LEFT = "ALIGN_BOTTOM_LEFT";
-static const char* luaEnumString_FontJustify_ALIGN_TOP_HCENTER = "ALIGN_TOP_HCENTER";
-static const char* luaEnumString_FontJustify_ALIGN_VCENTER_HCENTER = "ALIGN_VCENTER_HCENTER";
-static const char* luaEnumString_FontJustify_ALIGN_BOTTOM_HCENTER = "ALIGN_BOTTOM_HCENTER";
-static const char* luaEnumString_FontJustify_ALIGN_TOP_RIGHT = "ALIGN_TOP_RIGHT";
-static const char* luaEnumString_FontJustify_ALIGN_VCENTER_RIGHT = "ALIGN_VCENTER_RIGHT";
-static const char* luaEnumString_FontJustify_ALIGN_BOTTOM_RIGHT = "ALIGN_BOTTOM_RIGHT";
-
-Font::Justify lua_enumFromString_FontJustify(const char* s)
-{
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_LEFT) == 0)
-        return Font::ALIGN_LEFT;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_HCENTER) == 0)
-        return Font::ALIGN_HCENTER;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_RIGHT) == 0)
-        return Font::ALIGN_RIGHT;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_TOP) == 0)
-        return Font::ALIGN_TOP;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_VCENTER) == 0)
-        return Font::ALIGN_VCENTER;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_BOTTOM) == 0)
-        return Font::ALIGN_BOTTOM;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_TOP_LEFT) == 0)
-        return Font::ALIGN_TOP_LEFT;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_VCENTER_LEFT) == 0)
-        return Font::ALIGN_VCENTER_LEFT;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_BOTTOM_LEFT) == 0)
-        return Font::ALIGN_BOTTOM_LEFT;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_TOP_HCENTER) == 0)
-        return Font::ALIGN_TOP_HCENTER;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_VCENTER_HCENTER) == 0)
-        return Font::ALIGN_VCENTER_HCENTER;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_BOTTOM_HCENTER) == 0)
-        return Font::ALIGN_BOTTOM_HCENTER;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_TOP_RIGHT) == 0)
-        return Font::ALIGN_TOP_RIGHT;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_VCENTER_RIGHT) == 0)
-        return Font::ALIGN_VCENTER_RIGHT;
-    if (strcmp(s, luaEnumString_FontJustify_ALIGN_BOTTOM_RIGHT) == 0)
-        return Font::ALIGN_BOTTOM_RIGHT;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Font::Justify.", s);
-    return Font::ALIGN_LEFT;
-}
-
-const char* lua_stringFromEnum_FontJustify(Font::Justify e)
-{
-    if (e == Font::ALIGN_LEFT)
-        return luaEnumString_FontJustify_ALIGN_LEFT;
-    if (e == Font::ALIGN_HCENTER)
-        return luaEnumString_FontJustify_ALIGN_HCENTER;
-    if (e == Font::ALIGN_RIGHT)
-        return luaEnumString_FontJustify_ALIGN_RIGHT;
-    if (e == Font::ALIGN_TOP)
-        return luaEnumString_FontJustify_ALIGN_TOP;
-    if (e == Font::ALIGN_VCENTER)
-        return luaEnumString_FontJustify_ALIGN_VCENTER;
-    if (e == Font::ALIGN_BOTTOM)
-        return luaEnumString_FontJustify_ALIGN_BOTTOM;
-    if (e == Font::ALIGN_TOP_LEFT)
-        return luaEnumString_FontJustify_ALIGN_TOP_LEFT;
-    if (e == Font::ALIGN_VCENTER_LEFT)
-        return luaEnumString_FontJustify_ALIGN_VCENTER_LEFT;
-    if (e == Font::ALIGN_BOTTOM_LEFT)
-        return luaEnumString_FontJustify_ALIGN_BOTTOM_LEFT;
-    if (e == Font::ALIGN_TOP_HCENTER)
-        return luaEnumString_FontJustify_ALIGN_TOP_HCENTER;
-    if (e == Font::ALIGN_VCENTER_HCENTER)
-        return luaEnumString_FontJustify_ALIGN_VCENTER_HCENTER;
-    if (e == Font::ALIGN_BOTTOM_HCENTER)
-        return luaEnumString_FontJustify_ALIGN_BOTTOM_HCENTER;
-    if (e == Font::ALIGN_TOP_RIGHT)
-        return luaEnumString_FontJustify_ALIGN_TOP_RIGHT;
-    if (e == Font::ALIGN_VCENTER_RIGHT)
-        return luaEnumString_FontJustify_ALIGN_VCENTER_RIGHT;
-    if (e == Font::ALIGN_BOTTOM_RIGHT)
-        return luaEnumString_FontJustify_ALIGN_BOTTOM_RIGHT;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Font::Justify.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_FontStyle_PLAIN = "PLAIN";
-static const char* luaEnumString_FontStyle_BOLD = "BOLD";
-static const char* luaEnumString_FontStyle_ITALIC = "ITALIC";
-static const char* luaEnumString_FontStyle_BOLD_ITALIC = "BOLD_ITALIC";
-
-Font::Style lua_enumFromString_FontStyle(const char* s)
-{
-    if (strcmp(s, luaEnumString_FontStyle_PLAIN) == 0)
-        return Font::PLAIN;
-    if (strcmp(s, luaEnumString_FontStyle_BOLD) == 0)
-        return Font::BOLD;
-    if (strcmp(s, luaEnumString_FontStyle_ITALIC) == 0)
-        return Font::ITALIC;
-    if (strcmp(s, luaEnumString_FontStyle_BOLD_ITALIC) == 0)
-        return Font::BOLD_ITALIC;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Font::Style.", s);
-    return Font::PLAIN;
-}
-
-const char* lua_stringFromEnum_FontStyle(Font::Style e)
-{
-    if (e == Font::PLAIN)
-        return luaEnumString_FontStyle_PLAIN;
-    if (e == Font::BOLD)
-        return luaEnumString_FontStyle_BOLD;
-    if (e == Font::ITALIC)
-        return luaEnumString_FontStyle_ITALIC;
-    if (e == Font::BOLD_ITALIC)
-        return luaEnumString_FontStyle_BOLD_ITALIC;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Font::Style.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_GameClearFlags_CLEAR_COLOR = "CLEAR_COLOR";
-static const char* luaEnumString_GameClearFlags_CLEAR_DEPTH = "CLEAR_DEPTH";
-static const char* luaEnumString_GameClearFlags_CLEAR_STENCIL = "CLEAR_STENCIL";
-static const char* luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH = "CLEAR_COLOR_DEPTH";
-static const char* luaEnumString_GameClearFlags_CLEAR_COLOR_STENCIL = "CLEAR_COLOR_STENCIL";
-static const char* luaEnumString_GameClearFlags_CLEAR_DEPTH_STENCIL = "CLEAR_DEPTH_STENCIL";
-static const char* luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH_STENCIL = "CLEAR_COLOR_DEPTH_STENCIL";
-
-Game::ClearFlags lua_enumFromString_GameClearFlags(const char* s)
-{
-    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_COLOR) == 0)
-        return Game::CLEAR_COLOR;
-    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_DEPTH) == 0)
-        return Game::CLEAR_DEPTH;
-    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_STENCIL) == 0)
-        return Game::CLEAR_STENCIL;
-    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH) == 0)
-        return Game::CLEAR_COLOR_DEPTH;
-    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_COLOR_STENCIL) == 0)
-        return Game::CLEAR_COLOR_STENCIL;
-    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_DEPTH_STENCIL) == 0)
-        return Game::CLEAR_DEPTH_STENCIL;
-    if (strcmp(s, luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH_STENCIL) == 0)
-        return Game::CLEAR_COLOR_DEPTH_STENCIL;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Game::ClearFlags.", s);
-    return Game::CLEAR_COLOR;
-}
-
-const char* lua_stringFromEnum_GameClearFlags(Game::ClearFlags e)
-{
-    if (e == Game::CLEAR_COLOR)
-        return luaEnumString_GameClearFlags_CLEAR_COLOR;
-    if (e == Game::CLEAR_DEPTH)
-        return luaEnumString_GameClearFlags_CLEAR_DEPTH;
-    if (e == Game::CLEAR_STENCIL)
-        return luaEnumString_GameClearFlags_CLEAR_STENCIL;
-    if (e == Game::CLEAR_COLOR_DEPTH)
-        return luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH;
-    if (e == Game::CLEAR_COLOR_STENCIL)
-        return luaEnumString_GameClearFlags_CLEAR_COLOR_STENCIL;
-    if (e == Game::CLEAR_DEPTH_STENCIL)
-        return luaEnumString_GameClearFlags_CLEAR_DEPTH_STENCIL;
-    if (e == Game::CLEAR_COLOR_DEPTH_STENCIL)
-        return luaEnumString_GameClearFlags_CLEAR_COLOR_DEPTH_STENCIL;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Game::ClearFlags.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_GameState_UNINITIALIZED = "UNINITIALIZED";
-static const char* luaEnumString_GameState_RUNNING = "RUNNING";
-static const char* luaEnumString_GameState_PAUSED = "PAUSED";
-
-Game::State lua_enumFromString_GameState(const char* s)
-{
-    if (strcmp(s, luaEnumString_GameState_UNINITIALIZED) == 0)
-        return Game::UNINITIALIZED;
-    if (strcmp(s, luaEnumString_GameState_RUNNING) == 0)
-        return Game::RUNNING;
-    if (strcmp(s, luaEnumString_GameState_PAUSED) == 0)
-        return Game::PAUSED;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Game::State.", s);
-    return Game::UNINITIALIZED;
-}
-
-const char* lua_stringFromEnum_GameState(Game::State e)
-{
-    if (e == Game::UNINITIALIZED)
-        return luaEnumString_GameState_UNINITIALIZED;
-    if (e == Game::RUNNING)
-        return luaEnumString_GameState_RUNNING;
-    if (e == Game::PAUSED)
-        return luaEnumString_GameState_PAUSED;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Game::State.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_GamepadButtonState_BUTTON_PRESSED = "BUTTON_PRESSED";
-static const char* luaEnumString_GamepadButtonState_BUTTON_RELEASED = "BUTTON_RELEASED";
-
-Gamepad::ButtonState lua_enumFromString_GamepadButtonState(const char* s)
-{
-    if (strcmp(s, luaEnumString_GamepadButtonState_BUTTON_PRESSED) == 0)
-        return Gamepad::BUTTON_PRESSED;
-    if (strcmp(s, luaEnumString_GamepadButtonState_BUTTON_RELEASED) == 0)
-        return Gamepad::BUTTON_RELEASED;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Gamepad::ButtonState.", s);
-    return Gamepad::BUTTON_PRESSED;
-}
-
-const char* lua_stringFromEnum_GamepadButtonState(Gamepad::ButtonState e)
-{
-    if (e == Gamepad::BUTTON_PRESSED)
-        return luaEnumString_GamepadButtonState_BUTTON_PRESSED;
-    if (e == Gamepad::BUTTON_RELEASED)
-        return luaEnumString_GamepadButtonState_BUTTON_RELEASED;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Gamepad::ButtonState.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_GamepadGamepadEvent_ATTACHED_EVENT = "ATTACHED_EVENT";
-static const char* luaEnumString_GamepadGamepadEvent_DETACHED_EVENT = "DETACHED_EVENT";
-
-Gamepad::GamepadEvent lua_enumFromString_GamepadGamepadEvent(const char* s)
-{
-    if (strcmp(s, luaEnumString_GamepadGamepadEvent_ATTACHED_EVENT) == 0)
-        return Gamepad::ATTACHED_EVENT;
-    if (strcmp(s, luaEnumString_GamepadGamepadEvent_DETACHED_EVENT) == 0)
-        return Gamepad::DETACHED_EVENT;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Gamepad::GamepadEvent.", s);
-    return Gamepad::ATTACHED_EVENT;
-}
-
-const char* lua_stringFromEnum_GamepadGamepadEvent(Gamepad::GamepadEvent e)
-{
-    if (e == Gamepad::ATTACHED_EVENT)
-        return luaEnumString_GamepadGamepadEvent_ATTACHED_EVENT;
-    if (e == Gamepad::DETACHED_EVENT)
-        return luaEnumString_GamepadGamepadEvent_DETACHED_EVENT;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Gamepad::GamepadEvent.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_ImageFormat_RGB = "RGB";
-static const char* luaEnumString_ImageFormat_RGBA = "RGBA";
-
-Image::Format lua_enumFromString_ImageFormat(const char* s)
-{
-    if (strcmp(s, luaEnumString_ImageFormat_RGB) == 0)
-        return Image::RGB;
-    if (strcmp(s, luaEnumString_ImageFormat_RGBA) == 0)
-        return Image::RGBA;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Image::Format.", s);
-    return Image::RGB;
-}
-
-const char* lua_stringFromEnum_ImageFormat(Image::Format e)
-{
-    if (e == Image::RGB)
-        return luaEnumString_ImageFormat_RGB;
-    if (e == Image::RGBA)
-        return luaEnumString_ImageFormat_RGBA;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Image::Format.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_KeyboardKey_KEY_NONE = "KEY_NONE";
-static const char* luaEnumString_KeyboardKey_KEY_PAUSE = "KEY_PAUSE";
-static const char* luaEnumString_KeyboardKey_KEY_SCROLL_LOCK = "KEY_SCROLL_LOCK";
-static const char* luaEnumString_KeyboardKey_KEY_PRINT = "KEY_PRINT";
-static const char* luaEnumString_KeyboardKey_KEY_SYSREQ = "KEY_SYSREQ";
-static const char* luaEnumString_KeyboardKey_KEY_BREAK = "KEY_BREAK";
-static const char* luaEnumString_KeyboardKey_KEY_ESCAPE = "KEY_ESCAPE";
-static const char* luaEnumString_KeyboardKey_KEY_BACKSPACE = "KEY_BACKSPACE";
-static const char* luaEnumString_KeyboardKey_KEY_TAB = "KEY_TAB";
-static const char* luaEnumString_KeyboardKey_KEY_BACK_TAB = "KEY_BACK_TAB";
-static const char* luaEnumString_KeyboardKey_KEY_RETURN = "KEY_RETURN";
-static const char* luaEnumString_KeyboardKey_KEY_CAPS_LOCK = "KEY_CAPS_LOCK";
-static const char* luaEnumString_KeyboardKey_KEY_SHIFT = "KEY_SHIFT";
-static const char* luaEnumString_KeyboardKey_KEY_CTRL = "KEY_CTRL";
-static const char* luaEnumString_KeyboardKey_KEY_ALT = "KEY_ALT";
-static const char* luaEnumString_KeyboardKey_KEY_MENU = "KEY_MENU";
-static const char* luaEnumString_KeyboardKey_KEY_HYPER = "KEY_HYPER";
-static const char* luaEnumString_KeyboardKey_KEY_INSERT = "KEY_INSERT";
-static const char* luaEnumString_KeyboardKey_KEY_HOME = "KEY_HOME";
-static const char* luaEnumString_KeyboardKey_KEY_PG_UP = "KEY_PG_UP";
-static const char* luaEnumString_KeyboardKey_KEY_DELETE = "KEY_DELETE";
-static const char* luaEnumString_KeyboardKey_KEY_END = "KEY_END";
-static const char* luaEnumString_KeyboardKey_KEY_PG_DOWN = "KEY_PG_DOWN";
-static const char* luaEnumString_KeyboardKey_KEY_LEFT_ARROW = "KEY_LEFT_ARROW";
-static const char* luaEnumString_KeyboardKey_KEY_RIGHT_ARROW = "KEY_RIGHT_ARROW";
-static const char* luaEnumString_KeyboardKey_KEY_UP_ARROW = "KEY_UP_ARROW";
-static const char* luaEnumString_KeyboardKey_KEY_DOWN_ARROW = "KEY_DOWN_ARROW";
-static const char* luaEnumString_KeyboardKey_KEY_NUM_LOCK = "KEY_NUM_LOCK";
-static const char* luaEnumString_KeyboardKey_KEY_KP_PLUS = "KEY_KP_PLUS";
-static const char* luaEnumString_KeyboardKey_KEY_KP_MINUS = "KEY_KP_MINUS";
-static const char* luaEnumString_KeyboardKey_KEY_KP_MULTIPLY = "KEY_KP_MULTIPLY";
-static const char* luaEnumString_KeyboardKey_KEY_KP_DIVIDE = "KEY_KP_DIVIDE";
-static const char* luaEnumString_KeyboardKey_KEY_KP_ENTER = "KEY_KP_ENTER";
-static const char* luaEnumString_KeyboardKey_KEY_KP_HOME = "KEY_KP_HOME";
-static const char* luaEnumString_KeyboardKey_KEY_KP_UP = "KEY_KP_UP";
-static const char* luaEnumString_KeyboardKey_KEY_KP_PG_UP = "KEY_KP_PG_UP";
-static const char* luaEnumString_KeyboardKey_KEY_KP_LEFT = "KEY_KP_LEFT";
-static const char* luaEnumString_KeyboardKey_KEY_KP_FIVE = "KEY_KP_FIVE";
-static const char* luaEnumString_KeyboardKey_KEY_KP_RIGHT = "KEY_KP_RIGHT";
-static const char* luaEnumString_KeyboardKey_KEY_KP_END = "KEY_KP_END";
-static const char* luaEnumString_KeyboardKey_KEY_KP_DOWN = "KEY_KP_DOWN";
-static const char* luaEnumString_KeyboardKey_KEY_KP_PG_DOWN = "KEY_KP_PG_DOWN";
-static const char* luaEnumString_KeyboardKey_KEY_KP_INSERT = "KEY_KP_INSERT";
-static const char* luaEnumString_KeyboardKey_KEY_KP_DELETE = "KEY_KP_DELETE";
-static const char* luaEnumString_KeyboardKey_KEY_F1 = "KEY_F1";
-static const char* luaEnumString_KeyboardKey_KEY_F2 = "KEY_F2";
-static const char* luaEnumString_KeyboardKey_KEY_F3 = "KEY_F3";
-static const char* luaEnumString_KeyboardKey_KEY_F4 = "KEY_F4";
-static const char* luaEnumString_KeyboardKey_KEY_F5 = "KEY_F5";
-static const char* luaEnumString_KeyboardKey_KEY_F6 = "KEY_F6";
-static const char* luaEnumString_KeyboardKey_KEY_F7 = "KEY_F7";
-static const char* luaEnumString_KeyboardKey_KEY_F8 = "KEY_F8";
-static const char* luaEnumString_KeyboardKey_KEY_F9 = "KEY_F9";
-static const char* luaEnumString_KeyboardKey_KEY_F10 = "KEY_F10";
-static const char* luaEnumString_KeyboardKey_KEY_F11 = "KEY_F11";
-static const char* luaEnumString_KeyboardKey_KEY_F12 = "KEY_F12";
-static const char* luaEnumString_KeyboardKey_KEY_SPACE = "KEY_SPACE";
-static const char* luaEnumString_KeyboardKey_KEY_EXCLAM = "KEY_EXCLAM";
-static const char* luaEnumString_KeyboardKey_KEY_QUOTE = "KEY_QUOTE";
-static const char* luaEnumString_KeyboardKey_KEY_NUMBER = "KEY_NUMBER";
-static const char* luaEnumString_KeyboardKey_KEY_DOLLAR = "KEY_DOLLAR";
-static const char* luaEnumString_KeyboardKey_KEY_PERCENT = "KEY_PERCENT";
-static const char* luaEnumString_KeyboardKey_KEY_CIRCUMFLEX = "KEY_CIRCUMFLEX";
-static const char* luaEnumString_KeyboardKey_KEY_AMPERSAND = "KEY_AMPERSAND";
-static const char* luaEnumString_KeyboardKey_KEY_APOSTROPHE = "KEY_APOSTROPHE";
-static const char* luaEnumString_KeyboardKey_KEY_LEFT_PARENTHESIS = "KEY_LEFT_PARENTHESIS";
-static const char* luaEnumString_KeyboardKey_KEY_RIGHT_PARENTHESIS = "KEY_RIGHT_PARENTHESIS";
-static const char* luaEnumString_KeyboardKey_KEY_ASTERISK = "KEY_ASTERISK";
-static const char* luaEnumString_KeyboardKey_KEY_PLUS = "KEY_PLUS";
-static const char* luaEnumString_KeyboardKey_KEY_COMMA = "KEY_COMMA";
-static const char* luaEnumString_KeyboardKey_KEY_MINUS = "KEY_MINUS";
-static const char* luaEnumString_KeyboardKey_KEY_PERIOD = "KEY_PERIOD";
-static const char* luaEnumString_KeyboardKey_KEY_SLASH = "KEY_SLASH";
-static const char* luaEnumString_KeyboardKey_KEY_ZERO = "KEY_ZERO";
-static const char* luaEnumString_KeyboardKey_KEY_ONE = "KEY_ONE";
-static const char* luaEnumString_KeyboardKey_KEY_TWO = "KEY_TWO";
-static const char* luaEnumString_KeyboardKey_KEY_THREE = "KEY_THREE";
-static const char* luaEnumString_KeyboardKey_KEY_FOUR = "KEY_FOUR";
-static const char* luaEnumString_KeyboardKey_KEY_FIVE = "KEY_FIVE";
-static const char* luaEnumString_KeyboardKey_KEY_SIX = "KEY_SIX";
-static const char* luaEnumString_KeyboardKey_KEY_SEVEN = "KEY_SEVEN";
-static const char* luaEnumString_KeyboardKey_KEY_EIGHT = "KEY_EIGHT";
-static const char* luaEnumString_KeyboardKey_KEY_NINE = "KEY_NINE";
-static const char* luaEnumString_KeyboardKey_KEY_COLON = "KEY_COLON";
-static const char* luaEnumString_KeyboardKey_KEY_SEMICOLON = "KEY_SEMICOLON";
-static const char* luaEnumString_KeyboardKey_KEY_LESS_THAN = "KEY_LESS_THAN";
-static const char* luaEnumString_KeyboardKey_KEY_EQUAL = "KEY_EQUAL";
-static const char* luaEnumString_KeyboardKey_KEY_GREATER_THAN = "KEY_GREATER_THAN";
-static const char* luaEnumString_KeyboardKey_KEY_QUESTION = "KEY_QUESTION";
-static const char* luaEnumString_KeyboardKey_KEY_AT = "KEY_AT";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_A = "KEY_CAPITAL_A";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_B = "KEY_CAPITAL_B";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_C = "KEY_CAPITAL_C";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_D = "KEY_CAPITAL_D";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_E = "KEY_CAPITAL_E";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_F = "KEY_CAPITAL_F";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_G = "KEY_CAPITAL_G";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_H = "KEY_CAPITAL_H";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_I = "KEY_CAPITAL_I";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_J = "KEY_CAPITAL_J";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_K = "KEY_CAPITAL_K";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_L = "KEY_CAPITAL_L";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_M = "KEY_CAPITAL_M";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_N = "KEY_CAPITAL_N";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_O = "KEY_CAPITAL_O";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_P = "KEY_CAPITAL_P";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_Q = "KEY_CAPITAL_Q";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_R = "KEY_CAPITAL_R";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_S = "KEY_CAPITAL_S";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_T = "KEY_CAPITAL_T";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_U = "KEY_CAPITAL_U";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_V = "KEY_CAPITAL_V";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_W = "KEY_CAPITAL_W";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_X = "KEY_CAPITAL_X";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_Y = "KEY_CAPITAL_Y";
-static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_Z = "KEY_CAPITAL_Z";
-static const char* luaEnumString_KeyboardKey_KEY_LEFT_BRACKET = "KEY_LEFT_BRACKET";
-static const char* luaEnumString_KeyboardKey_KEY_BACK_SLASH = "KEY_BACK_SLASH";
-static const char* luaEnumString_KeyboardKey_KEY_RIGHT_BRACKET = "KEY_RIGHT_BRACKET";
-static const char* luaEnumString_KeyboardKey_KEY_UNDERSCORE = "KEY_UNDERSCORE";
-static const char* luaEnumString_KeyboardKey_KEY_GRAVE = "KEY_GRAVE";
-static const char* luaEnumString_KeyboardKey_KEY_A = "KEY_A";
-static const char* luaEnumString_KeyboardKey_KEY_B = "KEY_B";
-static const char* luaEnumString_KeyboardKey_KEY_C = "KEY_C";
-static const char* luaEnumString_KeyboardKey_KEY_D = "KEY_D";
-static const char* luaEnumString_KeyboardKey_KEY_E = "KEY_E";
-static const char* luaEnumString_KeyboardKey_KEY_F = "KEY_F";
-static const char* luaEnumString_KeyboardKey_KEY_G = "KEY_G";
-static const char* luaEnumString_KeyboardKey_KEY_H = "KEY_H";
-static const char* luaEnumString_KeyboardKey_KEY_I = "KEY_I";
-static const char* luaEnumString_KeyboardKey_KEY_J = "KEY_J";
-static const char* luaEnumString_KeyboardKey_KEY_K = "KEY_K";
-static const char* luaEnumString_KeyboardKey_KEY_L = "KEY_L";
-static const char* luaEnumString_KeyboardKey_KEY_M = "KEY_M";
-static const char* luaEnumString_KeyboardKey_KEY_N = "KEY_N";
-static const char* luaEnumString_KeyboardKey_KEY_O = "KEY_O";
-static const char* luaEnumString_KeyboardKey_KEY_P = "KEY_P";
-static const char* luaEnumString_KeyboardKey_KEY_Q = "KEY_Q";
-static const char* luaEnumString_KeyboardKey_KEY_R = "KEY_R";
-static const char* luaEnumString_KeyboardKey_KEY_S = "KEY_S";
-static const char* luaEnumString_KeyboardKey_KEY_T = "KEY_T";
-static const char* luaEnumString_KeyboardKey_KEY_U = "KEY_U";
-static const char* luaEnumString_KeyboardKey_KEY_V = "KEY_V";
-static const char* luaEnumString_KeyboardKey_KEY_W = "KEY_W";
-static const char* luaEnumString_KeyboardKey_KEY_X = "KEY_X";
-static const char* luaEnumString_KeyboardKey_KEY_Y = "KEY_Y";
-static const char* luaEnumString_KeyboardKey_KEY_Z = "KEY_Z";
-static const char* luaEnumString_KeyboardKey_KEY_LEFT_BRACE = "KEY_LEFT_BRACE";
-static const char* luaEnumString_KeyboardKey_KEY_BAR = "KEY_BAR";
-static const char* luaEnumString_KeyboardKey_KEY_RIGHT_BRACE = "KEY_RIGHT_BRACE";
-static const char* luaEnumString_KeyboardKey_KEY_TILDE = "KEY_TILDE";
-static const char* luaEnumString_KeyboardKey_KEY_EURO = "KEY_EURO";
-static const char* luaEnumString_KeyboardKey_KEY_POUND = "KEY_POUND";
-static const char* luaEnumString_KeyboardKey_KEY_YEN = "KEY_YEN";
-static const char* luaEnumString_KeyboardKey_KEY_MIDDLE_DOT = "KEY_MIDDLE_DOT";
-static const char* luaEnumString_KeyboardKey_KEY_SEARCH = "KEY_SEARCH";
-
-Keyboard::Key lua_enumFromString_KeyboardKey(const char* s)
-{
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_NONE) == 0)
-        return Keyboard::KEY_NONE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PAUSE) == 0)
-        return Keyboard::KEY_PAUSE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SCROLL_LOCK) == 0)
-        return Keyboard::KEY_SCROLL_LOCK;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PRINT) == 0)
-        return Keyboard::KEY_PRINT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SYSREQ) == 0)
-        return Keyboard::KEY_SYSREQ;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BREAK) == 0)
-        return Keyboard::KEY_BREAK;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ESCAPE) == 0)
-        return Keyboard::KEY_ESCAPE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BACKSPACE) == 0)
-        return Keyboard::KEY_BACKSPACE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_TAB) == 0)
-        return Keyboard::KEY_TAB;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BACK_TAB) == 0)
-        return Keyboard::KEY_BACK_TAB;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RETURN) == 0)
-        return Keyboard::KEY_RETURN;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPS_LOCK) == 0)
-        return Keyboard::KEY_CAPS_LOCK;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SHIFT) == 0)
-        return Keyboard::KEY_SHIFT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CTRL) == 0)
-        return Keyboard::KEY_CTRL;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ALT) == 0)
-        return Keyboard::KEY_ALT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_MENU) == 0)
-        return Keyboard::KEY_MENU;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_HYPER) == 0)
-        return Keyboard::KEY_HYPER;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_INSERT) == 0)
-        return Keyboard::KEY_INSERT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_HOME) == 0)
-        return Keyboard::KEY_HOME;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PG_UP) == 0)
-        return Keyboard::KEY_PG_UP;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_DELETE) == 0)
-        return Keyboard::KEY_DELETE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_END) == 0)
-        return Keyboard::KEY_END;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PG_DOWN) == 0)
-        return Keyboard::KEY_PG_DOWN;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LEFT_ARROW) == 0)
-        return Keyboard::KEY_LEFT_ARROW;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RIGHT_ARROW) == 0)
-        return Keyboard::KEY_RIGHT_ARROW;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_UP_ARROW) == 0)
-        return Keyboard::KEY_UP_ARROW;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_DOWN_ARROW) == 0)
-        return Keyboard::KEY_DOWN_ARROW;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_NUM_LOCK) == 0)
-        return Keyboard::KEY_NUM_LOCK;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_PLUS) == 0)
-        return Keyboard::KEY_KP_PLUS;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_MINUS) == 0)
-        return Keyboard::KEY_KP_MINUS;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_MULTIPLY) == 0)
-        return Keyboard::KEY_KP_MULTIPLY;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_DIVIDE) == 0)
-        return Keyboard::KEY_KP_DIVIDE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_ENTER) == 0)
-        return Keyboard::KEY_KP_ENTER;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_HOME) == 0)
-        return Keyboard::KEY_KP_HOME;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_UP) == 0)
-        return Keyboard::KEY_KP_UP;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_PG_UP) == 0)
-        return Keyboard::KEY_KP_PG_UP;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_LEFT) == 0)
-        return Keyboard::KEY_KP_LEFT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_FIVE) == 0)
-        return Keyboard::KEY_KP_FIVE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_RIGHT) == 0)
-        return Keyboard::KEY_KP_RIGHT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_END) == 0)
-        return Keyboard::KEY_KP_END;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_DOWN) == 0)
-        return Keyboard::KEY_KP_DOWN;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_PG_DOWN) == 0)
-        return Keyboard::KEY_KP_PG_DOWN;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_INSERT) == 0)
-        return Keyboard::KEY_KP_INSERT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_DELETE) == 0)
-        return Keyboard::KEY_KP_DELETE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F1) == 0)
-        return Keyboard::KEY_F1;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F2) == 0)
-        return Keyboard::KEY_F2;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F3) == 0)
-        return Keyboard::KEY_F3;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F4) == 0)
-        return Keyboard::KEY_F4;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F5) == 0)
-        return Keyboard::KEY_F5;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F6) == 0)
-        return Keyboard::KEY_F6;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F7) == 0)
-        return Keyboard::KEY_F7;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F8) == 0)
-        return Keyboard::KEY_F8;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F9) == 0)
-        return Keyboard::KEY_F9;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F10) == 0)
-        return Keyboard::KEY_F10;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F11) == 0)
-        return Keyboard::KEY_F11;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F12) == 0)
-        return Keyboard::KEY_F12;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SPACE) == 0)
-        return Keyboard::KEY_SPACE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_EXCLAM) == 0)
-        return Keyboard::KEY_EXCLAM;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_QUOTE) == 0)
-        return Keyboard::KEY_QUOTE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_NUMBER) == 0)
-        return Keyboard::KEY_NUMBER;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_DOLLAR) == 0)
-        return Keyboard::KEY_DOLLAR;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PERCENT) == 0)
-        return Keyboard::KEY_PERCENT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CIRCUMFLEX) == 0)
-        return Keyboard::KEY_CIRCUMFLEX;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_AMPERSAND) == 0)
-        return Keyboard::KEY_AMPERSAND;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_APOSTROPHE) == 0)
-        return Keyboard::KEY_APOSTROPHE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LEFT_PARENTHESIS) == 0)
-        return Keyboard::KEY_LEFT_PARENTHESIS;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RIGHT_PARENTHESIS) == 0)
-        return Keyboard::KEY_RIGHT_PARENTHESIS;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ASTERISK) == 0)
-        return Keyboard::KEY_ASTERISK;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PLUS) == 0)
-        return Keyboard::KEY_PLUS;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_COMMA) == 0)
-        return Keyboard::KEY_COMMA;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_MINUS) == 0)
-        return Keyboard::KEY_MINUS;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PERIOD) == 0)
-        return Keyboard::KEY_PERIOD;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SLASH) == 0)
-        return Keyboard::KEY_SLASH;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ZERO) == 0)
-        return Keyboard::KEY_ZERO;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ONE) == 0)
-        return Keyboard::KEY_ONE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_TWO) == 0)
-        return Keyboard::KEY_TWO;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_THREE) == 0)
-        return Keyboard::KEY_THREE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_FOUR) == 0)
-        return Keyboard::KEY_FOUR;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_FIVE) == 0)
-        return Keyboard::KEY_FIVE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SIX) == 0)
-        return Keyboard::KEY_SIX;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SEVEN) == 0)
-        return Keyboard::KEY_SEVEN;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_EIGHT) == 0)
-        return Keyboard::KEY_EIGHT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_NINE) == 0)
-        return Keyboard::KEY_NINE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_COLON) == 0)
-        return Keyboard::KEY_COLON;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SEMICOLON) == 0)
-        return Keyboard::KEY_SEMICOLON;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LESS_THAN) == 0)
-        return Keyboard::KEY_LESS_THAN;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_EQUAL) == 0)
-        return Keyboard::KEY_EQUAL;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_GREATER_THAN) == 0)
-        return Keyboard::KEY_GREATER_THAN;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_QUESTION) == 0)
-        return Keyboard::KEY_QUESTION;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_AT) == 0)
-        return Keyboard::KEY_AT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_A) == 0)
-        return Keyboard::KEY_CAPITAL_A;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_B) == 0)
-        return Keyboard::KEY_CAPITAL_B;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_C) == 0)
-        return Keyboard::KEY_CAPITAL_C;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_D) == 0)
-        return Keyboard::KEY_CAPITAL_D;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_E) == 0)
-        return Keyboard::KEY_CAPITAL_E;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_F) == 0)
-        return Keyboard::KEY_CAPITAL_F;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_G) == 0)
-        return Keyboard::KEY_CAPITAL_G;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_H) == 0)
-        return Keyboard::KEY_CAPITAL_H;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_I) == 0)
-        return Keyboard::KEY_CAPITAL_I;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_J) == 0)
-        return Keyboard::KEY_CAPITAL_J;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_K) == 0)
-        return Keyboard::KEY_CAPITAL_K;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_L) == 0)
-        return Keyboard::KEY_CAPITAL_L;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_M) == 0)
-        return Keyboard::KEY_CAPITAL_M;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_N) == 0)
-        return Keyboard::KEY_CAPITAL_N;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_O) == 0)
-        return Keyboard::KEY_CAPITAL_O;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_P) == 0)
-        return Keyboard::KEY_CAPITAL_P;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_Q) == 0)
-        return Keyboard::KEY_CAPITAL_Q;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_R) == 0)
-        return Keyboard::KEY_CAPITAL_R;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_S) == 0)
-        return Keyboard::KEY_CAPITAL_S;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_T) == 0)
-        return Keyboard::KEY_CAPITAL_T;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_U) == 0)
-        return Keyboard::KEY_CAPITAL_U;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_V) == 0)
-        return Keyboard::KEY_CAPITAL_V;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_W) == 0)
-        return Keyboard::KEY_CAPITAL_W;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_X) == 0)
-        return Keyboard::KEY_CAPITAL_X;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_Y) == 0)
-        return Keyboard::KEY_CAPITAL_Y;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_Z) == 0)
-        return Keyboard::KEY_CAPITAL_Z;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LEFT_BRACKET) == 0)
-        return Keyboard::KEY_LEFT_BRACKET;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BACK_SLASH) == 0)
-        return Keyboard::KEY_BACK_SLASH;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RIGHT_BRACKET) == 0)
-        return Keyboard::KEY_RIGHT_BRACKET;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_UNDERSCORE) == 0)
-        return Keyboard::KEY_UNDERSCORE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_GRAVE) == 0)
-        return Keyboard::KEY_GRAVE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_A) == 0)
-        return Keyboard::KEY_A;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_B) == 0)
-        return Keyboard::KEY_B;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_C) == 0)
-        return Keyboard::KEY_C;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_D) == 0)
-        return Keyboard::KEY_D;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_E) == 0)
-        return Keyboard::KEY_E;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F) == 0)
-        return Keyboard::KEY_F;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_G) == 0)
-        return Keyboard::KEY_G;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_H) == 0)
-        return Keyboard::KEY_H;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_I) == 0)
-        return Keyboard::KEY_I;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_J) == 0)
-        return Keyboard::KEY_J;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_K) == 0)
-        return Keyboard::KEY_K;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_L) == 0)
-        return Keyboard::KEY_L;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_M) == 0)
-        return Keyboard::KEY_M;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_N) == 0)
-        return Keyboard::KEY_N;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_O) == 0)
-        return Keyboard::KEY_O;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_P) == 0)
-        return Keyboard::KEY_P;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_Q) == 0)
-        return Keyboard::KEY_Q;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_R) == 0)
-        return Keyboard::KEY_R;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_S) == 0)
-        return Keyboard::KEY_S;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_T) == 0)
-        return Keyboard::KEY_T;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_U) == 0)
-        return Keyboard::KEY_U;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_V) == 0)
-        return Keyboard::KEY_V;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_W) == 0)
-        return Keyboard::KEY_W;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_X) == 0)
-        return Keyboard::KEY_X;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_Y) == 0)
-        return Keyboard::KEY_Y;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_Z) == 0)
-        return Keyboard::KEY_Z;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LEFT_BRACE) == 0)
-        return Keyboard::KEY_LEFT_BRACE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BAR) == 0)
-        return Keyboard::KEY_BAR;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RIGHT_BRACE) == 0)
-        return Keyboard::KEY_RIGHT_BRACE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_TILDE) == 0)
-        return Keyboard::KEY_TILDE;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_EURO) == 0)
-        return Keyboard::KEY_EURO;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_POUND) == 0)
-        return Keyboard::KEY_POUND;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_YEN) == 0)
-        return Keyboard::KEY_YEN;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_MIDDLE_DOT) == 0)
-        return Keyboard::KEY_MIDDLE_DOT;
-    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SEARCH) == 0)
-        return Keyboard::KEY_SEARCH;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Keyboard::Key.", s);
-    return Keyboard::KEY_NONE;
-}
-
-const char* lua_stringFromEnum_KeyboardKey(Keyboard::Key e)
-{
-    if (e == Keyboard::KEY_NONE)
-        return luaEnumString_KeyboardKey_KEY_NONE;
-    if (e == Keyboard::KEY_PAUSE)
-        return luaEnumString_KeyboardKey_KEY_PAUSE;
-    if (e == Keyboard::KEY_SCROLL_LOCK)
-        return luaEnumString_KeyboardKey_KEY_SCROLL_LOCK;
-    if (e == Keyboard::KEY_PRINT)
-        return luaEnumString_KeyboardKey_KEY_PRINT;
-    if (e == Keyboard::KEY_SYSREQ)
-        return luaEnumString_KeyboardKey_KEY_SYSREQ;
-    if (e == Keyboard::KEY_BREAK)
-        return luaEnumString_KeyboardKey_KEY_BREAK;
-    if (e == Keyboard::KEY_ESCAPE)
-        return luaEnumString_KeyboardKey_KEY_ESCAPE;
-    if (e == Keyboard::KEY_BACKSPACE)
-        return luaEnumString_KeyboardKey_KEY_BACKSPACE;
-    if (e == Keyboard::KEY_TAB)
-        return luaEnumString_KeyboardKey_KEY_TAB;
-    if (e == Keyboard::KEY_BACK_TAB)
-        return luaEnumString_KeyboardKey_KEY_BACK_TAB;
-    if (e == Keyboard::KEY_RETURN)
-        return luaEnumString_KeyboardKey_KEY_RETURN;
-    if (e == Keyboard::KEY_CAPS_LOCK)
-        return luaEnumString_KeyboardKey_KEY_CAPS_LOCK;
-    if (e == Keyboard::KEY_SHIFT)
-        return luaEnumString_KeyboardKey_KEY_SHIFT;
-    if (e == Keyboard::KEY_CTRL)
-        return luaEnumString_KeyboardKey_KEY_CTRL;
-    if (e == Keyboard::KEY_ALT)
-        return luaEnumString_KeyboardKey_KEY_ALT;
-    if (e == Keyboard::KEY_MENU)
-        return luaEnumString_KeyboardKey_KEY_MENU;
-    if (e == Keyboard::KEY_HYPER)
-        return luaEnumString_KeyboardKey_KEY_HYPER;
-    if (e == Keyboard::KEY_INSERT)
-        return luaEnumString_KeyboardKey_KEY_INSERT;
-    if (e == Keyboard::KEY_HOME)
-        return luaEnumString_KeyboardKey_KEY_HOME;
-    if (e == Keyboard::KEY_PG_UP)
-        return luaEnumString_KeyboardKey_KEY_PG_UP;
-    if (e == Keyboard::KEY_DELETE)
-        return luaEnumString_KeyboardKey_KEY_DELETE;
-    if (e == Keyboard::KEY_END)
-        return luaEnumString_KeyboardKey_KEY_END;
-    if (e == Keyboard::KEY_PG_DOWN)
-        return luaEnumString_KeyboardKey_KEY_PG_DOWN;
-    if (e == Keyboard::KEY_LEFT_ARROW)
-        return luaEnumString_KeyboardKey_KEY_LEFT_ARROW;
-    if (e == Keyboard::KEY_RIGHT_ARROW)
-        return luaEnumString_KeyboardKey_KEY_RIGHT_ARROW;
-    if (e == Keyboard::KEY_UP_ARROW)
-        return luaEnumString_KeyboardKey_KEY_UP_ARROW;
-    if (e == Keyboard::KEY_DOWN_ARROW)
-        return luaEnumString_KeyboardKey_KEY_DOWN_ARROW;
-    if (e == Keyboard::KEY_NUM_LOCK)
-        return luaEnumString_KeyboardKey_KEY_NUM_LOCK;
-    if (e == Keyboard::KEY_KP_PLUS)
-        return luaEnumString_KeyboardKey_KEY_KP_PLUS;
-    if (e == Keyboard::KEY_KP_MINUS)
-        return luaEnumString_KeyboardKey_KEY_KP_MINUS;
-    if (e == Keyboard::KEY_KP_MULTIPLY)
-        return luaEnumString_KeyboardKey_KEY_KP_MULTIPLY;
-    if (e == Keyboard::KEY_KP_DIVIDE)
-        return luaEnumString_KeyboardKey_KEY_KP_DIVIDE;
-    if (e == Keyboard::KEY_KP_ENTER)
-        return luaEnumString_KeyboardKey_KEY_KP_ENTER;
-    if (e == Keyboard::KEY_KP_HOME)
-        return luaEnumString_KeyboardKey_KEY_KP_HOME;
-    if (e == Keyboard::KEY_KP_UP)
-        return luaEnumString_KeyboardKey_KEY_KP_UP;
-    if (e == Keyboard::KEY_KP_PG_UP)
-        return luaEnumString_KeyboardKey_KEY_KP_PG_UP;
-    if (e == Keyboard::KEY_KP_LEFT)
-        return luaEnumString_KeyboardKey_KEY_KP_LEFT;
-    if (e == Keyboard::KEY_KP_FIVE)
-        return luaEnumString_KeyboardKey_KEY_KP_FIVE;
-    if (e == Keyboard::KEY_KP_RIGHT)
-        return luaEnumString_KeyboardKey_KEY_KP_RIGHT;
-    if (e == Keyboard::KEY_KP_END)
-        return luaEnumString_KeyboardKey_KEY_KP_END;
-    if (e == Keyboard::KEY_KP_DOWN)
-        return luaEnumString_KeyboardKey_KEY_KP_DOWN;
-    if (e == Keyboard::KEY_KP_PG_DOWN)
-        return luaEnumString_KeyboardKey_KEY_KP_PG_DOWN;
-    if (e == Keyboard::KEY_KP_INSERT)
-        return luaEnumString_KeyboardKey_KEY_KP_INSERT;
-    if (e == Keyboard::KEY_KP_DELETE)
-        return luaEnumString_KeyboardKey_KEY_KP_DELETE;
-    if (e == Keyboard::KEY_F1)
-        return luaEnumString_KeyboardKey_KEY_F1;
-    if (e == Keyboard::KEY_F2)
-        return luaEnumString_KeyboardKey_KEY_F2;
-    if (e == Keyboard::KEY_F3)
-        return luaEnumString_KeyboardKey_KEY_F3;
-    if (e == Keyboard::KEY_F4)
-        return luaEnumString_KeyboardKey_KEY_F4;
-    if (e == Keyboard::KEY_F5)
-        return luaEnumString_KeyboardKey_KEY_F5;
-    if (e == Keyboard::KEY_F6)
-        return luaEnumString_KeyboardKey_KEY_F6;
-    if (e == Keyboard::KEY_F7)
-        return luaEnumString_KeyboardKey_KEY_F7;
-    if (e == Keyboard::KEY_F8)
-        return luaEnumString_KeyboardKey_KEY_F8;
-    if (e == Keyboard::KEY_F9)
-        return luaEnumString_KeyboardKey_KEY_F9;
-    if (e == Keyboard::KEY_F10)
-        return luaEnumString_KeyboardKey_KEY_F10;
-    if (e == Keyboard::KEY_F11)
-        return luaEnumString_KeyboardKey_KEY_F11;
-    if (e == Keyboard::KEY_F12)
-        return luaEnumString_KeyboardKey_KEY_F12;
-    if (e == Keyboard::KEY_SPACE)
-        return luaEnumString_KeyboardKey_KEY_SPACE;
-    if (e == Keyboard::KEY_EXCLAM)
-        return luaEnumString_KeyboardKey_KEY_EXCLAM;
-    if (e == Keyboard::KEY_QUOTE)
-        return luaEnumString_KeyboardKey_KEY_QUOTE;
-    if (e == Keyboard::KEY_NUMBER)
-        return luaEnumString_KeyboardKey_KEY_NUMBER;
-    if (e == Keyboard::KEY_DOLLAR)
-        return luaEnumString_KeyboardKey_KEY_DOLLAR;
-    if (e == Keyboard::KEY_PERCENT)
-        return luaEnumString_KeyboardKey_KEY_PERCENT;
-    if (e == Keyboard::KEY_CIRCUMFLEX)
-        return luaEnumString_KeyboardKey_KEY_CIRCUMFLEX;
-    if (e == Keyboard::KEY_AMPERSAND)
-        return luaEnumString_KeyboardKey_KEY_AMPERSAND;
-    if (e == Keyboard::KEY_APOSTROPHE)
-        return luaEnumString_KeyboardKey_KEY_APOSTROPHE;
-    if (e == Keyboard::KEY_LEFT_PARENTHESIS)
-        return luaEnumString_KeyboardKey_KEY_LEFT_PARENTHESIS;
-    if (e == Keyboard::KEY_RIGHT_PARENTHESIS)
-        return luaEnumString_KeyboardKey_KEY_RIGHT_PARENTHESIS;
-    if (e == Keyboard::KEY_ASTERISK)
-        return luaEnumString_KeyboardKey_KEY_ASTERISK;
-    if (e == Keyboard::KEY_PLUS)
-        return luaEnumString_KeyboardKey_KEY_PLUS;
-    if (e == Keyboard::KEY_COMMA)
-        return luaEnumString_KeyboardKey_KEY_COMMA;
-    if (e == Keyboard::KEY_MINUS)
-        return luaEnumString_KeyboardKey_KEY_MINUS;
-    if (e == Keyboard::KEY_PERIOD)
-        return luaEnumString_KeyboardKey_KEY_PERIOD;
-    if (e == Keyboard::KEY_SLASH)
-        return luaEnumString_KeyboardKey_KEY_SLASH;
-    if (e == Keyboard::KEY_ZERO)
-        return luaEnumString_KeyboardKey_KEY_ZERO;
-    if (e == Keyboard::KEY_ONE)
-        return luaEnumString_KeyboardKey_KEY_ONE;
-    if (e == Keyboard::KEY_TWO)
-        return luaEnumString_KeyboardKey_KEY_TWO;
-    if (e == Keyboard::KEY_THREE)
-        return luaEnumString_KeyboardKey_KEY_THREE;
-    if (e == Keyboard::KEY_FOUR)
-        return luaEnumString_KeyboardKey_KEY_FOUR;
-    if (e == Keyboard::KEY_FIVE)
-        return luaEnumString_KeyboardKey_KEY_FIVE;
-    if (e == Keyboard::KEY_SIX)
-        return luaEnumString_KeyboardKey_KEY_SIX;
-    if (e == Keyboard::KEY_SEVEN)
-        return luaEnumString_KeyboardKey_KEY_SEVEN;
-    if (e == Keyboard::KEY_EIGHT)
-        return luaEnumString_KeyboardKey_KEY_EIGHT;
-    if (e == Keyboard::KEY_NINE)
-        return luaEnumString_KeyboardKey_KEY_NINE;
-    if (e == Keyboard::KEY_COLON)
-        return luaEnumString_KeyboardKey_KEY_COLON;
-    if (e == Keyboard::KEY_SEMICOLON)
-        return luaEnumString_KeyboardKey_KEY_SEMICOLON;
-    if (e == Keyboard::KEY_LESS_THAN)
-        return luaEnumString_KeyboardKey_KEY_LESS_THAN;
-    if (e == Keyboard::KEY_EQUAL)
-        return luaEnumString_KeyboardKey_KEY_EQUAL;
-    if (e == Keyboard::KEY_GREATER_THAN)
-        return luaEnumString_KeyboardKey_KEY_GREATER_THAN;
-    if (e == Keyboard::KEY_QUESTION)
-        return luaEnumString_KeyboardKey_KEY_QUESTION;
-    if (e == Keyboard::KEY_AT)
-        return luaEnumString_KeyboardKey_KEY_AT;
-    if (e == Keyboard::KEY_CAPITAL_A)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_A;
-    if (e == Keyboard::KEY_CAPITAL_B)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_B;
-    if (e == Keyboard::KEY_CAPITAL_C)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_C;
-    if (e == Keyboard::KEY_CAPITAL_D)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_D;
-    if (e == Keyboard::KEY_CAPITAL_E)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_E;
-    if (e == Keyboard::KEY_CAPITAL_F)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_F;
-    if (e == Keyboard::KEY_CAPITAL_G)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_G;
-    if (e == Keyboard::KEY_CAPITAL_H)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_H;
-    if (e == Keyboard::KEY_CAPITAL_I)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_I;
-    if (e == Keyboard::KEY_CAPITAL_J)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_J;
-    if (e == Keyboard::KEY_CAPITAL_K)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_K;
-    if (e == Keyboard::KEY_CAPITAL_L)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_L;
-    if (e == Keyboard::KEY_CAPITAL_M)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_M;
-    if (e == Keyboard::KEY_CAPITAL_N)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_N;
-    if (e == Keyboard::KEY_CAPITAL_O)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_O;
-    if (e == Keyboard::KEY_CAPITAL_P)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_P;
-    if (e == Keyboard::KEY_CAPITAL_Q)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_Q;
-    if (e == Keyboard::KEY_CAPITAL_R)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_R;
-    if (e == Keyboard::KEY_CAPITAL_S)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_S;
-    if (e == Keyboard::KEY_CAPITAL_T)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_T;
-    if (e == Keyboard::KEY_CAPITAL_U)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_U;
-    if (e == Keyboard::KEY_CAPITAL_V)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_V;
-    if (e == Keyboard::KEY_CAPITAL_W)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_W;
-    if (e == Keyboard::KEY_CAPITAL_X)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_X;
-    if (e == Keyboard::KEY_CAPITAL_Y)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_Y;
-    if (e == Keyboard::KEY_CAPITAL_Z)
-        return luaEnumString_KeyboardKey_KEY_CAPITAL_Z;
-    if (e == Keyboard::KEY_LEFT_BRACKET)
-        return luaEnumString_KeyboardKey_KEY_LEFT_BRACKET;
-    if (e == Keyboard::KEY_BACK_SLASH)
-        return luaEnumString_KeyboardKey_KEY_BACK_SLASH;
-    if (e == Keyboard::KEY_RIGHT_BRACKET)
-        return luaEnumString_KeyboardKey_KEY_RIGHT_BRACKET;
-    if (e == Keyboard::KEY_UNDERSCORE)
-        return luaEnumString_KeyboardKey_KEY_UNDERSCORE;
-    if (e == Keyboard::KEY_GRAVE)
-        return luaEnumString_KeyboardKey_KEY_GRAVE;
-    if (e == Keyboard::KEY_A)
-        return luaEnumString_KeyboardKey_KEY_A;
-    if (e == Keyboard::KEY_B)
-        return luaEnumString_KeyboardKey_KEY_B;
-    if (e == Keyboard::KEY_C)
-        return luaEnumString_KeyboardKey_KEY_C;
-    if (e == Keyboard::KEY_D)
-        return luaEnumString_KeyboardKey_KEY_D;
-    if (e == Keyboard::KEY_E)
-        return luaEnumString_KeyboardKey_KEY_E;
-    if (e == Keyboard::KEY_F)
-        return luaEnumString_KeyboardKey_KEY_F;
-    if (e == Keyboard::KEY_G)
-        return luaEnumString_KeyboardKey_KEY_G;
-    if (e == Keyboard::KEY_H)
-        return luaEnumString_KeyboardKey_KEY_H;
-    if (e == Keyboard::KEY_I)
-        return luaEnumString_KeyboardKey_KEY_I;
-    if (e == Keyboard::KEY_J)
-        return luaEnumString_KeyboardKey_KEY_J;
-    if (e == Keyboard::KEY_K)
-        return luaEnumString_KeyboardKey_KEY_K;
-    if (e == Keyboard::KEY_L)
-        return luaEnumString_KeyboardKey_KEY_L;
-    if (e == Keyboard::KEY_M)
-        return luaEnumString_KeyboardKey_KEY_M;
-    if (e == Keyboard::KEY_N)
-        return luaEnumString_KeyboardKey_KEY_N;
-    if (e == Keyboard::KEY_O)
-        return luaEnumString_KeyboardKey_KEY_O;
-    if (e == Keyboard::KEY_P)
-        return luaEnumString_KeyboardKey_KEY_P;
-    if (e == Keyboard::KEY_Q)
-        return luaEnumString_KeyboardKey_KEY_Q;
-    if (e == Keyboard::KEY_R)
-        return luaEnumString_KeyboardKey_KEY_R;
-    if (e == Keyboard::KEY_S)
-        return luaEnumString_KeyboardKey_KEY_S;
-    if (e == Keyboard::KEY_T)
-        return luaEnumString_KeyboardKey_KEY_T;
-    if (e == Keyboard::KEY_U)
-        return luaEnumString_KeyboardKey_KEY_U;
-    if (e == Keyboard::KEY_V)
-        return luaEnumString_KeyboardKey_KEY_V;
-    if (e == Keyboard::KEY_W)
-        return luaEnumString_KeyboardKey_KEY_W;
-    if (e == Keyboard::KEY_X)
-        return luaEnumString_KeyboardKey_KEY_X;
-    if (e == Keyboard::KEY_Y)
-        return luaEnumString_KeyboardKey_KEY_Y;
-    if (e == Keyboard::KEY_Z)
-        return luaEnumString_KeyboardKey_KEY_Z;
-    if (e == Keyboard::KEY_LEFT_BRACE)
-        return luaEnumString_KeyboardKey_KEY_LEFT_BRACE;
-    if (e == Keyboard::KEY_BAR)
-        return luaEnumString_KeyboardKey_KEY_BAR;
-    if (e == Keyboard::KEY_RIGHT_BRACE)
-        return luaEnumString_KeyboardKey_KEY_RIGHT_BRACE;
-    if (e == Keyboard::KEY_TILDE)
-        return luaEnumString_KeyboardKey_KEY_TILDE;
-    if (e == Keyboard::KEY_EURO)
-        return luaEnumString_KeyboardKey_KEY_EURO;
-    if (e == Keyboard::KEY_POUND)
-        return luaEnumString_KeyboardKey_KEY_POUND;
-    if (e == Keyboard::KEY_YEN)
-        return luaEnumString_KeyboardKey_KEY_YEN;
-    if (e == Keyboard::KEY_MIDDLE_DOT)
-        return luaEnumString_KeyboardKey_KEY_MIDDLE_DOT;
-    if (e == Keyboard::KEY_SEARCH)
-        return luaEnumString_KeyboardKey_KEY_SEARCH;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Keyboard::Key.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_KeyboardKeyEvent_KEY_PRESS = "KEY_PRESS";
-static const char* luaEnumString_KeyboardKeyEvent_KEY_RELEASE = "KEY_RELEASE";
-static const char* luaEnumString_KeyboardKeyEvent_KEY_CHAR = "KEY_CHAR";
-
-Keyboard::KeyEvent lua_enumFromString_KeyboardKeyEvent(const char* s)
-{
-    if (strcmp(s, luaEnumString_KeyboardKeyEvent_KEY_PRESS) == 0)
-        return Keyboard::KEY_PRESS;
-    if (strcmp(s, luaEnumString_KeyboardKeyEvent_KEY_RELEASE) == 0)
-        return Keyboard::KEY_RELEASE;
-    if (strcmp(s, luaEnumString_KeyboardKeyEvent_KEY_CHAR) == 0)
-        return Keyboard::KEY_CHAR;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Keyboard::KeyEvent.", s);
-    return Keyboard::KEY_PRESS;
-}
-
-const char* lua_stringFromEnum_KeyboardKeyEvent(Keyboard::KeyEvent e)
-{
-    if (e == Keyboard::KEY_PRESS)
-        return luaEnumString_KeyboardKeyEvent_KEY_PRESS;
-    if (e == Keyboard::KEY_RELEASE)
-        return luaEnumString_KeyboardKeyEvent_KEY_RELEASE;
-    if (e == Keyboard::KEY_CHAR)
-        return luaEnumString_KeyboardKeyEvent_KEY_CHAR;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Keyboard::KeyEvent.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_LayoutType_LAYOUT_FLOW = "LAYOUT_FLOW";
-static const char* luaEnumString_LayoutType_LAYOUT_VERTICAL = "LAYOUT_VERTICAL";
-static const char* luaEnumString_LayoutType_LAYOUT_ABSOLUTE = "LAYOUT_ABSOLUTE";
-static const char* luaEnumString_LayoutType_LAYOUT_SCROLL = "LAYOUT_SCROLL";
-
-Layout::Type lua_enumFromString_LayoutType(const char* s)
-{
-    if (strcmp(s, luaEnumString_LayoutType_LAYOUT_FLOW) == 0)
-        return Layout::LAYOUT_FLOW;
-    if (strcmp(s, luaEnumString_LayoutType_LAYOUT_VERTICAL) == 0)
-        return Layout::LAYOUT_VERTICAL;
-    if (strcmp(s, luaEnumString_LayoutType_LAYOUT_ABSOLUTE) == 0)
-        return Layout::LAYOUT_ABSOLUTE;
-    if (strcmp(s, luaEnumString_LayoutType_LAYOUT_SCROLL) == 0)
-        return Layout::LAYOUT_SCROLL;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Layout::Type.", s);
-    return Layout::LAYOUT_FLOW;
-}
-
-const char* lua_stringFromEnum_LayoutType(Layout::Type e)
-{
-    if (e == Layout::LAYOUT_FLOW)
-        return luaEnumString_LayoutType_LAYOUT_FLOW;
-    if (e == Layout::LAYOUT_VERTICAL)
-        return luaEnumString_LayoutType_LAYOUT_VERTICAL;
-    if (e == Layout::LAYOUT_ABSOLUTE)
-        return luaEnumString_LayoutType_LAYOUT_ABSOLUTE;
-    if (e == Layout::LAYOUT_SCROLL)
-        return luaEnumString_LayoutType_LAYOUT_SCROLL;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Layout::Type.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_LightType_DIRECTIONAL = "DIRECTIONAL";
-static const char* luaEnumString_LightType_POINT = "POINT";
-static const char* luaEnumString_LightType_SPOT = "SPOT";
-
-Light::Type lua_enumFromString_LightType(const char* s)
-{
-    if (strcmp(s, luaEnumString_LightType_DIRECTIONAL) == 0)
-        return Light::DIRECTIONAL;
-    if (strcmp(s, luaEnumString_LightType_POINT) == 0)
-        return Light::POINT;
-    if (strcmp(s, luaEnumString_LightType_SPOT) == 0)
-        return Light::SPOT;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Light::Type.", s);
-    return Light::DIRECTIONAL;
-}
-
-const char* lua_stringFromEnum_LightType(Light::Type e)
-{
-    if (e == Light::DIRECTIONAL)
-        return luaEnumString_LightType_DIRECTIONAL;
-    if (e == Light::POINT)
-        return luaEnumString_LightType_POINT;
-    if (e == Light::SPOT)
-        return luaEnumString_LightType_SPOT;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Light::Type.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_MeshIndexFormat_INDEX8 = "INDEX8";
-static const char* luaEnumString_MeshIndexFormat_INDEX16 = "INDEX16";
-static const char* luaEnumString_MeshIndexFormat_INDEX32 = "INDEX32";
-
-Mesh::IndexFormat lua_enumFromString_MeshIndexFormat(const char* s)
-{
-    if (strcmp(s, luaEnumString_MeshIndexFormat_INDEX8) == 0)
-        return Mesh::INDEX8;
-    if (strcmp(s, luaEnumString_MeshIndexFormat_INDEX16) == 0)
-        return Mesh::INDEX16;
-    if (strcmp(s, luaEnumString_MeshIndexFormat_INDEX32) == 0)
-        return Mesh::INDEX32;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Mesh::IndexFormat.", s);
-    return Mesh::INDEX8;
-}
-
-const char* lua_stringFromEnum_MeshIndexFormat(Mesh::IndexFormat e)
-{
-    if (e == Mesh::INDEX8)
-        return luaEnumString_MeshIndexFormat_INDEX8;
-    if (e == Mesh::INDEX16)
-        return luaEnumString_MeshIndexFormat_INDEX16;
-    if (e == Mesh::INDEX32)
-        return luaEnumString_MeshIndexFormat_INDEX32;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Mesh::IndexFormat.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_MeshPrimitiveType_TRIANGLES = "TRIANGLES";
-static const char* luaEnumString_MeshPrimitiveType_TRIANGLE_STRIP = "TRIANGLE_STRIP";
-static const char* luaEnumString_MeshPrimitiveType_LINES = "LINES";
-static const char* luaEnumString_MeshPrimitiveType_LINE_STRIP = "LINE_STRIP";
-static const char* luaEnumString_MeshPrimitiveType_POINTS = "POINTS";
-
-Mesh::PrimitiveType lua_enumFromString_MeshPrimitiveType(const char* s)
-{
-    if (strcmp(s, luaEnumString_MeshPrimitiveType_TRIANGLES) == 0)
-        return Mesh::TRIANGLES;
-    if (strcmp(s, luaEnumString_MeshPrimitiveType_TRIANGLE_STRIP) == 0)
-        return Mesh::TRIANGLE_STRIP;
-    if (strcmp(s, luaEnumString_MeshPrimitiveType_LINES) == 0)
-        return Mesh::LINES;
-    if (strcmp(s, luaEnumString_MeshPrimitiveType_LINE_STRIP) == 0)
-        return Mesh::LINE_STRIP;
-    if (strcmp(s, luaEnumString_MeshPrimitiveType_POINTS) == 0)
-        return Mesh::POINTS;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Mesh::PrimitiveType.", s);
-    return Mesh::TRIANGLES;
-}
-
-const char* lua_stringFromEnum_MeshPrimitiveType(Mesh::PrimitiveType e)
-{
-    if (e == Mesh::TRIANGLES)
-        return luaEnumString_MeshPrimitiveType_TRIANGLES;
-    if (e == Mesh::TRIANGLE_STRIP)
-        return luaEnumString_MeshPrimitiveType_TRIANGLE_STRIP;
-    if (e == Mesh::LINES)
-        return luaEnumString_MeshPrimitiveType_LINES;
-    if (e == Mesh::LINE_STRIP)
-        return luaEnumString_MeshPrimitiveType_LINE_STRIP;
-    if (e == Mesh::POINTS)
-        return luaEnumString_MeshPrimitiveType_POINTS;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Mesh::PrimitiveType.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_MouseMouseEvent_MOUSE_PRESS_LEFT_BUTTON = "MOUSE_PRESS_LEFT_BUTTON";
-static const char* luaEnumString_MouseMouseEvent_MOUSE_RELEASE_LEFT_BUTTON = "MOUSE_RELEASE_LEFT_BUTTON";
-static const char* luaEnumString_MouseMouseEvent_MOUSE_PRESS_MIDDLE_BUTTON = "MOUSE_PRESS_MIDDLE_BUTTON";
-static const char* luaEnumString_MouseMouseEvent_MOUSE_RELEASE_MIDDLE_BUTTON = "MOUSE_RELEASE_MIDDLE_BUTTON";
-static const char* luaEnumString_MouseMouseEvent_MOUSE_PRESS_RIGHT_BUTTON = "MOUSE_PRESS_RIGHT_BUTTON";
-static const char* luaEnumString_MouseMouseEvent_MOUSE_RELEASE_RIGHT_BUTTON = "MOUSE_RELEASE_RIGHT_BUTTON";
-static const char* luaEnumString_MouseMouseEvent_MOUSE_MOVE = "MOUSE_MOVE";
-static const char* luaEnumString_MouseMouseEvent_MOUSE_WHEEL = "MOUSE_WHEEL";
-
-Mouse::MouseEvent lua_enumFromString_MouseMouseEvent(const char* s)
-{
-    if (strcmp(s, luaEnumString_MouseMouseEvent_MOUSE_PRESS_LEFT_BUTTON) == 0)
-        return Mouse::MOUSE_PRESS_LEFT_BUTTON;
-    if (strcmp(s, luaEnumString_MouseMouseEvent_MOUSE_RELEASE_LEFT_BUTTON) == 0)
-        return Mouse::MOUSE_RELEASE_LEFT_BUTTON;
-    if (strcmp(s, luaEnumString_MouseMouseEvent_MOUSE_PRESS_MIDDLE_BUTTON) == 0)
-        return Mouse::MOUSE_PRESS_MIDDLE_BUTTON;
-    if (strcmp(s, luaEnumString_MouseMouseEvent_MOUSE_RELEASE_MIDDLE_BUTTON) == 0)
-        return Mouse::MOUSE_RELEASE_MIDDLE_BUTTON;
-    if (strcmp(s, luaEnumString_MouseMouseEvent_MOUSE_PRESS_RIGHT_BUTTON) == 0)
-        return Mouse::MOUSE_PRESS_RIGHT_BUTTON;
-    if (strcmp(s, luaEnumString_MouseMouseEvent_MOUSE_RELEASE_RIGHT_BUTTON) == 0)
-        return Mouse::MOUSE_RELEASE_RIGHT_BUTTON;
-    if (strcmp(s, luaEnumString_MouseMouseEvent_MOUSE_MOVE) == 0)
-        return Mouse::MOUSE_MOVE;
-    if (strcmp(s, luaEnumString_MouseMouseEvent_MOUSE_WHEEL) == 0)
-        return Mouse::MOUSE_WHEEL;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Mouse::MouseEvent.", s);
-    return Mouse::MOUSE_PRESS_LEFT_BUTTON;
-}
-
-const char* lua_stringFromEnum_MouseMouseEvent(Mouse::MouseEvent e)
-{
-    if (e == Mouse::MOUSE_PRESS_LEFT_BUTTON)
-        return luaEnumString_MouseMouseEvent_MOUSE_PRESS_LEFT_BUTTON;
-    if (e == Mouse::MOUSE_RELEASE_LEFT_BUTTON)
-        return luaEnumString_MouseMouseEvent_MOUSE_RELEASE_LEFT_BUTTON;
-    if (e == Mouse::MOUSE_PRESS_MIDDLE_BUTTON)
-        return luaEnumString_MouseMouseEvent_MOUSE_PRESS_MIDDLE_BUTTON;
-    if (e == Mouse::MOUSE_RELEASE_MIDDLE_BUTTON)
-        return luaEnumString_MouseMouseEvent_MOUSE_RELEASE_MIDDLE_BUTTON;
-    if (e == Mouse::MOUSE_PRESS_RIGHT_BUTTON)
-        return luaEnumString_MouseMouseEvent_MOUSE_PRESS_RIGHT_BUTTON;
-    if (e == Mouse::MOUSE_RELEASE_RIGHT_BUTTON)
-        return luaEnumString_MouseMouseEvent_MOUSE_RELEASE_RIGHT_BUTTON;
-    if (e == Mouse::MOUSE_MOVE)
-        return luaEnumString_MouseMouseEvent_MOUSE_MOVE;
-    if (e == Mouse::MOUSE_WHEEL)
-        return luaEnumString_MouseMouseEvent_MOUSE_WHEEL;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Mouse::MouseEvent.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_NodeType_NODE = "NODE";
-static const char* luaEnumString_NodeType_JOINT = "JOINT";
-
-Node::Type lua_enumFromString_NodeType(const char* s)
-{
-    if (strcmp(s, luaEnumString_NodeType_NODE) == 0)
-        return Node::NODE;
-    if (strcmp(s, luaEnumString_NodeType_JOINT) == 0)
-        return Node::JOINT;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Node::Type.", s);
-    return Node::NODE;
-}
-
-const char* lua_stringFromEnum_NodeType(Node::Type e)
-{
-    if (e == Node::NODE)
-        return luaEnumString_NodeType_NODE;
-    if (e == Node::JOINT)
-        return luaEnumString_NodeType_JOINT;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Node::Type.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_ParticleEmitterTextureBlending_BLEND_OPAQUE = "BLEND_OPAQUE";
-static const char* luaEnumString_ParticleEmitterTextureBlending_BLEND_TRANSPARENT = "BLEND_TRANSPARENT";
-static const char* luaEnumString_ParticleEmitterTextureBlending_BLEND_ADDITIVE = "BLEND_ADDITIVE";
-static const char* luaEnumString_ParticleEmitterTextureBlending_BLEND_MULTIPLIED = "BLEND_MULTIPLIED";
-
-ParticleEmitter::TextureBlending lua_enumFromString_ParticleEmitterTextureBlending(const char* s)
-{
-    if (strcmp(s, luaEnumString_ParticleEmitterTextureBlending_BLEND_OPAQUE) == 0)
-        return ParticleEmitter::BLEND_OPAQUE;
-    if (strcmp(s, luaEnumString_ParticleEmitterTextureBlending_BLEND_TRANSPARENT) == 0)
-        return ParticleEmitter::BLEND_TRANSPARENT;
-    if (strcmp(s, luaEnumString_ParticleEmitterTextureBlending_BLEND_ADDITIVE) == 0)
-        return ParticleEmitter::BLEND_ADDITIVE;
-    if (strcmp(s, luaEnumString_ParticleEmitterTextureBlending_BLEND_MULTIPLIED) == 0)
-        return ParticleEmitter::BLEND_MULTIPLIED;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration ParticleEmitter::TextureBlending.", s);
-    return ParticleEmitter::BLEND_OPAQUE;
-}
-
-const char* lua_stringFromEnum_ParticleEmitterTextureBlending(ParticleEmitter::TextureBlending e)
-{
-    if (e == ParticleEmitter::BLEND_OPAQUE)
-        return luaEnumString_ParticleEmitterTextureBlending_BLEND_OPAQUE;
-    if (e == ParticleEmitter::BLEND_TRANSPARENT)
-        return luaEnumString_ParticleEmitterTextureBlending_BLEND_TRANSPARENT;
-    if (e == ParticleEmitter::BLEND_ADDITIVE)
-        return luaEnumString_ParticleEmitterTextureBlending_BLEND_ADDITIVE;
-    if (e == ParticleEmitter::BLEND_MULTIPLIED)
-        return luaEnumString_ParticleEmitterTextureBlending_BLEND_MULTIPLIED;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration ParticleEmitter::TextureBlending.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_PhysicsCollisionObjectCollisionListenerEventType_COLLIDING = "COLLIDING";
-static const char* luaEnumString_PhysicsCollisionObjectCollisionListenerEventType_NOT_COLLIDING = "NOT_COLLIDING";
-
-PhysicsCollisionObject::CollisionListener::EventType lua_enumFromString_PhysicsCollisionObjectCollisionListenerEventType(const char* s)
-{
-    if (strcmp(s, luaEnumString_PhysicsCollisionObjectCollisionListenerEventType_COLLIDING) == 0)
-        return PhysicsCollisionObject::CollisionListener::COLLIDING;
-    if (strcmp(s, luaEnumString_PhysicsCollisionObjectCollisionListenerEventType_NOT_COLLIDING) == 0)
-        return PhysicsCollisionObject::CollisionListener::NOT_COLLIDING;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration PhysicsCollisionObject::CollisionListener::EventType.", s);
-    return PhysicsCollisionObject::CollisionListener::COLLIDING;
-}
-
-const char* lua_stringFromEnum_PhysicsCollisionObjectCollisionListenerEventType(PhysicsCollisionObject::CollisionListener::EventType e)
-{
-    if (e == PhysicsCollisionObject::CollisionListener::COLLIDING)
-        return luaEnumString_PhysicsCollisionObjectCollisionListenerEventType_COLLIDING;
-    if (e == PhysicsCollisionObject::CollisionListener::NOT_COLLIDING)
-        return luaEnumString_PhysicsCollisionObjectCollisionListenerEventType_NOT_COLLIDING;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration PhysicsCollisionObject::CollisionListener::EventType.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_PhysicsCollisionObjectType_RIGID_BODY = "RIGID_BODY";
-static const char* luaEnumString_PhysicsCollisionObjectType_CHARACTER = "CHARACTER";
-static const char* luaEnumString_PhysicsCollisionObjectType_GHOST_OBJECT = "GHOST_OBJECT";
-static const char* luaEnumString_PhysicsCollisionObjectType_NONE = "NONE";
-
-PhysicsCollisionObject::Type lua_enumFromString_PhysicsCollisionObjectType(const char* s)
-{
-    if (strcmp(s, luaEnumString_PhysicsCollisionObjectType_RIGID_BODY) == 0)
-        return PhysicsCollisionObject::RIGID_BODY;
-    if (strcmp(s, luaEnumString_PhysicsCollisionObjectType_CHARACTER) == 0)
-        return PhysicsCollisionObject::CHARACTER;
-    if (strcmp(s, luaEnumString_PhysicsCollisionObjectType_GHOST_OBJECT) == 0)
-        return PhysicsCollisionObject::GHOST_OBJECT;
-    if (strcmp(s, luaEnumString_PhysicsCollisionObjectType_NONE) == 0)
-        return PhysicsCollisionObject::NONE;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration PhysicsCollisionObject::Type.", s);
-    return PhysicsCollisionObject::RIGID_BODY;
-}
-
-const char* lua_stringFromEnum_PhysicsCollisionObjectType(PhysicsCollisionObject::Type e)
-{
-    if (e == PhysicsCollisionObject::RIGID_BODY)
-        return luaEnumString_PhysicsCollisionObjectType_RIGID_BODY;
-    if (e == PhysicsCollisionObject::CHARACTER)
-        return luaEnumString_PhysicsCollisionObjectType_CHARACTER;
-    if (e == PhysicsCollisionObject::GHOST_OBJECT)
-        return luaEnumString_PhysicsCollisionObjectType_GHOST_OBJECT;
-    if (e == PhysicsCollisionObject::NONE)
-        return luaEnumString_PhysicsCollisionObjectType_NONE;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration PhysicsCollisionObject::Type.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_PhysicsCollisionShapeType_SHAPE_BOX = "SHAPE_BOX";
-static const char* luaEnumString_PhysicsCollisionShapeType_SHAPE_SPHERE = "SHAPE_SPHERE";
-static const char* luaEnumString_PhysicsCollisionShapeType_SHAPE_CAPSULE = "SHAPE_CAPSULE";
-static const char* luaEnumString_PhysicsCollisionShapeType_SHAPE_MESH = "SHAPE_MESH";
-static const char* luaEnumString_PhysicsCollisionShapeType_SHAPE_HEIGHTFIELD = "SHAPE_HEIGHTFIELD";
-
-PhysicsCollisionShape::Type lua_enumFromString_PhysicsCollisionShapeType(const char* s)
-{
-    if (strcmp(s, luaEnumString_PhysicsCollisionShapeType_SHAPE_BOX) == 0)
-        return PhysicsCollisionShape::SHAPE_BOX;
-    if (strcmp(s, luaEnumString_PhysicsCollisionShapeType_SHAPE_SPHERE) == 0)
-        return PhysicsCollisionShape::SHAPE_SPHERE;
-    if (strcmp(s, luaEnumString_PhysicsCollisionShapeType_SHAPE_CAPSULE) == 0)
-        return PhysicsCollisionShape::SHAPE_CAPSULE;
-    if (strcmp(s, luaEnumString_PhysicsCollisionShapeType_SHAPE_MESH) == 0)
-        return PhysicsCollisionShape::SHAPE_MESH;
-    if (strcmp(s, luaEnumString_PhysicsCollisionShapeType_SHAPE_HEIGHTFIELD) == 0)
-        return PhysicsCollisionShape::SHAPE_HEIGHTFIELD;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration PhysicsCollisionShape::Type.", s);
-    return PhysicsCollisionShape::SHAPE_BOX;
-}
-
-const char* lua_stringFromEnum_PhysicsCollisionShapeType(PhysicsCollisionShape::Type e)
-{
-    if (e == PhysicsCollisionShape::SHAPE_BOX)
-        return luaEnumString_PhysicsCollisionShapeType_SHAPE_BOX;
-    if (e == PhysicsCollisionShape::SHAPE_SPHERE)
-        return luaEnumString_PhysicsCollisionShapeType_SHAPE_SPHERE;
-    if (e == PhysicsCollisionShape::SHAPE_CAPSULE)
-        return luaEnumString_PhysicsCollisionShapeType_SHAPE_CAPSULE;
-    if (e == PhysicsCollisionShape::SHAPE_MESH)
-        return luaEnumString_PhysicsCollisionShapeType_SHAPE_MESH;
-    if (e == PhysicsCollisionShape::SHAPE_HEIGHTFIELD)
-        return luaEnumString_PhysicsCollisionShapeType_SHAPE_HEIGHTFIELD;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration PhysicsCollisionShape::Type.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_PhysicsControllerListenerEventType_ACTIVATED = "ACTIVATED";
-static const char* luaEnumString_PhysicsControllerListenerEventType_DEACTIVATED = "DEACTIVATED";
-
-PhysicsController::Listener::EventType lua_enumFromString_PhysicsControllerListenerEventType(const char* s)
-{
-    if (strcmp(s, luaEnumString_PhysicsControllerListenerEventType_ACTIVATED) == 0)
-        return PhysicsController::Listener::ACTIVATED;
-    if (strcmp(s, luaEnumString_PhysicsControllerListenerEventType_DEACTIVATED) == 0)
-        return PhysicsController::Listener::DEACTIVATED;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration PhysicsController::Listener::EventType.", s);
-    return PhysicsController::Listener::ACTIVATED;
-}
-
-const char* lua_stringFromEnum_PhysicsControllerListenerEventType(PhysicsController::Listener::EventType e)
-{
-    if (e == PhysicsController::Listener::ACTIVATED)
-        return luaEnumString_PhysicsControllerListenerEventType_ACTIVATED;
-    if (e == PhysicsController::Listener::DEACTIVATED)
-        return luaEnumString_PhysicsControllerListenerEventType_DEACTIVATED;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration PhysicsController::Listener::EventType.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_PropertiesType_NONE = "NONE";
-static const char* luaEnumString_PropertiesType_STRING = "STRING";
-static const char* luaEnumString_PropertiesType_NUMBER = "NUMBER";
-static const char* luaEnumString_PropertiesType_VECTOR2 = "VECTOR2";
-static const char* luaEnumString_PropertiesType_VECTOR3 = "VECTOR3";
-static const char* luaEnumString_PropertiesType_VECTOR4 = "VECTOR4";
-static const char* luaEnumString_PropertiesType_MATRIX = "MATRIX";
-
-Properties::Type lua_enumFromString_PropertiesType(const char* s)
-{
-    if (strcmp(s, luaEnumString_PropertiesType_NONE) == 0)
-        return Properties::NONE;
-    if (strcmp(s, luaEnumString_PropertiesType_STRING) == 0)
-        return Properties::STRING;
-    if (strcmp(s, luaEnumString_PropertiesType_NUMBER) == 0)
-        return Properties::NUMBER;
-    if (strcmp(s, luaEnumString_PropertiesType_VECTOR2) == 0)
-        return Properties::VECTOR2;
-    if (strcmp(s, luaEnumString_PropertiesType_VECTOR3) == 0)
-        return Properties::VECTOR3;
-    if (strcmp(s, luaEnumString_PropertiesType_VECTOR4) == 0)
-        return Properties::VECTOR4;
-    if (strcmp(s, luaEnumString_PropertiesType_MATRIX) == 0)
-        return Properties::MATRIX;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Properties::Type.", s);
-    return Properties::NONE;
-}
-
-const char* lua_stringFromEnum_PropertiesType(Properties::Type e)
-{
-    if (e == Properties::NONE)
-        return luaEnumString_PropertiesType_NONE;
-    if (e == Properties::STRING)
-        return luaEnumString_PropertiesType_STRING;
-    if (e == Properties::NUMBER)
-        return luaEnumString_PropertiesType_NUMBER;
-    if (e == Properties::VECTOR2)
-        return luaEnumString_PropertiesType_VECTOR2;
-    if (e == Properties::VECTOR3)
-        return luaEnumString_PropertiesType_VECTOR3;
-    if (e == Properties::VECTOR4)
-        return luaEnumString_PropertiesType_VECTOR4;
-    if (e == Properties::MATRIX)
-        return luaEnumString_PropertiesType_MATRIX;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Properties::Type.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_RenderStateAutoBinding_NONE = "NONE";
-static const char* luaEnumString_RenderStateAutoBinding_WORLD_MATRIX = "WORLD_MATRIX";
-static const char* luaEnumString_RenderStateAutoBinding_VIEW_MATRIX = "VIEW_MATRIX";
-static const char* luaEnumString_RenderStateAutoBinding_PROJECTION_MATRIX = "PROJECTION_MATRIX";
-static const char* luaEnumString_RenderStateAutoBinding_WORLD_VIEW_MATRIX = "WORLD_VIEW_MATRIX";
-static const char* luaEnumString_RenderStateAutoBinding_VIEW_PROJECTION_MATRIX = "VIEW_PROJECTION_MATRIX";
-static const char* luaEnumString_RenderStateAutoBinding_WORLD_VIEW_PROJECTION_MATRIX = "WORLD_VIEW_PROJECTION_MATRIX";
-static const char* luaEnumString_RenderStateAutoBinding_INVERSE_TRANSPOSE_WORLD_MATRIX = "INVERSE_TRANSPOSE_WORLD_MATRIX";
-static const char* luaEnumString_RenderStateAutoBinding_INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX = "INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX";
-static const char* luaEnumString_RenderStateAutoBinding_CAMERA_WORLD_POSITION = "CAMERA_WORLD_POSITION";
-static const char* luaEnumString_RenderStateAutoBinding_CAMERA_VIEW_POSITION = "CAMERA_VIEW_POSITION";
-static const char* luaEnumString_RenderStateAutoBinding_MATRIX_PALETTE = "MATRIX_PALETTE";
-
-RenderState::AutoBinding lua_enumFromString_RenderStateAutoBinding(const char* s)
-{
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_NONE) == 0)
-        return RenderState::NONE;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_WORLD_MATRIX) == 0)
-        return RenderState::WORLD_MATRIX;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_VIEW_MATRIX) == 0)
-        return RenderState::VIEW_MATRIX;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_PROJECTION_MATRIX) == 0)
-        return RenderState::PROJECTION_MATRIX;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_WORLD_VIEW_MATRIX) == 0)
-        return RenderState::WORLD_VIEW_MATRIX;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_VIEW_PROJECTION_MATRIX) == 0)
-        return RenderState::VIEW_PROJECTION_MATRIX;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_WORLD_VIEW_PROJECTION_MATRIX) == 0)
-        return RenderState::WORLD_VIEW_PROJECTION_MATRIX;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_INVERSE_TRANSPOSE_WORLD_MATRIX) == 0)
-        return RenderState::INVERSE_TRANSPOSE_WORLD_MATRIX;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX) == 0)
-        return RenderState::INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_CAMERA_WORLD_POSITION) == 0)
-        return RenderState::CAMERA_WORLD_POSITION;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_CAMERA_VIEW_POSITION) == 0)
-        return RenderState::CAMERA_VIEW_POSITION;
-    if (strcmp(s, luaEnumString_RenderStateAutoBinding_MATRIX_PALETTE) == 0)
-        return RenderState::MATRIX_PALETTE;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration RenderState::AutoBinding.", s);
-    return RenderState::NONE;
-}
-
-const char* lua_stringFromEnum_RenderStateAutoBinding(RenderState::AutoBinding e)
-{
-    if (e == RenderState::NONE)
-        return luaEnumString_RenderStateAutoBinding_NONE;
-    if (e == RenderState::WORLD_MATRIX)
-        return luaEnumString_RenderStateAutoBinding_WORLD_MATRIX;
-    if (e == RenderState::VIEW_MATRIX)
-        return luaEnumString_RenderStateAutoBinding_VIEW_MATRIX;
-    if (e == RenderState::PROJECTION_MATRIX)
-        return luaEnumString_RenderStateAutoBinding_PROJECTION_MATRIX;
-    if (e == RenderState::WORLD_VIEW_MATRIX)
-        return luaEnumString_RenderStateAutoBinding_WORLD_VIEW_MATRIX;
-    if (e == RenderState::VIEW_PROJECTION_MATRIX)
-        return luaEnumString_RenderStateAutoBinding_VIEW_PROJECTION_MATRIX;
-    if (e == RenderState::WORLD_VIEW_PROJECTION_MATRIX)
-        return luaEnumString_RenderStateAutoBinding_WORLD_VIEW_PROJECTION_MATRIX;
-    if (e == RenderState::INVERSE_TRANSPOSE_WORLD_MATRIX)
-        return luaEnumString_RenderStateAutoBinding_INVERSE_TRANSPOSE_WORLD_MATRIX;
-    if (e == RenderState::INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX)
-        return luaEnumString_RenderStateAutoBinding_INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX;
-    if (e == RenderState::CAMERA_WORLD_POSITION)
-        return luaEnumString_RenderStateAutoBinding_CAMERA_WORLD_POSITION;
-    if (e == RenderState::CAMERA_VIEW_POSITION)
-        return luaEnumString_RenderStateAutoBinding_CAMERA_VIEW_POSITION;
-    if (e == RenderState::MATRIX_PALETTE)
-        return luaEnumString_RenderStateAutoBinding_MATRIX_PALETTE;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration RenderState::AutoBinding.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_RenderStateBlend_BLEND_ZERO = "BLEND_ZERO";
-static const char* luaEnumString_RenderStateBlend_BLEND_ONE = "BLEND_ONE";
-static const char* luaEnumString_RenderStateBlend_BLEND_SRC_COLOR = "BLEND_SRC_COLOR";
-static const char* luaEnumString_RenderStateBlend_BLEN_ONE_MINUS_SRC_COLOR = "BLEN_ONE_MINUS_SRC_COLOR";
-static const char* luaEnumString_RenderStateBlend_BLEND_DST_COLOR = "BLEND_DST_COLOR";
-static const char* luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_DST_COLOR = "BLEND_ONE_MINUS_DST_COLOR";
-static const char* luaEnumString_RenderStateBlend_BLEND_SRC_ALPHA = "BLEND_SRC_ALPHA";
-static const char* luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_SRC_ALPHA = "BLEND_ONE_MINUS_SRC_ALPHA";
-static const char* luaEnumString_RenderStateBlend_BLEND_DST_ALPHA = "BLEND_DST_ALPHA";
-static const char* luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_DST_ALPHA = "BLEND_ONE_MINUS_DST_ALPHA";
-static const char* luaEnumString_RenderStateBlend_BLEND_CONSTANT_ALPHA = "BLEND_CONSTANT_ALPHA";
-static const char* luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_CONSTANT_ALPHA = "BLEND_ONE_MINUS_CONSTANT_ALPHA";
-static const char* luaEnumString_RenderStateBlend_BLEND_SRC_ALPHA_SATURATE = "BLEND_SRC_ALPHA_SATURATE";
-
-RenderState::Blend lua_enumFromString_RenderStateBlend(const char* s)
-{
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_ZERO) == 0)
-        return RenderState::BLEND_ZERO;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_ONE) == 0)
-        return RenderState::BLEND_ONE;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_SRC_COLOR) == 0)
-        return RenderState::BLEND_SRC_COLOR;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEN_ONE_MINUS_SRC_COLOR) == 0)
-        return RenderState::BLEN_ONE_MINUS_SRC_COLOR;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_DST_COLOR) == 0)
-        return RenderState::BLEND_DST_COLOR;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_DST_COLOR) == 0)
-        return RenderState::BLEND_ONE_MINUS_DST_COLOR;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_SRC_ALPHA) == 0)
-        return RenderState::BLEND_SRC_ALPHA;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_SRC_ALPHA) == 0)
-        return RenderState::BLEND_ONE_MINUS_SRC_ALPHA;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_DST_ALPHA) == 0)
-        return RenderState::BLEND_DST_ALPHA;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_DST_ALPHA) == 0)
-        return RenderState::BLEND_ONE_MINUS_DST_ALPHA;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_CONSTANT_ALPHA) == 0)
-        return RenderState::BLEND_CONSTANT_ALPHA;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_CONSTANT_ALPHA) == 0)
-        return RenderState::BLEND_ONE_MINUS_CONSTANT_ALPHA;
-    if (strcmp(s, luaEnumString_RenderStateBlend_BLEND_SRC_ALPHA_SATURATE) == 0)
-        return RenderState::BLEND_SRC_ALPHA_SATURATE;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration RenderState::Blend.", s);
-    return RenderState::BLEND_ZERO;
-}
-
-const char* lua_stringFromEnum_RenderStateBlend(RenderState::Blend e)
-{
-    if (e == RenderState::BLEND_ZERO)
-        return luaEnumString_RenderStateBlend_BLEND_ZERO;
-    if (e == RenderState::BLEND_ONE)
-        return luaEnumString_RenderStateBlend_BLEND_ONE;
-    if (e == RenderState::BLEND_SRC_COLOR)
-        return luaEnumString_RenderStateBlend_BLEND_SRC_COLOR;
-    if (e == RenderState::BLEN_ONE_MINUS_SRC_COLOR)
-        return luaEnumString_RenderStateBlend_BLEN_ONE_MINUS_SRC_COLOR;
-    if (e == RenderState::BLEND_DST_COLOR)
-        return luaEnumString_RenderStateBlend_BLEND_DST_COLOR;
-    if (e == RenderState::BLEND_ONE_MINUS_DST_COLOR)
-        return luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_DST_COLOR;
-    if (e == RenderState::BLEND_SRC_ALPHA)
-        return luaEnumString_RenderStateBlend_BLEND_SRC_ALPHA;
-    if (e == RenderState::BLEND_ONE_MINUS_SRC_ALPHA)
-        return luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_SRC_ALPHA;
-    if (e == RenderState::BLEND_DST_ALPHA)
-        return luaEnumString_RenderStateBlend_BLEND_DST_ALPHA;
-    if (e == RenderState::BLEND_ONE_MINUS_DST_ALPHA)
-        return luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_DST_ALPHA;
-    if (e == RenderState::BLEND_CONSTANT_ALPHA)
-        return luaEnumString_RenderStateBlend_BLEND_CONSTANT_ALPHA;
-    if (e == RenderState::BLEND_ONE_MINUS_CONSTANT_ALPHA)
-        return luaEnumString_RenderStateBlend_BLEND_ONE_MINUS_CONSTANT_ALPHA;
-    if (e == RenderState::BLEND_SRC_ALPHA_SATURATE)
-        return luaEnumString_RenderStateBlend_BLEND_SRC_ALPHA_SATURATE;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration RenderState::Blend.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_SceneDebugFlags_DEBUG_BOXES = "DEBUG_BOXES";
-static const char* luaEnumString_SceneDebugFlags_DEBUG_SPHERES = "DEBUG_SPHERES";
-
-Scene::DebugFlags lua_enumFromString_SceneDebugFlags(const char* s)
-{
-    if (strcmp(s, luaEnumString_SceneDebugFlags_DEBUG_BOXES) == 0)
-        return Scene::DEBUG_BOXES;
-    if (strcmp(s, luaEnumString_SceneDebugFlags_DEBUG_SPHERES) == 0)
-        return Scene::DEBUG_SPHERES;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Scene::DebugFlags.", s);
-    return Scene::DEBUG_BOXES;
-}
-
-const char* lua_stringFromEnum_SceneDebugFlags(Scene::DebugFlags e)
-{
-    if (e == Scene::DEBUG_BOXES)
-        return luaEnumString_SceneDebugFlags_DEBUG_BOXES;
-    if (e == Scene::DEBUG_SPHERES)
-        return luaEnumString_SceneDebugFlags_DEBUG_SPHERES;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Scene::DebugFlags.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_TextureFilter_NEAREST = "NEAREST";
-static const char* luaEnumString_TextureFilter_LINEAR = "LINEAR";
-static const char* luaEnumString_TextureFilter_NEAREST_MIPMAP_NEAREST = "NEAREST_MIPMAP_NEAREST";
-static const char* luaEnumString_TextureFilter_LINEAR_MIPMAP_NEAREST = "LINEAR_MIPMAP_NEAREST";
-static const char* luaEnumString_TextureFilter_NEAREST_MIPMAP_LINEAR = "NEAREST_MIPMAP_LINEAR";
-static const char* luaEnumString_TextureFilter_LINEAR_MIPMAP_LINEAR = "LINEAR_MIPMAP_LINEAR";
-
-Texture::Filter lua_enumFromString_TextureFilter(const char* s)
-{
-    if (strcmp(s, luaEnumString_TextureFilter_NEAREST) == 0)
-        return Texture::NEAREST;
-    if (strcmp(s, luaEnumString_TextureFilter_LINEAR) == 0)
-        return Texture::LINEAR;
-    if (strcmp(s, luaEnumString_TextureFilter_NEAREST_MIPMAP_NEAREST) == 0)
-        return Texture::NEAREST_MIPMAP_NEAREST;
-    if (strcmp(s, luaEnumString_TextureFilter_LINEAR_MIPMAP_NEAREST) == 0)
-        return Texture::LINEAR_MIPMAP_NEAREST;
-    if (strcmp(s, luaEnumString_TextureFilter_NEAREST_MIPMAP_LINEAR) == 0)
-        return Texture::NEAREST_MIPMAP_LINEAR;
-    if (strcmp(s, luaEnumString_TextureFilter_LINEAR_MIPMAP_LINEAR) == 0)
-        return Texture::LINEAR_MIPMAP_LINEAR;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Texture::Filter.", s);
-    return Texture::NEAREST;
-}
-
-const char* lua_stringFromEnum_TextureFilter(Texture::Filter e)
-{
-    if (e == Texture::NEAREST)
-        return luaEnumString_TextureFilter_NEAREST;
-    if (e == Texture::LINEAR)
-        return luaEnumString_TextureFilter_LINEAR;
-    if (e == Texture::NEAREST_MIPMAP_NEAREST)
-        return luaEnumString_TextureFilter_NEAREST_MIPMAP_NEAREST;
-    if (e == Texture::LINEAR_MIPMAP_NEAREST)
-        return luaEnumString_TextureFilter_LINEAR_MIPMAP_NEAREST;
-    if (e == Texture::NEAREST_MIPMAP_LINEAR)
-        return luaEnumString_TextureFilter_NEAREST_MIPMAP_LINEAR;
-    if (e == Texture::LINEAR_MIPMAP_LINEAR)
-        return luaEnumString_TextureFilter_LINEAR_MIPMAP_LINEAR;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Texture::Filter.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_TextureFormat_RGB = "RGB";
-static const char* luaEnumString_TextureFormat_RGBA = "RGBA";
-static const char* luaEnumString_TextureFormat_ALPHA = "ALPHA";
-
-Texture::Format lua_enumFromString_TextureFormat(const char* s)
-{
-    if (strcmp(s, luaEnumString_TextureFormat_RGB) == 0)
-        return Texture::RGB;
-    if (strcmp(s, luaEnumString_TextureFormat_RGBA) == 0)
-        return Texture::RGBA;
-    if (strcmp(s, luaEnumString_TextureFormat_ALPHA) == 0)
-        return Texture::ALPHA;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Texture::Format.", s);
-    return Texture::RGB;
-}
-
-const char* lua_stringFromEnum_TextureFormat(Texture::Format e)
-{
-    if (e == Texture::RGB)
-        return luaEnumString_TextureFormat_RGB;
-    if (e == Texture::RGBA)
-        return luaEnumString_TextureFormat_RGBA;
-    if (e == Texture::ALPHA)
-        return luaEnumString_TextureFormat_ALPHA;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Texture::Format.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_TextureWrap_REPEAT = "REPEAT";
-static const char* luaEnumString_TextureWrap_CLAMP = "CLAMP";
-
-Texture::Wrap lua_enumFromString_TextureWrap(const char* s)
-{
-    if (strcmp(s, luaEnumString_TextureWrap_REPEAT) == 0)
-        return Texture::REPEAT;
-    if (strcmp(s, luaEnumString_TextureWrap_CLAMP) == 0)
-        return Texture::CLAMP;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Texture::Wrap.", s);
-    return Texture::REPEAT;
-}
-
-const char* lua_stringFromEnum_TextureWrap(Texture::Wrap e)
-{
-    if (e == Texture::REPEAT)
-        return luaEnumString_TextureWrap_REPEAT;
-    if (e == Texture::CLAMP)
-        return luaEnumString_TextureWrap_CLAMP;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Texture::Wrap.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_TouchTouchEvent_TOUCH_PRESS = "TOUCH_PRESS";
-static const char* luaEnumString_TouchTouchEvent_TOUCH_RELEASE = "TOUCH_RELEASE";
-static const char* luaEnumString_TouchTouchEvent_TOUCH_MOVE = "TOUCH_MOVE";
-
-Touch::TouchEvent lua_enumFromString_TouchTouchEvent(const char* s)
-{
-    if (strcmp(s, luaEnumString_TouchTouchEvent_TOUCH_PRESS) == 0)
-        return Touch::TOUCH_PRESS;
-    if (strcmp(s, luaEnumString_TouchTouchEvent_TOUCH_RELEASE) == 0)
-        return Touch::TOUCH_RELEASE;
-    if (strcmp(s, luaEnumString_TouchTouchEvent_TOUCH_MOVE) == 0)
-        return Touch::TOUCH_MOVE;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration Touch::TouchEvent.", s);
-    return Touch::TOUCH_PRESS;
-}
-
-const char* lua_stringFromEnum_TouchTouchEvent(Touch::TouchEvent e)
-{
-    if (e == Touch::TOUCH_PRESS)
-        return luaEnumString_TouchTouchEvent_TOUCH_PRESS;
-    if (e == Touch::TOUCH_RELEASE)
-        return luaEnumString_TouchTouchEvent_TOUCH_RELEASE;
-    if (e == Touch::TOUCH_MOVE)
-        return luaEnumString_TouchTouchEvent_TOUCH_MOVE;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration Touch::TouchEvent.", e);
-    return enumStringEmpty;
-}
-
-static const char* luaEnumString_VertexFormatUsage_POSITION = "POSITION";
-static const char* luaEnumString_VertexFormatUsage_NORMAL = "NORMAL";
-static const char* luaEnumString_VertexFormatUsage_COLOR = "COLOR";
-static const char* luaEnumString_VertexFormatUsage_TANGENT = "TANGENT";
-static const char* luaEnumString_VertexFormatUsage_BINORMAL = "BINORMAL";
-static const char* luaEnumString_VertexFormatUsage_BLENDWEIGHTS = "BLENDWEIGHTS";
-static const char* luaEnumString_VertexFormatUsage_BLENDINDICES = "BLENDINDICES";
-static const char* luaEnumString_VertexFormatUsage_TEXCOORD0 = "TEXCOORD0";
-static const char* luaEnumString_VertexFormatUsage_TEXCOORD1 = "TEXCOORD1";
-static const char* luaEnumString_VertexFormatUsage_TEXCOORD2 = "TEXCOORD2";
-static const char* luaEnumString_VertexFormatUsage_TEXCOORD3 = "TEXCOORD3";
-static const char* luaEnumString_VertexFormatUsage_TEXCOORD4 = "TEXCOORD4";
-static const char* luaEnumString_VertexFormatUsage_TEXCOORD5 = "TEXCOORD5";
-static const char* luaEnumString_VertexFormatUsage_TEXCOORD6 = "TEXCOORD6";
-static const char* luaEnumString_VertexFormatUsage_TEXCOORD7 = "TEXCOORD7";
-
-VertexFormat::Usage lua_enumFromString_VertexFormatUsage(const char* s)
-{
-    if (strcmp(s, luaEnumString_VertexFormatUsage_POSITION) == 0)
-        return VertexFormat::POSITION;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_NORMAL) == 0)
-        return VertexFormat::NORMAL;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_COLOR) == 0)
-        return VertexFormat::COLOR;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TANGENT) == 0)
-        return VertexFormat::TANGENT;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_BINORMAL) == 0)
-        return VertexFormat::BINORMAL;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_BLENDWEIGHTS) == 0)
-        return VertexFormat::BLENDWEIGHTS;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_BLENDINDICES) == 0)
-        return VertexFormat::BLENDINDICES;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TEXCOORD0) == 0)
-        return VertexFormat::TEXCOORD0;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TEXCOORD1) == 0)
-        return VertexFormat::TEXCOORD1;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TEXCOORD2) == 0)
-        return VertexFormat::TEXCOORD2;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TEXCOORD3) == 0)
-        return VertexFormat::TEXCOORD3;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TEXCOORD4) == 0)
-        return VertexFormat::TEXCOORD4;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TEXCOORD5) == 0)
-        return VertexFormat::TEXCOORD5;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TEXCOORD6) == 0)
-        return VertexFormat::TEXCOORD6;
-    if (strcmp(s, luaEnumString_VertexFormatUsage_TEXCOORD7) == 0)
-        return VertexFormat::TEXCOORD7;
-    GP_ERROR("Invalid enumeration value '%s' for enumeration VertexFormat::Usage.", s);
-    return VertexFormat::POSITION;
-}
-
-const char* lua_stringFromEnum_VertexFormatUsage(VertexFormat::Usage e)
-{
-    if (e == VertexFormat::POSITION)
-        return luaEnumString_VertexFormatUsage_POSITION;
-    if (e == VertexFormat::NORMAL)
-        return luaEnumString_VertexFormatUsage_NORMAL;
-    if (e == VertexFormat::COLOR)
-        return luaEnumString_VertexFormatUsage_COLOR;
-    if (e == VertexFormat::TANGENT)
-        return luaEnumString_VertexFormatUsage_TANGENT;
-    if (e == VertexFormat::BINORMAL)
-        return luaEnumString_VertexFormatUsage_BINORMAL;
-    if (e == VertexFormat::BLENDWEIGHTS)
-        return luaEnumString_VertexFormatUsage_BLENDWEIGHTS;
-    if (e == VertexFormat::BLENDINDICES)
-        return luaEnumString_VertexFormatUsage_BLENDINDICES;
-    if (e == VertexFormat::TEXCOORD0)
-        return luaEnumString_VertexFormatUsage_TEXCOORD0;
-    if (e == VertexFormat::TEXCOORD1)
-        return luaEnumString_VertexFormatUsage_TEXCOORD1;
-    if (e == VertexFormat::TEXCOORD2)
-        return luaEnumString_VertexFormatUsage_TEXCOORD2;
-    if (e == VertexFormat::TEXCOORD3)
-        return luaEnumString_VertexFormatUsage_TEXCOORD3;
-    if (e == VertexFormat::TEXCOORD4)
-        return luaEnumString_VertexFormatUsage_TEXCOORD4;
-    if (e == VertexFormat::TEXCOORD5)
-        return luaEnumString_VertexFormatUsage_TEXCOORD5;
-    if (e == VertexFormat::TEXCOORD6)
-        return luaEnumString_VertexFormatUsage_TEXCOORD6;
-    if (e == VertexFormat::TEXCOORD7)
-        return luaEnumString_VertexFormatUsage_TEXCOORD7;
-    GP_ERROR("Invalid enumeration value '%d' for enumeration VertexFormat::Usage.", e);
-    return enumStringEmpty;
-}
-
 const char* lua_stringFromEnumGlobal(std::string& enumname, unsigned int value)
 {
     if (enumname == "AnimationClip::Listener::EventType")

+ 39 - 175
gameplay/src/lua/lua_Global.h

@@ -1,103 +1,44 @@
 #ifndef LUA_GLOBAL_H_
 #define LUA_GLOBAL_H_
 
-#include "Animation.h"
-#include "AnimationClip.h"
-#include "AnimationController.h"
-#include "AnimationTarget.h"
-#include "AnimationValue.h"
-#include "AudioController.h"
-#include "AudioListener.h"
-#include "AudioSource.h"
-#include "Base.h"
-#include "BoundingBox.h"
-#include "BoundingSphere.h"
-#include "Button.h"
-#include "C:/git/gameplay/gameplay/src/Base.h"
-#include "C:/git/gameplay/gameplay/src/BoundingBox.h"
-#include "C:/git/gameplay/gameplay/src/BoundingSphere.h"
-#include "C:/git/gameplay/gameplay/src/Image.h"
-#include "C:/git/gameplay/gameplay/src/Joystick.h"
-#include "C:/git/gameplay/gameplay/src/Matrix.h"
-#include "C:/git/gameplay/gameplay/src/MeshBatch.h"
-#include "C:/git/gameplay/gameplay/src/PhysicsConstraint.h"
-#include "C:/git/gameplay/gameplay/src/PhysicsFixedConstraint.h"
-#include "C:/git/gameplay/gameplay/src/PhysicsGenericConstraint.h"
-#include "C:/git/gameplay/gameplay/src/PhysicsRigidBody.h"
-#include "C:/git/gameplay/gameplay/src/PhysicsSpringConstraint.h"
-#include "C:/git/gameplay/gameplay/src/Plane.h"
-#include "C:/git/gameplay/gameplay/src/Platform.h"
-#include "C:/git/gameplay/gameplay/src/Quaternion.h"
-#include "C:/git/gameplay/gameplay/src/Ray.h"
-#include "C:/git/gameplay/gameplay/src/ScriptController.h"
-#include "C:/git/gameplay/gameplay/src/Vector2.h"
-#include "C:/git/gameplay/gameplay/src/Vector3.h"
-#include "C:/git/gameplay/gameplay/src/Vector4.h"
-#include "Camera.h"
-#include "Container.h"
-#include "Control.h"
-#include "Curve.h"
-#include "DebugNew.h"
-#include "DepthStencilTarget.h"
-#include "Effect.h"
-#include "Font.h"
-#include "Form.h"
-#include "FrameBuffer.h"
-#include "Frustum.h"
-#include "Game.h"
-#include "Gamepad.h"
-#include "Image.h"
-#include "Joystick.h"
-#include "Keyboard.h"
-#include "Label.h"
-#include "Layout.h"
-#include "Light.h"
-#include "Material.h"
-#include "MaterialParameter.h"
-#include "Matrix.h"
-#include "Mesh.h"
-#include "MeshBatch.h"
-#include "MeshSkin.h"
-#include "Model.h"
-#include "Mouse.h"
-#include "Node.h"
-#include "ParticleEmitter.h"
-#include "Pass.h"
-#include "PhysicsCollisionObject.h"
-#include "PhysicsCollisionShape.h"
-#include "PhysicsConstraint.h"
-#include "PhysicsController.h"
-#include "PhysicsFixedConstraint.h"
-#include "PhysicsGenericConstraint.h"
-#include "PhysicsGhostObject.h"
-#include "PhysicsHingeConstraint.h"
-#include "PhysicsRigidBody.h"
-#include "PhysicsSocketConstraint.h"
-#include "PhysicsSpringConstraint.h"
-#include "Plane.h"
-#include "Platform.h"
-#include "Properties.h"
-#include "Quaternion.h"
-#include "Ray.h"
-#include "Rectangle.h"
-#include "Ref.h"
-#include "RenderState.h"
-#include "RenderTarget.h"
-#include "Scene.h"
-#include "ScriptController.h"
-#include "SpriteBatch.h"
-#include "Technique.h"
-#include "Texture.h"
-#include "Theme.h"
-#include "ThemeStyle.h"
-#include "TimeListener.h"
-#include "Touch.h"
-#include "Transform.h"
-#include "Vector2.h"
-#include "Vector3.h"
-#include "Vector4.h"
-#include "VertexAttributeBinding.h"
-#include "VertexFormat.h"
+#include "lua_AnimationClipListenerEventType.h"
+#include "lua_AudioSourceState.h"
+#include "lua_CameraType.h"
+#include "lua_ContainerScroll.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_DepthStencilTargetFormat.h"
+#include "lua_FontJustify.h"
+#include "lua_FontStyle.h"
+#include "lua_GameClearFlags.h"
+#include "lua_GameState.h"
+#include "lua_GamepadButtonState.h"
+#include "lua_GamepadGamepadEvent.h"
+#include "lua_ImageFormat.h"
+#include "lua_KeyboardKey.h"
+#include "lua_KeyboardKeyEvent.h"
+#include "lua_LayoutType.h"
+#include "lua_LightType.h"
+#include "lua_MeshIndexFormat.h"
+#include "lua_MeshPrimitiveType.h"
+#include "lua_MouseMouseEvent.h"
+#include "lua_NodeType.h"
+#include "lua_ParticleEmitterTextureBlending.h"
+#include "lua_PhysicsCollisionObjectCollisionListenerEventType.h"
+#include "lua_PhysicsCollisionObjectType.h"
+#include "lua_PhysicsCollisionShapeType.h"
+#include "lua_PhysicsControllerListenerEventType.h"
+#include "lua_PropertiesType.h"
+#include "lua_RenderStateAutoBinding.h"
+#include "lua_RenderStateBlend.h"
+#include "lua_SceneDebugFlags.h"
+#include "lua_TextureFilter.h"
+#include "lua_TextureFormat.h"
+#include "lua_TextureWrap.h"
+#include "lua_TouchTouchEvent.h"
+#include "lua_VertexFormatUsage.h"
 
 namespace gameplay
 {
@@ -107,84 +48,7 @@ int lua____al_error_code(lua_State* state);
 int lua____gl_error_code(lua_State* state);
 int lua__printError(lua_State* state);
 
-// Lua bindings for enum conversion functions.
-AnimationClip::Listener::EventType lua_enumFromString_AnimationClipListenerEventType(const char* s);
-const char* lua_stringFromEnum_AnimationClipListenerEventType(AnimationClip::Listener::EventType e);
-AudioSource::State lua_enumFromString_AudioSourceState(const char* s);
-const char* lua_stringFromEnum_AudioSourceState(AudioSource::State e);
-Camera::Type lua_enumFromString_CameraType(const char* s);
-const char* lua_stringFromEnum_CameraType(Camera::Type e);
-Container::Scroll lua_enumFromString_ContainerScroll(const char* s);
-const char* lua_stringFromEnum_ContainerScroll(Container::Scroll e);
-Control::Alignment lua_enumFromString_ControlAlignment(const char* s);
-const char* lua_stringFromEnum_ControlAlignment(Control::Alignment e);
-Control::Listener::EventType lua_enumFromString_ControlListenerEventType(const char* s);
-const char* lua_stringFromEnum_ControlListenerEventType(Control::Listener::EventType e);
-Control::State lua_enumFromString_ControlState(const char* s);
-const char* lua_stringFromEnum_ControlState(Control::State e);
-Curve::InterpolationType lua_enumFromString_CurveInterpolationType(const char* s);
-const char* lua_stringFromEnum_CurveInterpolationType(Curve::InterpolationType e);
-DepthStencilTarget::Format lua_enumFromString_DepthStencilTargetFormat(const char* s);
-const char* lua_stringFromEnum_DepthStencilTargetFormat(DepthStencilTarget::Format e);
-Font::Justify lua_enumFromString_FontJustify(const char* s);
-const char* lua_stringFromEnum_FontJustify(Font::Justify e);
-Font::Style lua_enumFromString_FontStyle(const char* s);
-const char* lua_stringFromEnum_FontStyle(Font::Style e);
-Game::ClearFlags lua_enumFromString_GameClearFlags(const char* s);
-const char* lua_stringFromEnum_GameClearFlags(Game::ClearFlags e);
-Game::State lua_enumFromString_GameState(const char* s);
-const char* lua_stringFromEnum_GameState(Game::State e);
-Gamepad::ButtonState lua_enumFromString_GamepadButtonState(const char* s);
-const char* lua_stringFromEnum_GamepadButtonState(Gamepad::ButtonState e);
-Gamepad::GamepadEvent lua_enumFromString_GamepadGamepadEvent(const char* s);
-const char* lua_stringFromEnum_GamepadGamepadEvent(Gamepad::GamepadEvent e);
-Image::Format lua_enumFromString_ImageFormat(const char* s);
-const char* lua_stringFromEnum_ImageFormat(Image::Format e);
-Keyboard::Key lua_enumFromString_KeyboardKey(const char* s);
-const char* lua_stringFromEnum_KeyboardKey(Keyboard::Key e);
-Keyboard::KeyEvent lua_enumFromString_KeyboardKeyEvent(const char* s);
-const char* lua_stringFromEnum_KeyboardKeyEvent(Keyboard::KeyEvent e);
-Layout::Type lua_enumFromString_LayoutType(const char* s);
-const char* lua_stringFromEnum_LayoutType(Layout::Type e);
-Light::Type lua_enumFromString_LightType(const char* s);
-const char* lua_stringFromEnum_LightType(Light::Type e);
-Mesh::IndexFormat lua_enumFromString_MeshIndexFormat(const char* s);
-const char* lua_stringFromEnum_MeshIndexFormat(Mesh::IndexFormat e);
-Mesh::PrimitiveType lua_enumFromString_MeshPrimitiveType(const char* s);
-const char* lua_stringFromEnum_MeshPrimitiveType(Mesh::PrimitiveType e);
-Mouse::MouseEvent lua_enumFromString_MouseMouseEvent(const char* s);
-const char* lua_stringFromEnum_MouseMouseEvent(Mouse::MouseEvent e);
-Node::Type lua_enumFromString_NodeType(const char* s);
-const char* lua_stringFromEnum_NodeType(Node::Type e);
-ParticleEmitter::TextureBlending lua_enumFromString_ParticleEmitterTextureBlending(const char* s);
-const char* lua_stringFromEnum_ParticleEmitterTextureBlending(ParticleEmitter::TextureBlending e);
-PhysicsCollisionObject::CollisionListener::EventType lua_enumFromString_PhysicsCollisionObjectCollisionListenerEventType(const char* s);
-const char* lua_stringFromEnum_PhysicsCollisionObjectCollisionListenerEventType(PhysicsCollisionObject::CollisionListener::EventType e);
-PhysicsCollisionObject::Type lua_enumFromString_PhysicsCollisionObjectType(const char* s);
-const char* lua_stringFromEnum_PhysicsCollisionObjectType(PhysicsCollisionObject::Type e);
-PhysicsCollisionShape::Type lua_enumFromString_PhysicsCollisionShapeType(const char* s);
-const char* lua_stringFromEnum_PhysicsCollisionShapeType(PhysicsCollisionShape::Type e);
-PhysicsController::Listener::EventType lua_enumFromString_PhysicsControllerListenerEventType(const char* s);
-const char* lua_stringFromEnum_PhysicsControllerListenerEventType(PhysicsController::Listener::EventType e);
-Properties::Type lua_enumFromString_PropertiesType(const char* s);
-const char* lua_stringFromEnum_PropertiesType(Properties::Type e);
-RenderState::AutoBinding lua_enumFromString_RenderStateAutoBinding(const char* s);
-const char* lua_stringFromEnum_RenderStateAutoBinding(RenderState::AutoBinding e);
-RenderState::Blend lua_enumFromString_RenderStateBlend(const char* s);
-const char* lua_stringFromEnum_RenderStateBlend(RenderState::Blend e);
-Scene::DebugFlags lua_enumFromString_SceneDebugFlags(const char* s);
-const char* lua_stringFromEnum_SceneDebugFlags(Scene::DebugFlags e);
-Texture::Filter lua_enumFromString_TextureFilter(const char* s);
-const char* lua_stringFromEnum_TextureFilter(Texture::Filter e);
-Texture::Format lua_enumFromString_TextureFormat(const char* s);
-const char* lua_stringFromEnum_TextureFormat(Texture::Format e);
-Texture::Wrap lua_enumFromString_TextureWrap(const char* s);
-const char* lua_stringFromEnum_TextureWrap(Texture::Wrap e);
-Touch::TouchEvent lua_enumFromString_TouchTouchEvent(const char* s);
-const char* lua_stringFromEnum_TouchTouchEvent(Touch::TouchEvent e);
-VertexFormat::Usage lua_enumFromString_VertexFormatUsage(const char* s);
-const char* lua_stringFromEnum_VertexFormatUsage(VertexFormat::Usage e);
-
+// Global enum to string conversion function (used to pass enums to Lua from C++).
 const char* lua_stringFromEnumGlobal(std::string& enumname, unsigned int value);
 
 void luaRegister_lua_Global();

+ 6 - 2
gameplay/src/lua/lua_Image.cpp

@@ -1,8 +1,12 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Image.h"
 #include "lua_Image.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "FileSystem.h"
+#include "Game.h"
+#include "Image.h"
+#include "Ref.h"
+#include "lua_ImageFormat.h"
 
 namespace gameplay
 {

+ 33 - 0
gameplay/src/lua/lua_ImageFormat.cpp

@@ -0,0 +1,33 @@
+#include "Base.h"
+#include "lua_ImageFormat.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_ImageFormat_RGB = "RGB";
+static const char* luaEnumString_ImageFormat_RGBA = "RGBA";
+
+Image::Format lua_enumFromString_ImageFormat(const char* s)
+{
+    if (strcmp(s, luaEnumString_ImageFormat_RGB) == 0)
+        return Image::RGB;
+    if (strcmp(s, luaEnumString_ImageFormat_RGBA) == 0)
+        return Image::RGBA;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Image::Format.", s);
+    return Image::RGB;
+}
+
+const char* lua_stringFromEnum_ImageFormat(Image::Format e)
+{
+    if (e == Image::RGB)
+        return luaEnumString_ImageFormat_RGB;
+    if (e == Image::RGBA)
+        return luaEnumString_ImageFormat_RGBA;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Image::Format.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_ImageFormat.h

@@ -0,0 +1,15 @@
+#ifndef LUA_IMAGEFORMAT_H_
+#define LUA_IMAGEFORMAT_H_
+
+#include "Image.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Image::Format.
+Image::Format lua_enumFromString_ImageFormat(const char* s);
+const char* lua_stringFromEnum_ImageFormat(Image::Format e);
+
+}
+
+#endif

+ 17 - 2
gameplay/src/lua/lua_Joint.cpp

@@ -1,8 +1,23 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Joint.h"
 #include "lua_Joint.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "AudioSource.h"
+#include "Base.h"
+#include "Game.h"
+#include "Joint.h"
+#include "MeshSkin.h"
+#include "Node.h"
+#include "PhysicsCharacter.h"
+#include "PhysicsGhostObject.h"
+#include "PhysicsRigidBody.h"
+#include "Ref.h"
+#include "Scene.h"
+#include "Transform.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_NodeType.h"
+#include "lua_PhysicsCollisionObjectType.h"
 
 namespace gameplay
 {

+ 13 - 2
gameplay/src/lua/lua_Joystick.cpp

@@ -1,8 +1,19 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Joystick.h"
 #include "lua_Joystick.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Control.h"
+#include "Game.h"
+#include "Joystick.h"
+#include "Node.h"
+#include "Ref.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_FontJustify.h"
 
 namespace gameplay
 {

+ 1 - 2
gameplay/src/lua/lua_Keyboard.cpp

@@ -1,8 +1,7 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Keyboard.h"
 #include "lua_Keyboard.h"
-#include "lua_Global.h"
+#include "Keyboard.h"
 
 namespace gameplay
 {

+ 803 - 0
gameplay/src/lua/lua_KeyboardKey.cpp

@@ -0,0 +1,803 @@
+#include "Base.h"
+#include "lua_KeyboardKey.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_KeyboardKey_KEY_NONE = "KEY_NONE";
+static const char* luaEnumString_KeyboardKey_KEY_PAUSE = "KEY_PAUSE";
+static const char* luaEnumString_KeyboardKey_KEY_SCROLL_LOCK = "KEY_SCROLL_LOCK";
+static const char* luaEnumString_KeyboardKey_KEY_PRINT = "KEY_PRINT";
+static const char* luaEnumString_KeyboardKey_KEY_SYSREQ = "KEY_SYSREQ";
+static const char* luaEnumString_KeyboardKey_KEY_BREAK = "KEY_BREAK";
+static const char* luaEnumString_KeyboardKey_KEY_ESCAPE = "KEY_ESCAPE";
+static const char* luaEnumString_KeyboardKey_KEY_BACKSPACE = "KEY_BACKSPACE";
+static const char* luaEnumString_KeyboardKey_KEY_TAB = "KEY_TAB";
+static const char* luaEnumString_KeyboardKey_KEY_BACK_TAB = "KEY_BACK_TAB";
+static const char* luaEnumString_KeyboardKey_KEY_RETURN = "KEY_RETURN";
+static const char* luaEnumString_KeyboardKey_KEY_CAPS_LOCK = "KEY_CAPS_LOCK";
+static const char* luaEnumString_KeyboardKey_KEY_SHIFT = "KEY_SHIFT";
+static const char* luaEnumString_KeyboardKey_KEY_CTRL = "KEY_CTRL";
+static const char* luaEnumString_KeyboardKey_KEY_ALT = "KEY_ALT";
+static const char* luaEnumString_KeyboardKey_KEY_MENU = "KEY_MENU";
+static const char* luaEnumString_KeyboardKey_KEY_HYPER = "KEY_HYPER";
+static const char* luaEnumString_KeyboardKey_KEY_INSERT = "KEY_INSERT";
+static const char* luaEnumString_KeyboardKey_KEY_HOME = "KEY_HOME";
+static const char* luaEnumString_KeyboardKey_KEY_PG_UP = "KEY_PG_UP";
+static const char* luaEnumString_KeyboardKey_KEY_DELETE = "KEY_DELETE";
+static const char* luaEnumString_KeyboardKey_KEY_END = "KEY_END";
+static const char* luaEnumString_KeyboardKey_KEY_PG_DOWN = "KEY_PG_DOWN";
+static const char* luaEnumString_KeyboardKey_KEY_LEFT_ARROW = "KEY_LEFT_ARROW";
+static const char* luaEnumString_KeyboardKey_KEY_RIGHT_ARROW = "KEY_RIGHT_ARROW";
+static const char* luaEnumString_KeyboardKey_KEY_UP_ARROW = "KEY_UP_ARROW";
+static const char* luaEnumString_KeyboardKey_KEY_DOWN_ARROW = "KEY_DOWN_ARROW";
+static const char* luaEnumString_KeyboardKey_KEY_NUM_LOCK = "KEY_NUM_LOCK";
+static const char* luaEnumString_KeyboardKey_KEY_KP_PLUS = "KEY_KP_PLUS";
+static const char* luaEnumString_KeyboardKey_KEY_KP_MINUS = "KEY_KP_MINUS";
+static const char* luaEnumString_KeyboardKey_KEY_KP_MULTIPLY = "KEY_KP_MULTIPLY";
+static const char* luaEnumString_KeyboardKey_KEY_KP_DIVIDE = "KEY_KP_DIVIDE";
+static const char* luaEnumString_KeyboardKey_KEY_KP_ENTER = "KEY_KP_ENTER";
+static const char* luaEnumString_KeyboardKey_KEY_KP_HOME = "KEY_KP_HOME";
+static const char* luaEnumString_KeyboardKey_KEY_KP_UP = "KEY_KP_UP";
+static const char* luaEnumString_KeyboardKey_KEY_KP_PG_UP = "KEY_KP_PG_UP";
+static const char* luaEnumString_KeyboardKey_KEY_KP_LEFT = "KEY_KP_LEFT";
+static const char* luaEnumString_KeyboardKey_KEY_KP_FIVE = "KEY_KP_FIVE";
+static const char* luaEnumString_KeyboardKey_KEY_KP_RIGHT = "KEY_KP_RIGHT";
+static const char* luaEnumString_KeyboardKey_KEY_KP_END = "KEY_KP_END";
+static const char* luaEnumString_KeyboardKey_KEY_KP_DOWN = "KEY_KP_DOWN";
+static const char* luaEnumString_KeyboardKey_KEY_KP_PG_DOWN = "KEY_KP_PG_DOWN";
+static const char* luaEnumString_KeyboardKey_KEY_KP_INSERT = "KEY_KP_INSERT";
+static const char* luaEnumString_KeyboardKey_KEY_KP_DELETE = "KEY_KP_DELETE";
+static const char* luaEnumString_KeyboardKey_KEY_F1 = "KEY_F1";
+static const char* luaEnumString_KeyboardKey_KEY_F2 = "KEY_F2";
+static const char* luaEnumString_KeyboardKey_KEY_F3 = "KEY_F3";
+static const char* luaEnumString_KeyboardKey_KEY_F4 = "KEY_F4";
+static const char* luaEnumString_KeyboardKey_KEY_F5 = "KEY_F5";
+static const char* luaEnumString_KeyboardKey_KEY_F6 = "KEY_F6";
+static const char* luaEnumString_KeyboardKey_KEY_F7 = "KEY_F7";
+static const char* luaEnumString_KeyboardKey_KEY_F8 = "KEY_F8";
+static const char* luaEnumString_KeyboardKey_KEY_F9 = "KEY_F9";
+static const char* luaEnumString_KeyboardKey_KEY_F10 = "KEY_F10";
+static const char* luaEnumString_KeyboardKey_KEY_F11 = "KEY_F11";
+static const char* luaEnumString_KeyboardKey_KEY_F12 = "KEY_F12";
+static const char* luaEnumString_KeyboardKey_KEY_SPACE = "KEY_SPACE";
+static const char* luaEnumString_KeyboardKey_KEY_EXCLAM = "KEY_EXCLAM";
+static const char* luaEnumString_KeyboardKey_KEY_QUOTE = "KEY_QUOTE";
+static const char* luaEnumString_KeyboardKey_KEY_NUMBER = "KEY_NUMBER";
+static const char* luaEnumString_KeyboardKey_KEY_DOLLAR = "KEY_DOLLAR";
+static const char* luaEnumString_KeyboardKey_KEY_PERCENT = "KEY_PERCENT";
+static const char* luaEnumString_KeyboardKey_KEY_CIRCUMFLEX = "KEY_CIRCUMFLEX";
+static const char* luaEnumString_KeyboardKey_KEY_AMPERSAND = "KEY_AMPERSAND";
+static const char* luaEnumString_KeyboardKey_KEY_APOSTROPHE = "KEY_APOSTROPHE";
+static const char* luaEnumString_KeyboardKey_KEY_LEFT_PARENTHESIS = "KEY_LEFT_PARENTHESIS";
+static const char* luaEnumString_KeyboardKey_KEY_RIGHT_PARENTHESIS = "KEY_RIGHT_PARENTHESIS";
+static const char* luaEnumString_KeyboardKey_KEY_ASTERISK = "KEY_ASTERISK";
+static const char* luaEnumString_KeyboardKey_KEY_PLUS = "KEY_PLUS";
+static const char* luaEnumString_KeyboardKey_KEY_COMMA = "KEY_COMMA";
+static const char* luaEnumString_KeyboardKey_KEY_MINUS = "KEY_MINUS";
+static const char* luaEnumString_KeyboardKey_KEY_PERIOD = "KEY_PERIOD";
+static const char* luaEnumString_KeyboardKey_KEY_SLASH = "KEY_SLASH";
+static const char* luaEnumString_KeyboardKey_KEY_ZERO = "KEY_ZERO";
+static const char* luaEnumString_KeyboardKey_KEY_ONE = "KEY_ONE";
+static const char* luaEnumString_KeyboardKey_KEY_TWO = "KEY_TWO";
+static const char* luaEnumString_KeyboardKey_KEY_THREE = "KEY_THREE";
+static const char* luaEnumString_KeyboardKey_KEY_FOUR = "KEY_FOUR";
+static const char* luaEnumString_KeyboardKey_KEY_FIVE = "KEY_FIVE";
+static const char* luaEnumString_KeyboardKey_KEY_SIX = "KEY_SIX";
+static const char* luaEnumString_KeyboardKey_KEY_SEVEN = "KEY_SEVEN";
+static const char* luaEnumString_KeyboardKey_KEY_EIGHT = "KEY_EIGHT";
+static const char* luaEnumString_KeyboardKey_KEY_NINE = "KEY_NINE";
+static const char* luaEnumString_KeyboardKey_KEY_COLON = "KEY_COLON";
+static const char* luaEnumString_KeyboardKey_KEY_SEMICOLON = "KEY_SEMICOLON";
+static const char* luaEnumString_KeyboardKey_KEY_LESS_THAN = "KEY_LESS_THAN";
+static const char* luaEnumString_KeyboardKey_KEY_EQUAL = "KEY_EQUAL";
+static const char* luaEnumString_KeyboardKey_KEY_GREATER_THAN = "KEY_GREATER_THAN";
+static const char* luaEnumString_KeyboardKey_KEY_QUESTION = "KEY_QUESTION";
+static const char* luaEnumString_KeyboardKey_KEY_AT = "KEY_AT";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_A = "KEY_CAPITAL_A";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_B = "KEY_CAPITAL_B";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_C = "KEY_CAPITAL_C";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_D = "KEY_CAPITAL_D";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_E = "KEY_CAPITAL_E";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_F = "KEY_CAPITAL_F";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_G = "KEY_CAPITAL_G";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_H = "KEY_CAPITAL_H";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_I = "KEY_CAPITAL_I";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_J = "KEY_CAPITAL_J";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_K = "KEY_CAPITAL_K";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_L = "KEY_CAPITAL_L";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_M = "KEY_CAPITAL_M";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_N = "KEY_CAPITAL_N";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_O = "KEY_CAPITAL_O";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_P = "KEY_CAPITAL_P";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_Q = "KEY_CAPITAL_Q";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_R = "KEY_CAPITAL_R";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_S = "KEY_CAPITAL_S";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_T = "KEY_CAPITAL_T";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_U = "KEY_CAPITAL_U";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_V = "KEY_CAPITAL_V";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_W = "KEY_CAPITAL_W";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_X = "KEY_CAPITAL_X";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_Y = "KEY_CAPITAL_Y";
+static const char* luaEnumString_KeyboardKey_KEY_CAPITAL_Z = "KEY_CAPITAL_Z";
+static const char* luaEnumString_KeyboardKey_KEY_LEFT_BRACKET = "KEY_LEFT_BRACKET";
+static const char* luaEnumString_KeyboardKey_KEY_BACK_SLASH = "KEY_BACK_SLASH";
+static const char* luaEnumString_KeyboardKey_KEY_RIGHT_BRACKET = "KEY_RIGHT_BRACKET";
+static const char* luaEnumString_KeyboardKey_KEY_UNDERSCORE = "KEY_UNDERSCORE";
+static const char* luaEnumString_KeyboardKey_KEY_GRAVE = "KEY_GRAVE";
+static const char* luaEnumString_KeyboardKey_KEY_A = "KEY_A";
+static const char* luaEnumString_KeyboardKey_KEY_B = "KEY_B";
+static const char* luaEnumString_KeyboardKey_KEY_C = "KEY_C";
+static const char* luaEnumString_KeyboardKey_KEY_D = "KEY_D";
+static const char* luaEnumString_KeyboardKey_KEY_E = "KEY_E";
+static const char* luaEnumString_KeyboardKey_KEY_F = "KEY_F";
+static const char* luaEnumString_KeyboardKey_KEY_G = "KEY_G";
+static const char* luaEnumString_KeyboardKey_KEY_H = "KEY_H";
+static const char* luaEnumString_KeyboardKey_KEY_I = "KEY_I";
+static const char* luaEnumString_KeyboardKey_KEY_J = "KEY_J";
+static const char* luaEnumString_KeyboardKey_KEY_K = "KEY_K";
+static const char* luaEnumString_KeyboardKey_KEY_L = "KEY_L";
+static const char* luaEnumString_KeyboardKey_KEY_M = "KEY_M";
+static const char* luaEnumString_KeyboardKey_KEY_N = "KEY_N";
+static const char* luaEnumString_KeyboardKey_KEY_O = "KEY_O";
+static const char* luaEnumString_KeyboardKey_KEY_P = "KEY_P";
+static const char* luaEnumString_KeyboardKey_KEY_Q = "KEY_Q";
+static const char* luaEnumString_KeyboardKey_KEY_R = "KEY_R";
+static const char* luaEnumString_KeyboardKey_KEY_S = "KEY_S";
+static const char* luaEnumString_KeyboardKey_KEY_T = "KEY_T";
+static const char* luaEnumString_KeyboardKey_KEY_U = "KEY_U";
+static const char* luaEnumString_KeyboardKey_KEY_V = "KEY_V";
+static const char* luaEnumString_KeyboardKey_KEY_W = "KEY_W";
+static const char* luaEnumString_KeyboardKey_KEY_X = "KEY_X";
+static const char* luaEnumString_KeyboardKey_KEY_Y = "KEY_Y";
+static const char* luaEnumString_KeyboardKey_KEY_Z = "KEY_Z";
+static const char* luaEnumString_KeyboardKey_KEY_LEFT_BRACE = "KEY_LEFT_BRACE";
+static const char* luaEnumString_KeyboardKey_KEY_BAR = "KEY_BAR";
+static const char* luaEnumString_KeyboardKey_KEY_RIGHT_BRACE = "KEY_RIGHT_BRACE";
+static const char* luaEnumString_KeyboardKey_KEY_TILDE = "KEY_TILDE";
+static const char* luaEnumString_KeyboardKey_KEY_EURO = "KEY_EURO";
+static const char* luaEnumString_KeyboardKey_KEY_POUND = "KEY_POUND";
+static const char* luaEnumString_KeyboardKey_KEY_YEN = "KEY_YEN";
+static const char* luaEnumString_KeyboardKey_KEY_MIDDLE_DOT = "KEY_MIDDLE_DOT";
+static const char* luaEnumString_KeyboardKey_KEY_SEARCH = "KEY_SEARCH";
+
+Keyboard::Key lua_enumFromString_KeyboardKey(const char* s)
+{
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_NONE) == 0)
+        return Keyboard::KEY_NONE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PAUSE) == 0)
+        return Keyboard::KEY_PAUSE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SCROLL_LOCK) == 0)
+        return Keyboard::KEY_SCROLL_LOCK;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PRINT) == 0)
+        return Keyboard::KEY_PRINT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SYSREQ) == 0)
+        return Keyboard::KEY_SYSREQ;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BREAK) == 0)
+        return Keyboard::KEY_BREAK;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ESCAPE) == 0)
+        return Keyboard::KEY_ESCAPE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BACKSPACE) == 0)
+        return Keyboard::KEY_BACKSPACE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_TAB) == 0)
+        return Keyboard::KEY_TAB;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BACK_TAB) == 0)
+        return Keyboard::KEY_BACK_TAB;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RETURN) == 0)
+        return Keyboard::KEY_RETURN;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPS_LOCK) == 0)
+        return Keyboard::KEY_CAPS_LOCK;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SHIFT) == 0)
+        return Keyboard::KEY_SHIFT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CTRL) == 0)
+        return Keyboard::KEY_CTRL;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ALT) == 0)
+        return Keyboard::KEY_ALT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_MENU) == 0)
+        return Keyboard::KEY_MENU;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_HYPER) == 0)
+        return Keyboard::KEY_HYPER;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_INSERT) == 0)
+        return Keyboard::KEY_INSERT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_HOME) == 0)
+        return Keyboard::KEY_HOME;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PG_UP) == 0)
+        return Keyboard::KEY_PG_UP;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_DELETE) == 0)
+        return Keyboard::KEY_DELETE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_END) == 0)
+        return Keyboard::KEY_END;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PG_DOWN) == 0)
+        return Keyboard::KEY_PG_DOWN;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LEFT_ARROW) == 0)
+        return Keyboard::KEY_LEFT_ARROW;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RIGHT_ARROW) == 0)
+        return Keyboard::KEY_RIGHT_ARROW;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_UP_ARROW) == 0)
+        return Keyboard::KEY_UP_ARROW;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_DOWN_ARROW) == 0)
+        return Keyboard::KEY_DOWN_ARROW;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_NUM_LOCK) == 0)
+        return Keyboard::KEY_NUM_LOCK;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_PLUS) == 0)
+        return Keyboard::KEY_KP_PLUS;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_MINUS) == 0)
+        return Keyboard::KEY_KP_MINUS;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_MULTIPLY) == 0)
+        return Keyboard::KEY_KP_MULTIPLY;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_DIVIDE) == 0)
+        return Keyboard::KEY_KP_DIVIDE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_ENTER) == 0)
+        return Keyboard::KEY_KP_ENTER;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_HOME) == 0)
+        return Keyboard::KEY_KP_HOME;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_UP) == 0)
+        return Keyboard::KEY_KP_UP;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_PG_UP) == 0)
+        return Keyboard::KEY_KP_PG_UP;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_LEFT) == 0)
+        return Keyboard::KEY_KP_LEFT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_FIVE) == 0)
+        return Keyboard::KEY_KP_FIVE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_RIGHT) == 0)
+        return Keyboard::KEY_KP_RIGHT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_END) == 0)
+        return Keyboard::KEY_KP_END;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_DOWN) == 0)
+        return Keyboard::KEY_KP_DOWN;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_PG_DOWN) == 0)
+        return Keyboard::KEY_KP_PG_DOWN;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_INSERT) == 0)
+        return Keyboard::KEY_KP_INSERT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_KP_DELETE) == 0)
+        return Keyboard::KEY_KP_DELETE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F1) == 0)
+        return Keyboard::KEY_F1;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F2) == 0)
+        return Keyboard::KEY_F2;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F3) == 0)
+        return Keyboard::KEY_F3;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F4) == 0)
+        return Keyboard::KEY_F4;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F5) == 0)
+        return Keyboard::KEY_F5;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F6) == 0)
+        return Keyboard::KEY_F6;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F7) == 0)
+        return Keyboard::KEY_F7;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F8) == 0)
+        return Keyboard::KEY_F8;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F9) == 0)
+        return Keyboard::KEY_F9;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F10) == 0)
+        return Keyboard::KEY_F10;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F11) == 0)
+        return Keyboard::KEY_F11;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F12) == 0)
+        return Keyboard::KEY_F12;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SPACE) == 0)
+        return Keyboard::KEY_SPACE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_EXCLAM) == 0)
+        return Keyboard::KEY_EXCLAM;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_QUOTE) == 0)
+        return Keyboard::KEY_QUOTE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_NUMBER) == 0)
+        return Keyboard::KEY_NUMBER;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_DOLLAR) == 0)
+        return Keyboard::KEY_DOLLAR;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PERCENT) == 0)
+        return Keyboard::KEY_PERCENT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CIRCUMFLEX) == 0)
+        return Keyboard::KEY_CIRCUMFLEX;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_AMPERSAND) == 0)
+        return Keyboard::KEY_AMPERSAND;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_APOSTROPHE) == 0)
+        return Keyboard::KEY_APOSTROPHE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LEFT_PARENTHESIS) == 0)
+        return Keyboard::KEY_LEFT_PARENTHESIS;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RIGHT_PARENTHESIS) == 0)
+        return Keyboard::KEY_RIGHT_PARENTHESIS;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ASTERISK) == 0)
+        return Keyboard::KEY_ASTERISK;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PLUS) == 0)
+        return Keyboard::KEY_PLUS;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_COMMA) == 0)
+        return Keyboard::KEY_COMMA;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_MINUS) == 0)
+        return Keyboard::KEY_MINUS;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_PERIOD) == 0)
+        return Keyboard::KEY_PERIOD;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SLASH) == 0)
+        return Keyboard::KEY_SLASH;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ZERO) == 0)
+        return Keyboard::KEY_ZERO;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_ONE) == 0)
+        return Keyboard::KEY_ONE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_TWO) == 0)
+        return Keyboard::KEY_TWO;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_THREE) == 0)
+        return Keyboard::KEY_THREE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_FOUR) == 0)
+        return Keyboard::KEY_FOUR;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_FIVE) == 0)
+        return Keyboard::KEY_FIVE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SIX) == 0)
+        return Keyboard::KEY_SIX;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SEVEN) == 0)
+        return Keyboard::KEY_SEVEN;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_EIGHT) == 0)
+        return Keyboard::KEY_EIGHT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_NINE) == 0)
+        return Keyboard::KEY_NINE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_COLON) == 0)
+        return Keyboard::KEY_COLON;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SEMICOLON) == 0)
+        return Keyboard::KEY_SEMICOLON;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LESS_THAN) == 0)
+        return Keyboard::KEY_LESS_THAN;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_EQUAL) == 0)
+        return Keyboard::KEY_EQUAL;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_GREATER_THAN) == 0)
+        return Keyboard::KEY_GREATER_THAN;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_QUESTION) == 0)
+        return Keyboard::KEY_QUESTION;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_AT) == 0)
+        return Keyboard::KEY_AT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_A) == 0)
+        return Keyboard::KEY_CAPITAL_A;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_B) == 0)
+        return Keyboard::KEY_CAPITAL_B;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_C) == 0)
+        return Keyboard::KEY_CAPITAL_C;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_D) == 0)
+        return Keyboard::KEY_CAPITAL_D;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_E) == 0)
+        return Keyboard::KEY_CAPITAL_E;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_F) == 0)
+        return Keyboard::KEY_CAPITAL_F;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_G) == 0)
+        return Keyboard::KEY_CAPITAL_G;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_H) == 0)
+        return Keyboard::KEY_CAPITAL_H;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_I) == 0)
+        return Keyboard::KEY_CAPITAL_I;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_J) == 0)
+        return Keyboard::KEY_CAPITAL_J;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_K) == 0)
+        return Keyboard::KEY_CAPITAL_K;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_L) == 0)
+        return Keyboard::KEY_CAPITAL_L;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_M) == 0)
+        return Keyboard::KEY_CAPITAL_M;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_N) == 0)
+        return Keyboard::KEY_CAPITAL_N;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_O) == 0)
+        return Keyboard::KEY_CAPITAL_O;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_P) == 0)
+        return Keyboard::KEY_CAPITAL_P;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_Q) == 0)
+        return Keyboard::KEY_CAPITAL_Q;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_R) == 0)
+        return Keyboard::KEY_CAPITAL_R;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_S) == 0)
+        return Keyboard::KEY_CAPITAL_S;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_T) == 0)
+        return Keyboard::KEY_CAPITAL_T;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_U) == 0)
+        return Keyboard::KEY_CAPITAL_U;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_V) == 0)
+        return Keyboard::KEY_CAPITAL_V;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_W) == 0)
+        return Keyboard::KEY_CAPITAL_W;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_X) == 0)
+        return Keyboard::KEY_CAPITAL_X;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_Y) == 0)
+        return Keyboard::KEY_CAPITAL_Y;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_CAPITAL_Z) == 0)
+        return Keyboard::KEY_CAPITAL_Z;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LEFT_BRACKET) == 0)
+        return Keyboard::KEY_LEFT_BRACKET;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BACK_SLASH) == 0)
+        return Keyboard::KEY_BACK_SLASH;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RIGHT_BRACKET) == 0)
+        return Keyboard::KEY_RIGHT_BRACKET;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_UNDERSCORE) == 0)
+        return Keyboard::KEY_UNDERSCORE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_GRAVE) == 0)
+        return Keyboard::KEY_GRAVE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_A) == 0)
+        return Keyboard::KEY_A;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_B) == 0)
+        return Keyboard::KEY_B;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_C) == 0)
+        return Keyboard::KEY_C;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_D) == 0)
+        return Keyboard::KEY_D;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_E) == 0)
+        return Keyboard::KEY_E;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_F) == 0)
+        return Keyboard::KEY_F;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_G) == 0)
+        return Keyboard::KEY_G;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_H) == 0)
+        return Keyboard::KEY_H;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_I) == 0)
+        return Keyboard::KEY_I;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_J) == 0)
+        return Keyboard::KEY_J;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_K) == 0)
+        return Keyboard::KEY_K;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_L) == 0)
+        return Keyboard::KEY_L;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_M) == 0)
+        return Keyboard::KEY_M;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_N) == 0)
+        return Keyboard::KEY_N;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_O) == 0)
+        return Keyboard::KEY_O;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_P) == 0)
+        return Keyboard::KEY_P;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_Q) == 0)
+        return Keyboard::KEY_Q;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_R) == 0)
+        return Keyboard::KEY_R;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_S) == 0)
+        return Keyboard::KEY_S;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_T) == 0)
+        return Keyboard::KEY_T;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_U) == 0)
+        return Keyboard::KEY_U;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_V) == 0)
+        return Keyboard::KEY_V;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_W) == 0)
+        return Keyboard::KEY_W;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_X) == 0)
+        return Keyboard::KEY_X;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_Y) == 0)
+        return Keyboard::KEY_Y;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_Z) == 0)
+        return Keyboard::KEY_Z;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_LEFT_BRACE) == 0)
+        return Keyboard::KEY_LEFT_BRACE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_BAR) == 0)
+        return Keyboard::KEY_BAR;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_RIGHT_BRACE) == 0)
+        return Keyboard::KEY_RIGHT_BRACE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_TILDE) == 0)
+        return Keyboard::KEY_TILDE;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_EURO) == 0)
+        return Keyboard::KEY_EURO;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_POUND) == 0)
+        return Keyboard::KEY_POUND;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_YEN) == 0)
+        return Keyboard::KEY_YEN;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_MIDDLE_DOT) == 0)
+        return Keyboard::KEY_MIDDLE_DOT;
+    if (strcmp(s, luaEnumString_KeyboardKey_KEY_SEARCH) == 0)
+        return Keyboard::KEY_SEARCH;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Keyboard::Key.", s);
+    return Keyboard::KEY_NONE;
+}
+
+const char* lua_stringFromEnum_KeyboardKey(Keyboard::Key e)
+{
+    if (e == Keyboard::KEY_NONE)
+        return luaEnumString_KeyboardKey_KEY_NONE;
+    if (e == Keyboard::KEY_PAUSE)
+        return luaEnumString_KeyboardKey_KEY_PAUSE;
+    if (e == Keyboard::KEY_SCROLL_LOCK)
+        return luaEnumString_KeyboardKey_KEY_SCROLL_LOCK;
+    if (e == Keyboard::KEY_PRINT)
+        return luaEnumString_KeyboardKey_KEY_PRINT;
+    if (e == Keyboard::KEY_SYSREQ)
+        return luaEnumString_KeyboardKey_KEY_SYSREQ;
+    if (e == Keyboard::KEY_BREAK)
+        return luaEnumString_KeyboardKey_KEY_BREAK;
+    if (e == Keyboard::KEY_ESCAPE)
+        return luaEnumString_KeyboardKey_KEY_ESCAPE;
+    if (e == Keyboard::KEY_BACKSPACE)
+        return luaEnumString_KeyboardKey_KEY_BACKSPACE;
+    if (e == Keyboard::KEY_TAB)
+        return luaEnumString_KeyboardKey_KEY_TAB;
+    if (e == Keyboard::KEY_BACK_TAB)
+        return luaEnumString_KeyboardKey_KEY_BACK_TAB;
+    if (e == Keyboard::KEY_RETURN)
+        return luaEnumString_KeyboardKey_KEY_RETURN;
+    if (e == Keyboard::KEY_CAPS_LOCK)
+        return luaEnumString_KeyboardKey_KEY_CAPS_LOCK;
+    if (e == Keyboard::KEY_SHIFT)
+        return luaEnumString_KeyboardKey_KEY_SHIFT;
+    if (e == Keyboard::KEY_CTRL)
+        return luaEnumString_KeyboardKey_KEY_CTRL;
+    if (e == Keyboard::KEY_ALT)
+        return luaEnumString_KeyboardKey_KEY_ALT;
+    if (e == Keyboard::KEY_MENU)
+        return luaEnumString_KeyboardKey_KEY_MENU;
+    if (e == Keyboard::KEY_HYPER)
+        return luaEnumString_KeyboardKey_KEY_HYPER;
+    if (e == Keyboard::KEY_INSERT)
+        return luaEnumString_KeyboardKey_KEY_INSERT;
+    if (e == Keyboard::KEY_HOME)
+        return luaEnumString_KeyboardKey_KEY_HOME;
+    if (e == Keyboard::KEY_PG_UP)
+        return luaEnumString_KeyboardKey_KEY_PG_UP;
+    if (e == Keyboard::KEY_DELETE)
+        return luaEnumString_KeyboardKey_KEY_DELETE;
+    if (e == Keyboard::KEY_END)
+        return luaEnumString_KeyboardKey_KEY_END;
+    if (e == Keyboard::KEY_PG_DOWN)
+        return luaEnumString_KeyboardKey_KEY_PG_DOWN;
+    if (e == Keyboard::KEY_LEFT_ARROW)
+        return luaEnumString_KeyboardKey_KEY_LEFT_ARROW;
+    if (e == Keyboard::KEY_RIGHT_ARROW)
+        return luaEnumString_KeyboardKey_KEY_RIGHT_ARROW;
+    if (e == Keyboard::KEY_UP_ARROW)
+        return luaEnumString_KeyboardKey_KEY_UP_ARROW;
+    if (e == Keyboard::KEY_DOWN_ARROW)
+        return luaEnumString_KeyboardKey_KEY_DOWN_ARROW;
+    if (e == Keyboard::KEY_NUM_LOCK)
+        return luaEnumString_KeyboardKey_KEY_NUM_LOCK;
+    if (e == Keyboard::KEY_KP_PLUS)
+        return luaEnumString_KeyboardKey_KEY_KP_PLUS;
+    if (e == Keyboard::KEY_KP_MINUS)
+        return luaEnumString_KeyboardKey_KEY_KP_MINUS;
+    if (e == Keyboard::KEY_KP_MULTIPLY)
+        return luaEnumString_KeyboardKey_KEY_KP_MULTIPLY;
+    if (e == Keyboard::KEY_KP_DIVIDE)
+        return luaEnumString_KeyboardKey_KEY_KP_DIVIDE;
+    if (e == Keyboard::KEY_KP_ENTER)
+        return luaEnumString_KeyboardKey_KEY_KP_ENTER;
+    if (e == Keyboard::KEY_KP_HOME)
+        return luaEnumString_KeyboardKey_KEY_KP_HOME;
+    if (e == Keyboard::KEY_KP_UP)
+        return luaEnumString_KeyboardKey_KEY_KP_UP;
+    if (e == Keyboard::KEY_KP_PG_UP)
+        return luaEnumString_KeyboardKey_KEY_KP_PG_UP;
+    if (e == Keyboard::KEY_KP_LEFT)
+        return luaEnumString_KeyboardKey_KEY_KP_LEFT;
+    if (e == Keyboard::KEY_KP_FIVE)
+        return luaEnumString_KeyboardKey_KEY_KP_FIVE;
+    if (e == Keyboard::KEY_KP_RIGHT)
+        return luaEnumString_KeyboardKey_KEY_KP_RIGHT;
+    if (e == Keyboard::KEY_KP_END)
+        return luaEnumString_KeyboardKey_KEY_KP_END;
+    if (e == Keyboard::KEY_KP_DOWN)
+        return luaEnumString_KeyboardKey_KEY_KP_DOWN;
+    if (e == Keyboard::KEY_KP_PG_DOWN)
+        return luaEnumString_KeyboardKey_KEY_KP_PG_DOWN;
+    if (e == Keyboard::KEY_KP_INSERT)
+        return luaEnumString_KeyboardKey_KEY_KP_INSERT;
+    if (e == Keyboard::KEY_KP_DELETE)
+        return luaEnumString_KeyboardKey_KEY_KP_DELETE;
+    if (e == Keyboard::KEY_F1)
+        return luaEnumString_KeyboardKey_KEY_F1;
+    if (e == Keyboard::KEY_F2)
+        return luaEnumString_KeyboardKey_KEY_F2;
+    if (e == Keyboard::KEY_F3)
+        return luaEnumString_KeyboardKey_KEY_F3;
+    if (e == Keyboard::KEY_F4)
+        return luaEnumString_KeyboardKey_KEY_F4;
+    if (e == Keyboard::KEY_F5)
+        return luaEnumString_KeyboardKey_KEY_F5;
+    if (e == Keyboard::KEY_F6)
+        return luaEnumString_KeyboardKey_KEY_F6;
+    if (e == Keyboard::KEY_F7)
+        return luaEnumString_KeyboardKey_KEY_F7;
+    if (e == Keyboard::KEY_F8)
+        return luaEnumString_KeyboardKey_KEY_F8;
+    if (e == Keyboard::KEY_F9)
+        return luaEnumString_KeyboardKey_KEY_F9;
+    if (e == Keyboard::KEY_F10)
+        return luaEnumString_KeyboardKey_KEY_F10;
+    if (e == Keyboard::KEY_F11)
+        return luaEnumString_KeyboardKey_KEY_F11;
+    if (e == Keyboard::KEY_F12)
+        return luaEnumString_KeyboardKey_KEY_F12;
+    if (e == Keyboard::KEY_SPACE)
+        return luaEnumString_KeyboardKey_KEY_SPACE;
+    if (e == Keyboard::KEY_EXCLAM)
+        return luaEnumString_KeyboardKey_KEY_EXCLAM;
+    if (e == Keyboard::KEY_QUOTE)
+        return luaEnumString_KeyboardKey_KEY_QUOTE;
+    if (e == Keyboard::KEY_NUMBER)
+        return luaEnumString_KeyboardKey_KEY_NUMBER;
+    if (e == Keyboard::KEY_DOLLAR)
+        return luaEnumString_KeyboardKey_KEY_DOLLAR;
+    if (e == Keyboard::KEY_PERCENT)
+        return luaEnumString_KeyboardKey_KEY_PERCENT;
+    if (e == Keyboard::KEY_CIRCUMFLEX)
+        return luaEnumString_KeyboardKey_KEY_CIRCUMFLEX;
+    if (e == Keyboard::KEY_AMPERSAND)
+        return luaEnumString_KeyboardKey_KEY_AMPERSAND;
+    if (e == Keyboard::KEY_APOSTROPHE)
+        return luaEnumString_KeyboardKey_KEY_APOSTROPHE;
+    if (e == Keyboard::KEY_LEFT_PARENTHESIS)
+        return luaEnumString_KeyboardKey_KEY_LEFT_PARENTHESIS;
+    if (e == Keyboard::KEY_RIGHT_PARENTHESIS)
+        return luaEnumString_KeyboardKey_KEY_RIGHT_PARENTHESIS;
+    if (e == Keyboard::KEY_ASTERISK)
+        return luaEnumString_KeyboardKey_KEY_ASTERISK;
+    if (e == Keyboard::KEY_PLUS)
+        return luaEnumString_KeyboardKey_KEY_PLUS;
+    if (e == Keyboard::KEY_COMMA)
+        return luaEnumString_KeyboardKey_KEY_COMMA;
+    if (e == Keyboard::KEY_MINUS)
+        return luaEnumString_KeyboardKey_KEY_MINUS;
+    if (e == Keyboard::KEY_PERIOD)
+        return luaEnumString_KeyboardKey_KEY_PERIOD;
+    if (e == Keyboard::KEY_SLASH)
+        return luaEnumString_KeyboardKey_KEY_SLASH;
+    if (e == Keyboard::KEY_ZERO)
+        return luaEnumString_KeyboardKey_KEY_ZERO;
+    if (e == Keyboard::KEY_ONE)
+        return luaEnumString_KeyboardKey_KEY_ONE;
+    if (e == Keyboard::KEY_TWO)
+        return luaEnumString_KeyboardKey_KEY_TWO;
+    if (e == Keyboard::KEY_THREE)
+        return luaEnumString_KeyboardKey_KEY_THREE;
+    if (e == Keyboard::KEY_FOUR)
+        return luaEnumString_KeyboardKey_KEY_FOUR;
+    if (e == Keyboard::KEY_FIVE)
+        return luaEnumString_KeyboardKey_KEY_FIVE;
+    if (e == Keyboard::KEY_SIX)
+        return luaEnumString_KeyboardKey_KEY_SIX;
+    if (e == Keyboard::KEY_SEVEN)
+        return luaEnumString_KeyboardKey_KEY_SEVEN;
+    if (e == Keyboard::KEY_EIGHT)
+        return luaEnumString_KeyboardKey_KEY_EIGHT;
+    if (e == Keyboard::KEY_NINE)
+        return luaEnumString_KeyboardKey_KEY_NINE;
+    if (e == Keyboard::KEY_COLON)
+        return luaEnumString_KeyboardKey_KEY_COLON;
+    if (e == Keyboard::KEY_SEMICOLON)
+        return luaEnumString_KeyboardKey_KEY_SEMICOLON;
+    if (e == Keyboard::KEY_LESS_THAN)
+        return luaEnumString_KeyboardKey_KEY_LESS_THAN;
+    if (e == Keyboard::KEY_EQUAL)
+        return luaEnumString_KeyboardKey_KEY_EQUAL;
+    if (e == Keyboard::KEY_GREATER_THAN)
+        return luaEnumString_KeyboardKey_KEY_GREATER_THAN;
+    if (e == Keyboard::KEY_QUESTION)
+        return luaEnumString_KeyboardKey_KEY_QUESTION;
+    if (e == Keyboard::KEY_AT)
+        return luaEnumString_KeyboardKey_KEY_AT;
+    if (e == Keyboard::KEY_CAPITAL_A)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_A;
+    if (e == Keyboard::KEY_CAPITAL_B)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_B;
+    if (e == Keyboard::KEY_CAPITAL_C)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_C;
+    if (e == Keyboard::KEY_CAPITAL_D)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_D;
+    if (e == Keyboard::KEY_CAPITAL_E)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_E;
+    if (e == Keyboard::KEY_CAPITAL_F)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_F;
+    if (e == Keyboard::KEY_CAPITAL_G)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_G;
+    if (e == Keyboard::KEY_CAPITAL_H)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_H;
+    if (e == Keyboard::KEY_CAPITAL_I)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_I;
+    if (e == Keyboard::KEY_CAPITAL_J)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_J;
+    if (e == Keyboard::KEY_CAPITAL_K)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_K;
+    if (e == Keyboard::KEY_CAPITAL_L)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_L;
+    if (e == Keyboard::KEY_CAPITAL_M)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_M;
+    if (e == Keyboard::KEY_CAPITAL_N)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_N;
+    if (e == Keyboard::KEY_CAPITAL_O)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_O;
+    if (e == Keyboard::KEY_CAPITAL_P)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_P;
+    if (e == Keyboard::KEY_CAPITAL_Q)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_Q;
+    if (e == Keyboard::KEY_CAPITAL_R)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_R;
+    if (e == Keyboard::KEY_CAPITAL_S)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_S;
+    if (e == Keyboard::KEY_CAPITAL_T)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_T;
+    if (e == Keyboard::KEY_CAPITAL_U)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_U;
+    if (e == Keyboard::KEY_CAPITAL_V)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_V;
+    if (e == Keyboard::KEY_CAPITAL_W)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_W;
+    if (e == Keyboard::KEY_CAPITAL_X)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_X;
+    if (e == Keyboard::KEY_CAPITAL_Y)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_Y;
+    if (e == Keyboard::KEY_CAPITAL_Z)
+        return luaEnumString_KeyboardKey_KEY_CAPITAL_Z;
+    if (e == Keyboard::KEY_LEFT_BRACKET)
+        return luaEnumString_KeyboardKey_KEY_LEFT_BRACKET;
+    if (e == Keyboard::KEY_BACK_SLASH)
+        return luaEnumString_KeyboardKey_KEY_BACK_SLASH;
+    if (e == Keyboard::KEY_RIGHT_BRACKET)
+        return luaEnumString_KeyboardKey_KEY_RIGHT_BRACKET;
+    if (e == Keyboard::KEY_UNDERSCORE)
+        return luaEnumString_KeyboardKey_KEY_UNDERSCORE;
+    if (e == Keyboard::KEY_GRAVE)
+        return luaEnumString_KeyboardKey_KEY_GRAVE;
+    if (e == Keyboard::KEY_A)
+        return luaEnumString_KeyboardKey_KEY_A;
+    if (e == Keyboard::KEY_B)
+        return luaEnumString_KeyboardKey_KEY_B;
+    if (e == Keyboard::KEY_C)
+        return luaEnumString_KeyboardKey_KEY_C;
+    if (e == Keyboard::KEY_D)
+        return luaEnumString_KeyboardKey_KEY_D;
+    if (e == Keyboard::KEY_E)
+        return luaEnumString_KeyboardKey_KEY_E;
+    if (e == Keyboard::KEY_F)
+        return luaEnumString_KeyboardKey_KEY_F;
+    if (e == Keyboard::KEY_G)
+        return luaEnumString_KeyboardKey_KEY_G;
+    if (e == Keyboard::KEY_H)
+        return luaEnumString_KeyboardKey_KEY_H;
+    if (e == Keyboard::KEY_I)
+        return luaEnumString_KeyboardKey_KEY_I;
+    if (e == Keyboard::KEY_J)
+        return luaEnumString_KeyboardKey_KEY_J;
+    if (e == Keyboard::KEY_K)
+        return luaEnumString_KeyboardKey_KEY_K;
+    if (e == Keyboard::KEY_L)
+        return luaEnumString_KeyboardKey_KEY_L;
+    if (e == Keyboard::KEY_M)
+        return luaEnumString_KeyboardKey_KEY_M;
+    if (e == Keyboard::KEY_N)
+        return luaEnumString_KeyboardKey_KEY_N;
+    if (e == Keyboard::KEY_O)
+        return luaEnumString_KeyboardKey_KEY_O;
+    if (e == Keyboard::KEY_P)
+        return luaEnumString_KeyboardKey_KEY_P;
+    if (e == Keyboard::KEY_Q)
+        return luaEnumString_KeyboardKey_KEY_Q;
+    if (e == Keyboard::KEY_R)
+        return luaEnumString_KeyboardKey_KEY_R;
+    if (e == Keyboard::KEY_S)
+        return luaEnumString_KeyboardKey_KEY_S;
+    if (e == Keyboard::KEY_T)
+        return luaEnumString_KeyboardKey_KEY_T;
+    if (e == Keyboard::KEY_U)
+        return luaEnumString_KeyboardKey_KEY_U;
+    if (e == Keyboard::KEY_V)
+        return luaEnumString_KeyboardKey_KEY_V;
+    if (e == Keyboard::KEY_W)
+        return luaEnumString_KeyboardKey_KEY_W;
+    if (e == Keyboard::KEY_X)
+        return luaEnumString_KeyboardKey_KEY_X;
+    if (e == Keyboard::KEY_Y)
+        return luaEnumString_KeyboardKey_KEY_Y;
+    if (e == Keyboard::KEY_Z)
+        return luaEnumString_KeyboardKey_KEY_Z;
+    if (e == Keyboard::KEY_LEFT_BRACE)
+        return luaEnumString_KeyboardKey_KEY_LEFT_BRACE;
+    if (e == Keyboard::KEY_BAR)
+        return luaEnumString_KeyboardKey_KEY_BAR;
+    if (e == Keyboard::KEY_RIGHT_BRACE)
+        return luaEnumString_KeyboardKey_KEY_RIGHT_BRACE;
+    if (e == Keyboard::KEY_TILDE)
+        return luaEnumString_KeyboardKey_KEY_TILDE;
+    if (e == Keyboard::KEY_EURO)
+        return luaEnumString_KeyboardKey_KEY_EURO;
+    if (e == Keyboard::KEY_POUND)
+        return luaEnumString_KeyboardKey_KEY_POUND;
+    if (e == Keyboard::KEY_YEN)
+        return luaEnumString_KeyboardKey_KEY_YEN;
+    if (e == Keyboard::KEY_MIDDLE_DOT)
+        return luaEnumString_KeyboardKey_KEY_MIDDLE_DOT;
+    if (e == Keyboard::KEY_SEARCH)
+        return luaEnumString_KeyboardKey_KEY_SEARCH;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Keyboard::Key.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_KeyboardKey.h

@@ -0,0 +1,15 @@
+#ifndef LUA_KEYBOARDKEY_H_
+#define LUA_KEYBOARDKEY_H_
+
+#include "Keyboard.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Keyboard::Key.
+Keyboard::Key lua_enumFromString_KeyboardKey(const char* s);
+const char* lua_stringFromEnum_KeyboardKey(Keyboard::Key e);
+
+}
+
+#endif

+ 38 - 0
gameplay/src/lua/lua_KeyboardKeyEvent.cpp

@@ -0,0 +1,38 @@
+#include "Base.h"
+#include "lua_KeyboardKeyEvent.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_KeyboardKeyEvent_KEY_PRESS = "KEY_PRESS";
+static const char* luaEnumString_KeyboardKeyEvent_KEY_RELEASE = "KEY_RELEASE";
+static const char* luaEnumString_KeyboardKeyEvent_KEY_CHAR = "KEY_CHAR";
+
+Keyboard::KeyEvent lua_enumFromString_KeyboardKeyEvent(const char* s)
+{
+    if (strcmp(s, luaEnumString_KeyboardKeyEvent_KEY_PRESS) == 0)
+        return Keyboard::KEY_PRESS;
+    if (strcmp(s, luaEnumString_KeyboardKeyEvent_KEY_RELEASE) == 0)
+        return Keyboard::KEY_RELEASE;
+    if (strcmp(s, luaEnumString_KeyboardKeyEvent_KEY_CHAR) == 0)
+        return Keyboard::KEY_CHAR;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Keyboard::KeyEvent.", s);
+    return Keyboard::KEY_PRESS;
+}
+
+const char* lua_stringFromEnum_KeyboardKeyEvent(Keyboard::KeyEvent e)
+{
+    if (e == Keyboard::KEY_PRESS)
+        return luaEnumString_KeyboardKeyEvent_KEY_PRESS;
+    if (e == Keyboard::KEY_RELEASE)
+        return luaEnumString_KeyboardKeyEvent_KEY_RELEASE;
+    if (e == Keyboard::KEY_CHAR)
+        return luaEnumString_KeyboardKeyEvent_KEY_CHAR;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Keyboard::KeyEvent.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_KeyboardKeyEvent.h

@@ -0,0 +1,15 @@
+#ifndef LUA_KEYBOARDKEYEVENT_H_
+#define LUA_KEYBOARDKEYEVENT_H_
+
+#include "Keyboard.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Keyboard::KeyEvent.
+Keyboard::KeyEvent lua_enumFromString_KeyboardKeyEvent(const char* s);
+const char* lua_stringFromEnum_KeyboardKeyEvent(Keyboard::KeyEvent e);
+
+}
+
+#endif

+ 13 - 2
gameplay/src/lua/lua_Label.cpp

@@ -1,8 +1,19 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Label.h"
 #include "lua_Label.h"
-#include "lua_Global.h"
+#include "Animation.h"
+#include "AnimationTarget.h"
+#include "Base.h"
+#include "Control.h"
+#include "Game.h"
+#include "Label.h"
+#include "Node.h"
+#include "Ref.h"
+#include "lua_ControlAlignment.h"
+#include "lua_ControlListenerEventType.h"
+#include "lua_ControlState.h"
+#include "lua_CurveInterpolationType.h"
+#include "lua_FontJustify.h"
 
 namespace gameplay
 {

+ 7 - 2
gameplay/src/lua/lua_Layout.cpp

@@ -1,8 +1,13 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Layout.h"
 #include "lua_Layout.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Container.h"
+#include "Control.h"
+#include "Game.h"
+#include "Layout.h"
+#include "Ref.h"
+#include "lua_LayoutType.h"
 
 namespace gameplay
 {

+ 43 - 0
gameplay/src/lua/lua_LayoutType.cpp

@@ -0,0 +1,43 @@
+#include "Base.h"
+#include "lua_LayoutType.h"
+
+namespace gameplay
+{
+
+static const char* enumStringEmpty = "";
+
+static const char* luaEnumString_LayoutType_LAYOUT_FLOW = "LAYOUT_FLOW";
+static const char* luaEnumString_LayoutType_LAYOUT_VERTICAL = "LAYOUT_VERTICAL";
+static const char* luaEnumString_LayoutType_LAYOUT_ABSOLUTE = "LAYOUT_ABSOLUTE";
+static const char* luaEnumString_LayoutType_LAYOUT_SCROLL = "LAYOUT_SCROLL";
+
+Layout::Type lua_enumFromString_LayoutType(const char* s)
+{
+    if (strcmp(s, luaEnumString_LayoutType_LAYOUT_FLOW) == 0)
+        return Layout::LAYOUT_FLOW;
+    if (strcmp(s, luaEnumString_LayoutType_LAYOUT_VERTICAL) == 0)
+        return Layout::LAYOUT_VERTICAL;
+    if (strcmp(s, luaEnumString_LayoutType_LAYOUT_ABSOLUTE) == 0)
+        return Layout::LAYOUT_ABSOLUTE;
+    if (strcmp(s, luaEnumString_LayoutType_LAYOUT_SCROLL) == 0)
+        return Layout::LAYOUT_SCROLL;
+    GP_ERROR("Invalid enumeration value '%s' for enumeration Layout::Type.", s);
+    return Layout::LAYOUT_FLOW;
+}
+
+const char* lua_stringFromEnum_LayoutType(Layout::Type e)
+{
+    if (e == Layout::LAYOUT_FLOW)
+        return luaEnumString_LayoutType_LAYOUT_FLOW;
+    if (e == Layout::LAYOUT_VERTICAL)
+        return luaEnumString_LayoutType_LAYOUT_VERTICAL;
+    if (e == Layout::LAYOUT_ABSOLUTE)
+        return luaEnumString_LayoutType_LAYOUT_ABSOLUTE;
+    if (e == Layout::LAYOUT_SCROLL)
+        return luaEnumString_LayoutType_LAYOUT_SCROLL;
+    GP_ERROR("Invalid enumeration value '%d' for enumeration Layout::Type.", e);
+    return enumStringEmpty;
+}
+
+}
+

+ 15 - 0
gameplay/src/lua/lua_LayoutType.h

@@ -0,0 +1,15 @@
+#ifndef LUA_LAYOUTTYPE_H_
+#define LUA_LAYOUTTYPE_H_
+
+#include "Layout.h"
+
+namespace gameplay
+{
+
+// Lua bindings for enum conversion functions for Layout::Type.
+Layout::Type lua_enumFromString_LayoutType(const char* s);
+const char* lua_stringFromEnum_LayoutType(Layout::Type e);
+
+}
+
+#endif

+ 6 - 2
gameplay/src/lua/lua_Light.cpp

@@ -1,8 +1,12 @@
 #include "Base.h"
 #include "ScriptController.h"
-#include "Light.h"
 #include "lua_Light.h"
-#include "lua_Global.h"
+#include "Base.h"
+#include "Game.h"
+#include "Light.h"
+#include "Node.h"
+#include "Ref.h"
+#include "lua_LightType.h"
 
 namespace gameplay
 {

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor