ImmediateMesh.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ImmediateMesh" inherits="Mesh" version="4.0">
  3. <brief_description>
  4. Mesh optimized for creating geometry manually.
  5. </brief_description>
  6. <description>
  7. Mesh optimized for creating geometry manually, similar to OpenGL1.x immediate mode.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="clear_surfaces">
  13. <return type="void" />
  14. <description>
  15. Clear all surfaces.
  16. </description>
  17. </method>
  18. <method name="surface_add_vertex">
  19. <return type="void" />
  20. <argument index="0" name="vertex" type="Vector3" />
  21. <description>
  22. Add a 3D vertex using the current attributes previously set.
  23. </description>
  24. </method>
  25. <method name="surface_add_vertex_2d">
  26. <return type="void" />
  27. <argument index="0" name="vertex" type="Vector2" />
  28. <description>
  29. Add a 2D vertex using the current attributes previously set.
  30. </description>
  31. </method>
  32. <method name="surface_begin">
  33. <return type="void" />
  34. <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType" />
  35. <argument index="1" name="material" type="Material" default="null" />
  36. <description>
  37. Begin a new surface.
  38. </description>
  39. </method>
  40. <method name="surface_end">
  41. <return type="void" />
  42. <description>
  43. End and commit current surface. Note that surface being created will not be visible until this function is called.
  44. </description>
  45. </method>
  46. <method name="surface_set_color">
  47. <return type="void" />
  48. <argument index="0" name="color" type="Color" />
  49. <description>
  50. Set the color attribute that will be pushed with the next vertex.
  51. </description>
  52. </method>
  53. <method name="surface_set_normal">
  54. <return type="void" />
  55. <argument index="0" name="normal" type="Vector3" />
  56. <description>
  57. Set the normal attribute that will be pushed with the next vertex.
  58. </description>
  59. </method>
  60. <method name="surface_set_tangent">
  61. <return type="void" />
  62. <argument index="0" name="tangent" type="Plane" />
  63. <description>
  64. Set the tangent attribute that will be pushed with the next vertex.
  65. </description>
  66. </method>
  67. <method name="surface_set_uv">
  68. <return type="void" />
  69. <argument index="0" name="uv" type="Vector2" />
  70. <description>
  71. Set the UV attribute that will be pushed with the next vertex.
  72. </description>
  73. </method>
  74. <method name="surface_set_uv2">
  75. <return type="void" />
  76. <argument index="0" name="uv2" type="Vector2" />
  77. <description>
  78. Set the UV2 attribute that will be pushed with the next vertex.
  79. </description>
  80. </method>
  81. </methods>
  82. </class>