Projection.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Projection" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. </brief_description>
  5. <description>
  6. </description>
  7. <tutorials>
  8. </tutorials>
  9. <constructors>
  10. <constructor name="Projection">
  11. <return type="Projection" />
  12. <description>
  13. </description>
  14. </constructor>
  15. <constructor name="Projection">
  16. <return type="Projection" />
  17. <argument index="0" name="from" type="Projection" />
  18. <description>
  19. </description>
  20. </constructor>
  21. <constructor name="Projection">
  22. <return type="Projection" />
  23. <argument index="0" name="from" type="Transform3D" />
  24. <description>
  25. </description>
  26. </constructor>
  27. </constructors>
  28. <methods>
  29. <method name="create_depth_correction" qualifiers="static">
  30. <return type="Projection" />
  31. <argument index="0" name="flip_y" type="bool" />
  32. <description>
  33. </description>
  34. </method>
  35. <method name="create_fit_aabb" qualifiers="static">
  36. <return type="Projection" />
  37. <argument index="0" name="aabb" type="AABB" />
  38. <description>
  39. </description>
  40. </method>
  41. <method name="create_for_hmd" qualifiers="static">
  42. <return type="Projection" />
  43. <argument index="0" name="eye" type="int" />
  44. <argument index="1" name="aspect" type="float" />
  45. <argument index="2" name="intraocular_dist" type="float" />
  46. <argument index="3" name="display_width" type="float" />
  47. <argument index="4" name="display_to_lens" type="float" />
  48. <argument index="5" name="oversample" type="float" />
  49. <argument index="6" name="z_near" type="float" />
  50. <argument index="7" name="z_far" type="float" />
  51. <description>
  52. </description>
  53. </method>
  54. <method name="create_frustum" qualifiers="static">
  55. <return type="Projection" />
  56. <argument index="0" name="left" type="float" />
  57. <argument index="1" name="right" type="float" />
  58. <argument index="2" name="bottom" type="float" />
  59. <argument index="3" name="top" type="float" />
  60. <argument index="4" name="z_near" type="float" />
  61. <argument index="5" name="z_far" type="float" />
  62. <description>
  63. </description>
  64. </method>
  65. <method name="create_frustum_aspect" qualifiers="static">
  66. <return type="Projection" />
  67. <argument index="0" name="size" type="float" />
  68. <argument index="1" name="aspect" type="float" />
  69. <argument index="2" name="offset" type="Vector2" />
  70. <argument index="3" name="z_near" type="float" />
  71. <argument index="4" name="z_far" type="float" />
  72. <argument index="5" name="flip_fov" type="bool" default="false" />
  73. <description>
  74. </description>
  75. </method>
  76. <method name="create_light_atlas_rect" qualifiers="static">
  77. <return type="Projection" />
  78. <argument index="0" name="rect" type="Rect2" />
  79. <description>
  80. </description>
  81. </method>
  82. <method name="create_orthogonal" qualifiers="static">
  83. <return type="Projection" />
  84. <argument index="0" name="left" type="float" />
  85. <argument index="1" name="right" type="float" />
  86. <argument index="2" name="bottom" type="float" />
  87. <argument index="3" name="top" type="float" />
  88. <argument index="4" name="z_near" type="float" />
  89. <argument index="5" name="z_far" type="float" />
  90. <description>
  91. </description>
  92. </method>
  93. <method name="create_orthogonal_aspect" qualifiers="static">
  94. <return type="Projection" />
  95. <argument index="0" name="size" type="float" />
  96. <argument index="1" name="aspect" type="float" />
  97. <argument index="2" name="z_near" type="float" />
  98. <argument index="3" name="z_far" type="float" />
  99. <argument index="4" name="flip_fov" type="bool" default="false" />
  100. <description>
  101. </description>
  102. </method>
  103. <method name="create_perspective" qualifiers="static">
  104. <return type="Projection" />
  105. <argument index="0" name="fovy" type="float" />
  106. <argument index="1" name="aspect" type="float" />
  107. <argument index="2" name="z_near" type="float" />
  108. <argument index="3" name="z_far" type="float" />
  109. <argument index="4" name="flip_fov" type="bool" default="false" />
  110. <description>
  111. </description>
  112. </method>
  113. <method name="create_perspective_hmd" qualifiers="static">
  114. <return type="Projection" />
  115. <argument index="0" name="fovy" type="float" />
  116. <argument index="1" name="aspect" type="float" />
  117. <argument index="2" name="z_near" type="float" />
  118. <argument index="3" name="z_far" type="float" />
  119. <argument index="4" name="flip_fov" type="bool" />
  120. <argument index="5" name="eye" type="int" />
  121. <argument index="6" name="intraocular_dist" type="float" />
  122. <argument index="7" name=" convergence_dist" type="float" />
  123. <description>
  124. </description>
  125. </method>
  126. <method name="determinant" qualifiers="const">
  127. <return type="float" />
  128. <description>
  129. </description>
  130. </method>
  131. <method name="flipped_y" qualifiers="const">
  132. <return type="Projection" />
  133. <description>
  134. </description>
  135. </method>
  136. <method name="get_aspect" qualifiers="const">
  137. <return type="float" />
  138. <description>
  139. </description>
  140. </method>
  141. <method name="get_far_plane_half_extents" qualifiers="const">
  142. <return type="Vector2" />
  143. <description>
  144. </description>
  145. </method>
  146. <method name="get_fov" qualifiers="const">
  147. <return type="float" />
  148. <description>
  149. </description>
  150. </method>
  151. <method name="get_fovy" qualifiers="static">
  152. <return type="float" />
  153. <argument index="0" name="fovx" type="float" />
  154. <argument index="1" name="aspect" type="float" />
  155. <description>
  156. </description>
  157. </method>
  158. <method name="get_lod_multiplier" qualifiers="const">
  159. <return type="float" />
  160. <description>
  161. </description>
  162. </method>
  163. <method name="get_pixels_per_meter" qualifiers="const">
  164. <return type="int" />
  165. <argument index="0" name="for_pixel_width" type="int" />
  166. <description>
  167. </description>
  168. </method>
  169. <method name="get_projection_plane" qualifiers="const">
  170. <return type="Plane" />
  171. <argument index="0" name="plane" type="int" />
  172. <description>
  173. </description>
  174. </method>
  175. <method name="get_viewport_half_extents" qualifiers="const">
  176. <return type="Vector2" />
  177. <description>
  178. </description>
  179. </method>
  180. <method name="get_z_far" qualifiers="const">
  181. <return type="float" />
  182. <description>
  183. </description>
  184. </method>
  185. <method name="get_z_near" qualifiers="const">
  186. <return type="float" />
  187. <description>
  188. </description>
  189. </method>
  190. <method name="inverse" qualifiers="const">
  191. <return type="Projection" />
  192. <description>
  193. </description>
  194. </method>
  195. <method name="is_orthogonal" qualifiers="const">
  196. <return type="bool" />
  197. <description>
  198. </description>
  199. </method>
  200. <method name="jitter_offseted" qualifiers="const">
  201. <return type="Projection" />
  202. <argument index="0" name="offset" type="Vector2" />
  203. <description>
  204. </description>
  205. </method>
  206. <method name="perspective_znear_adjusted" qualifiers="const">
  207. <return type="Projection" />
  208. <argument index="0" name="new_znear" type="float" />
  209. <description>
  210. </description>
  211. </method>
  212. </methods>
  213. <members>
  214. <member name="w" type="Vector4" setter="" getter="" default="Vector4(0, 0, 0)">
  215. </member>
  216. <member name="x" type="Vector4" setter="" getter="" default="Vector4(1, 0, 0)">
  217. </member>
  218. <member name="y" type="Vector4" setter="" getter="" default="Vector4(0, 1, 0)">
  219. </member>
  220. <member name="z" type="Vector4" setter="" getter="" default="Vector4(0, 0, 1)">
  221. </member>
  222. </members>
  223. <constants>
  224. <constant name="PLANE_NEAR" value="0">
  225. </constant>
  226. <constant name="PLANE_FAR" value="1">
  227. </constant>
  228. <constant name="PLANE_LEFT" value="2">
  229. </constant>
  230. <constant name="PLANE_TOP" value="3">
  231. </constant>
  232. <constant name="PLANE_RIGHT" value="4">
  233. </constant>
  234. <constant name="PLANE_BOTTOM" value="5">
  235. </constant>
  236. <constant name="IDENTITY" value="Projection(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)">
  237. </constant>
  238. <constant name="ZERO" value="Projection(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)">
  239. </constant>
  240. </constants>
  241. <operators>
  242. <operator name="operator !=">
  243. <return type="bool" />
  244. <argument index="0" name="right" type="Projection" />
  245. <description>
  246. </description>
  247. </operator>
  248. <operator name="operator *">
  249. <return type="Projection" />
  250. <argument index="0" name="right" type="Projection" />
  251. <description>
  252. </description>
  253. </operator>
  254. <operator name="operator *">
  255. <return type="Vector4" />
  256. <argument index="0" name="right" type="Vector4" />
  257. <description>
  258. </description>
  259. </operator>
  260. <operator name="operator ==">
  261. <return type="bool" />
  262. <argument index="0" name="right" type="Projection" />
  263. <description>
  264. </description>
  265. </operator>
  266. <operator name="operator []">
  267. <return type="Vector4" />
  268. <argument index="0" name="index" type="int" />
  269. <description>
  270. </description>
  271. </operator>
  272. </operators>
  273. </class>