Generated_GlobalFunctions.cpp 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. // DO NOT EDIT. This file is generated
  2. #include "../Precompiled.h"
  3. #include "../AngelScript/APITemplates.h"
  4. #include "../AngelScript/Generated_Includes.h"
  5. namespace Urho3D
  6. {
  7. // const Vector<String>& GetArguments() | File: ../Core/ProcessUtils.h
  8. static CScriptArray* constspVectorlesStringgreamp_GetArguments_void()
  9. {
  10. const Vector<String>& result = GetArguments();
  11. return VectorToArray<String>(result, "Array<String>");
  12. }
  13. // const Vector<String>& ParseArguments(const String& cmdLine, bool skipFirstArgument = true) | File: ../Core/ProcessUtils.h
  14. static CScriptArray* constspVectorlesStringgreamp_ParseArguments_constspStringamp_bool(const String& cmdLine, bool skipFirstArgument)
  15. {
  16. const Vector<String>& result = ParseArguments(cmdLine, skipFirstArgument);
  17. return VectorToArray<String>(result, "Array<String>");
  18. }
  19. // bool WriteDrawablesToOBJ(const PODVector<Drawable*>& drawables, File* outputFile, bool asZUp, bool asRightHanded, bool writeLightmapUV = false) | File: ../Graphics/Drawable.h
  20. static bool bool_WriteDrawablesToOBJ_constspPODVectorlesDrawablestargreamp_Filestar_bool_bool_bool(CScriptArray* drawables_conv, File* outputFile, bool asZUp, bool asRightHanded, bool writeLightmapUV)
  21. {
  22. PODVector<Drawable*> drawables = ArrayToVector<Drawable*>(drawables_conv);
  23. bool result = WriteDrawablesToOBJ(drawables, outputFile, asZUp, asRightHanded, writeLightmapUV);
  24. return result;
  25. }
  26. void ASRegisterGeneratedGlobalFunctions(asIScriptEngine* engine)
  27. {
  28. // BigInt Abs(const BigInt& value) | File: ../Math/BigInt.h
  29. engine->RegisterGlobalFunction("BigInt Abs(const BigInt&in)", AS_FUNCTIONPR(Abs, (const BigInt&), BigInt), AS_CALL_CDECL);
  30. // template <class T> T Abs(T value) | File: ../Math/MathDefs.h
  31. engine->RegisterGlobalFunction("float Abs(float)", AS_FUNCTIONPR(Abs, (float), float), AS_CALL_CDECL);
  32. // template <class T> T Acos(T x) | File: ../Math/MathDefs.h
  33. engine->RegisterGlobalFunction("float Acos(float)", AS_FUNCTIONPR(Acos, (float), float), AS_CALL_CDECL);
  34. // String AddTrailingSlash(const String& pathName) | File: ../IO/FileSystem.h
  35. engine->RegisterGlobalFunction("String AddTrailingSlash(const String&in)", AS_FUNCTIONPR(AddTrailingSlash, (const String&), String), AS_CALL_CDECL);
  36. // template <class T> T Asin(T x) | File: ../Math/MathDefs.h
  37. engine->RegisterGlobalFunction("float Asin(float)", AS_FUNCTIONPR(Asin, (float), float), AS_CALL_CDECL);
  38. // template <class T> T Atan(T x) | File: ../Math/MathDefs.h
  39. engine->RegisterGlobalFunction("float Atan(float)", AS_FUNCTIONPR(Atan, (float), float), AS_CALL_CDECL);
  40. // template <class T> T Atan2(T y, T x) | File: ../Math/MathDefs.h
  41. engine->RegisterGlobalFunction("float Atan2(float, float)", AS_FUNCTIONPR(Atan2, (float, float), float), AS_CALL_CDECL);
  42. // void BufferToString(String& dest, const void* data, unsigned size) | File: ../Core/StringUtils.h
  43. // Error: type "const void*" can not automatically bind
  44. // template <class T> T Ceil(T x) | File: ../Math/MathDefs.h
  45. engine->RegisterGlobalFunction("float Ceil(float)", AS_FUNCTIONPR(Ceil, (float), float), AS_CALL_CDECL);
  46. // template <class T> int CeilToInt(T x) | File: ../Math/MathDefs.h
  47. engine->RegisterGlobalFunction("int CeilToInt(float)", AS_FUNCTIONPR(CeilToInt, (float), int), AS_CALL_CDECL);
  48. // template <class T> T Clamp(T value, T min, T max) | File: ../Math/MathDefs.h
  49. engine->RegisterGlobalFunction("float Clamp(float, float, float)", AS_FUNCTIONPR(Clamp, (float, float, float), float), AS_CALL_CDECL);
  50. engine->RegisterGlobalFunction("int Clamp(int, int, int)", AS_FUNCTIONPR(Clamp, (int, int, int), int), AS_CALL_CDECL);
  51. // unsigned ClosestPowerOfTwo(unsigned value) | File: ../Math/MathDefs.h
  52. engine->RegisterGlobalFunction("uint ClosestPowerOfTwo(uint)", AS_FUNCTIONPR(ClosestPowerOfTwo, (unsigned), unsigned), AS_CALL_CDECL);
  53. // void CombineHash(unsigned& result, unsigned hash) | File: ../Container/Hash.h
  54. engine->RegisterGlobalFunction("void CombineHash(uint&, uint)", AS_FUNCTIONPR(CombineHash, (unsigned&, unsigned), void), AS_CALL_CDECL);
  55. // bool CompareDrawables(Drawable* lhs, Drawable* rhs) | File: ../Graphics/Drawable.h
  56. engine->RegisterGlobalFunction("bool CompareDrawables(Drawable@+, Drawable@+)", AS_FUNCTIONPR(CompareDrawables, (Drawable*, Drawable*), bool), AS_CALL_CDECL);
  57. // bool CompareLights(Light* lhs, Light* rhs) | File: ../Graphics/Light.h
  58. engine->RegisterGlobalFunction("bool CompareLights(Light@+, Light@+)", AS_FUNCTIONPR(CompareLights, (Light*, Light*), bool), AS_CALL_CDECL);
  59. // unsigned CompressData(void* dest, const void* src, unsigned srcSize) | File: ../IO/Compression.h
  60. // Error: type "void*" can not automatically bind
  61. // bool CompressStream(Serializer& dest, Deserializer& src) | File: ../IO/Compression.h
  62. engine->RegisterGlobalFunction("bool CompressStream(Serializer&, Deserializer&)", AS_FUNCTIONPR(CompressStream, (Serializer&, Deserializer&), bool), AS_CALL_CDECL);
  63. // VectorBuffer CompressVectorBuffer(VectorBuffer& src) | File: ../IO/Compression.h
  64. engine->RegisterGlobalFunction("VectorBuffer CompressVectorBuffer(VectorBuffer&)", AS_FUNCTIONPR(CompressVectorBuffer, (VectorBuffer&), VectorBuffer), AS_CALL_CDECL);
  65. // template <class T> T Cos(T angle) | File: ../Math/MathDefs.h
  66. engine->RegisterGlobalFunction("float Cos(float)", AS_FUNCTIONPR(Cos, (float), float), AS_CALL_CDECL);
  67. // i32 CountSetBits(u32 value) | File: ../Math/MathDefs.h
  68. engine->RegisterGlobalFunction("int CountSetBits(uint)", AS_FUNCTIONPR(CountSetBits, (u32), i32), AS_CALL_CDECL);
  69. // PODVector<unsigned char> DecodeBase64(String encodedString) | File: ../Core/StringUtils.h
  70. // Error: type "PODVector<unsigned char>" can not automatically bind
  71. // unsigned DecompressData(void* dest, const void* src, unsigned destSize) | File: ../IO/Compression.h
  72. // Error: type "void*" can not automatically bind
  73. // void DecompressImageDXT(unsigned char* rgba, const void* blocks, int width, int height, int depth, CompressedFormat format) | File: ../Resource/Decompress.h
  74. // Error: type "unsigned char*" can not automatically bind
  75. // void DecompressImageETC(unsigned char* dstImage, const void* blocks, int width, int height, bool hasAlpha) | File: ../Resource/Decompress.h
  76. // Error: type "unsigned char*" can not automatically bind
  77. // void DecompressImagePVRTC(unsigned char* rgba, const void* blocks, int width, int height, CompressedFormat format) | File: ../Resource/Decompress.h
  78. // Error: type "unsigned char*" can not automatically bind
  79. // bool DecompressStream(Serializer& dest, Deserializer& src) | File: ../IO/Compression.h
  80. engine->RegisterGlobalFunction("bool DecompressStream(Serializer&, Deserializer&)", AS_FUNCTIONPR(DecompressStream, (Serializer&, Deserializer&), bool), AS_CALL_CDECL);
  81. // VectorBuffer DecompressVectorBuffer(VectorBuffer& src) | File: ../IO/Compression.h
  82. engine->RegisterGlobalFunction("VectorBuffer DecompressVectorBuffer(VectorBuffer&)", AS_FUNCTIONPR(DecompressVectorBuffer, (VectorBuffer&), VectorBuffer), AS_CALL_CDECL);
  83. // template <class T> bool Equals(T lhs, T rhs) | File: ../Math/MathDefs.h
  84. engine->RegisterGlobalFunction("bool Equals(float, float)", AS_FUNCTIONPR(Equals, (float, float), bool), AS_CALL_CDECL);
  85. // void ErrorDialog(const String& title, const String& message) | File: ../Core/ProcessUtils.h
  86. engine->RegisterGlobalFunction("void ErrorDialog(const String&in, const String&in)", AS_FUNCTIONPR(ErrorDialog, (const String&, const String&), void), AS_CALL_CDECL);
  87. // void ErrorExit(const String& message = String::EMPTY, int exitCode = EXIT_FAILURE) | File: ../Core/ProcessUtils.h
  88. engine->RegisterGlobalFunction("void ErrorExit(const String&in = String::EMPTY, int = EXIT_FAILURE)", AS_FUNCTIONPR(ErrorExit, (const String&, int), void), AS_CALL_CDECL);
  89. // unsigned EstimateCompressBound(unsigned srcSize) | File: ../IO/Compression.h
  90. engine->RegisterGlobalFunction("uint EstimateCompressBound(uint)", AS_FUNCTIONPR(EstimateCompressBound, (unsigned), unsigned), AS_CALL_CDECL);
  91. // void FlipBlockHorizontal(unsigned char* dest, const unsigned char* src, CompressedFormat format) | File: ../Resource/Decompress.h
  92. // Error: type "unsigned char*" can not automatically bind
  93. // void FlipBlockVertical(unsigned char* dest, const unsigned char* src, CompressedFormat format) | File: ../Resource/Decompress.h
  94. // Error: type "unsigned char*" can not automatically bind
  95. // unsigned short FloatToHalf(float value) | File: ../Math/MathDefs.h
  96. engine->RegisterGlobalFunction("uint16 FloatToHalf(float)", AS_FUNCTIONPR(FloatToHalf, (float), unsigned short), AS_CALL_CDECL);
  97. // unsigned FloatToRawIntBits(float value) | File: ../Math/MathDefs.h
  98. engine->RegisterGlobalFunction("uint FloatToRawIntBits(float)", AS_FUNCTIONPR(FloatToRawIntBits, (float), unsigned), AS_CALL_CDECL);
  99. // template <class T> T Floor(T x) | File: ../Math/MathDefs.h
  100. engine->RegisterGlobalFunction("float Floor(float)", AS_FUNCTIONPR(Floor, (float), float), AS_CALL_CDECL);
  101. // template <class T> int FloorToInt(T x) | File: ../Math/MathDefs.h
  102. engine->RegisterGlobalFunction("int FloorToInt(float)", AS_FUNCTIONPR(FloorToInt, (float), int), AS_CALL_CDECL);
  103. // template <class T> T Fract(T value) | File: ../Math/MathDefs.h
  104. engine->RegisterGlobalFunction("float Fract(float)", AS_FUNCTIONPR(Fract, (float), float), AS_CALL_CDECL);
  105. // void GenerateTangents(void* vertexData, unsigned vertexSize, const void* indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount, unsigned normalOffset, unsigned texCoordOffset, unsigned tangentOffset) | File: ../Graphics/Tangent.h
  106. // Error: type "void*" can not automatically bind
  107. // const Vector<String>& GetArguments() | File: ../Core/ProcessUtils.h
  108. engine->RegisterGlobalFunction("Array<String>@ GetArguments()", AS_FUNCTION(constspVectorlesStringgreamp_GetArguments_void), AS_CALL_CDECL);
  109. // const char* GetCompilerDefines() | File: ../LibraryInfo.h
  110. // Error: type "const char*" can not automatically bind
  111. // String GetConsoleInput() | File: ../Core/ProcessUtils.h
  112. engine->RegisterGlobalFunction("String GetConsoleInput()", AS_FUNCTIONPR(GetConsoleInput, (), String), AS_CALL_CDECL);
  113. // StringHashRegister& GetEventNameRegister() | File: ../Core/Object.h
  114. engine->RegisterGlobalFunction("StringHashRegister& GetEventNameRegister()", AS_FUNCTIONPR(GetEventNameRegister, (), StringHashRegister&), AS_CALL_CDECL);
  115. // String GetExtension(const String& fullPath, bool lowercaseExtension = true) | File: ../IO/FileSystem.h
  116. engine->RegisterGlobalFunction("String GetExtension(const String&in, bool = true)", AS_FUNCTIONPR(GetExtension, (const String&, bool), String), AS_CALL_CDECL);
  117. // String GetFileName(const String& fullPath) | File: ../IO/FileSystem.h
  118. engine->RegisterGlobalFunction("String GetFileName(const String&in)", AS_FUNCTIONPR(GetFileName, (const String&), String), AS_CALL_CDECL);
  119. // String GetFileNameAndExtension(const String& fileName, bool lowercaseExtension = false) | File: ../IO/FileSystem.h
  120. engine->RegisterGlobalFunction("String GetFileNameAndExtension(const String&in, bool = false)", AS_FUNCTIONPR(GetFileNameAndExtension, (const String&, bool), String), AS_CALL_CDECL);
  121. // String GetFileSizeString(unsigned long long memorySize) | File: ../Core/StringUtils.h
  122. engine->RegisterGlobalFunction("String GetFileSizeString(uint64)", AS_FUNCTIONPR(GetFileSizeString, (unsigned long long), String), AS_CALL_CDECL);
  123. // String GetHostName() | File: ../Core/ProcessUtils.h
  124. engine->RegisterGlobalFunction("String GetHostName()", AS_FUNCTIONPR(GetHostName, (), String), AS_CALL_CDECL);
  125. // String GetInternalPath(const String& pathName) | File: ../IO/FileSystem.h
  126. engine->RegisterGlobalFunction("String GetInternalPath(const String&in)", AS_FUNCTIONPR(GetInternalPath, (const String&), String), AS_CALL_CDECL);
  127. // String GetLoginName() | File: ../Core/ProcessUtils.h
  128. engine->RegisterGlobalFunction("String GetLoginName()", AS_FUNCTIONPR(GetLoginName, (), String), AS_CALL_CDECL);
  129. // String GetMiniDumpDir() | File: ../Core/ProcessUtils.h
  130. engine->RegisterGlobalFunction("String GetMiniDumpDir()", AS_FUNCTIONPR(GetMiniDumpDir, (), String), AS_CALL_CDECL);
  131. // String GetNativePath(const String& pathName) | File: ../IO/FileSystem.h
  132. engine->RegisterGlobalFunction("String GetNativePath(const String&in)", AS_FUNCTIONPR(GetNativePath, (const String&), String), AS_CALL_CDECL);
  133. // unsigned GetNumLogicalCPUs() | File: ../Core/ProcessUtils.h
  134. engine->RegisterGlobalFunction("uint GetNumLogicalCPUs()", AS_FUNCTIONPR(GetNumLogicalCPUs, (), unsigned), AS_CALL_CDECL);
  135. // unsigned GetNumPhysicalCPUs() | File: ../Core/ProcessUtils.h
  136. engine->RegisterGlobalFunction("uint GetNumPhysicalCPUs()", AS_FUNCTIONPR(GetNumPhysicalCPUs, (), unsigned), AS_CALL_CDECL);
  137. // String GetOSVersion() | File: ../Core/ProcessUtils.h
  138. engine->RegisterGlobalFunction("String GetOSVersion()", AS_FUNCTIONPR(GetOSVersion, (), String), AS_CALL_CDECL);
  139. // String GetParentPath(const String& path) | File: ../IO/FileSystem.h
  140. engine->RegisterGlobalFunction("String GetParentPath(const String&in)", AS_FUNCTIONPR(GetParentPath, (const String&), String), AS_CALL_CDECL);
  141. // String GetPath(const String& fullPath) | File: ../IO/FileSystem.h
  142. engine->RegisterGlobalFunction("String GetPath(const String&in)", AS_FUNCTIONPR(GetPath, (const String&), String), AS_CALL_CDECL);
  143. // String GetPlatform() | File: ../Core/ProcessUtils.h
  144. engine->RegisterGlobalFunction("String GetPlatform()", AS_FUNCTIONPR(GetPlatform, (), String), AS_CALL_CDECL);
  145. // unsigned GetRandomSeed() | File: ../Math/Random.h
  146. engine->RegisterGlobalFunction("uint GetRandomSeed()", AS_FUNCTIONPR(GetRandomSeed, (), unsigned), AS_CALL_CDECL);
  147. // const String& GetResourceName(Resource* resource) | File: ../Resource/Resource.h
  148. engine->RegisterGlobalFunction("const String& GetResourceName(Resource@+)", AS_FUNCTIONPR(GetResourceName, (Resource*), const String&), AS_CALL_CDECL);
  149. // ResourceRef GetResourceRef(Resource* resource, StringHash defaultType) | File: ../Resource/Resource.h
  150. engine->RegisterGlobalFunction("ResourceRef GetResourceRef(Resource@+, StringHash)", AS_FUNCTIONPR(GetResourceRef, (Resource*, StringHash), ResourceRef), AS_CALL_CDECL);
  151. // StringHash GetResourceType(Resource* resource, StringHash defaultType) | File: ../Resource/Resource.h
  152. engine->RegisterGlobalFunction("StringHash GetResourceType(Resource@+, StringHash)", AS_FUNCTIONPR(GetResourceType, (Resource*, StringHash), StringHash), AS_CALL_CDECL);
  153. // const char* GetRevision() | File: ../LibraryInfo.h
  154. // Error: type "const char*" can not automatically bind
  155. // unsigned GetStringListIndex(const String& value, const String* strings, unsigned defaultIndex, bool caseSensitive = false) | File: ../Core/StringUtils.h
  156. // Error: type "const String*" can not automatically bind
  157. // unsigned GetStringListIndex(const char* value, const String* strings, unsigned defaultIndex, bool caseSensitive = false) | File: ../Core/StringUtils.h
  158. // Error: type "const char*" can not automatically bind
  159. // unsigned GetStringListIndex(const char* value, const char** strings, unsigned defaultIndex, bool caseSensitive = false) | File: ../Core/StringUtils.h
  160. // Error: type "const char*" can not automatically bind
  161. // unsigned long long GetTotalMemory() | File: ../Core/ProcessUtils.h
  162. engine->RegisterGlobalFunction("uint64 GetTotalMemory()", AS_FUNCTIONPR(GetTotalMemory, (), unsigned long long), AS_CALL_CDECL);
  163. // WString GetWideNativePath(const String& pathName) | File: ../IO/FileSystem.h
  164. // Error: type "WString" can not automatically bind bacause have @nobind mark
  165. // float HalfToFloat(unsigned short value) | File: ../Math/MathDefs.h
  166. engine->RegisterGlobalFunction("float HalfToFloat(uint16)", AS_FUNCTIONPR(HalfToFloat, (unsigned short), float), AS_CALL_CDECL);
  167. // void InitFPU() | File: ../Core/ProcessUtils.h
  168. engine->RegisterGlobalFunction("void InitFPU()", AS_FUNCTIONPR(InitFPU, (), void), AS_CALL_CDECL);
  169. // template <class T> T InverseLerp(T lhs, T rhs, T x) | File: ../Math/MathDefs.h
  170. engine->RegisterGlobalFunction("float InverseLerp(float, float, float)", AS_FUNCTIONPR(InverseLerp, (float, float, float), float), AS_CALL_CDECL);
  171. // bool IsAbsolutePath(const String& pathName) | File: ../IO/FileSystem.h
  172. engine->RegisterGlobalFunction("bool IsAbsolutePath(const String&in)", AS_FUNCTIONPR(IsAbsolutePath, (const String&), bool), AS_CALL_CDECL);
  173. // bool IsAlpha(unsigned ch) | File: ../Core/StringUtils.h
  174. engine->RegisterGlobalFunction("bool IsAlpha(uint)", AS_FUNCTIONPR(IsAlpha, (unsigned), bool), AS_CALL_CDECL);
  175. // bool IsDigit(unsigned ch) | File: ../Core/StringUtils.h
  176. engine->RegisterGlobalFunction("bool IsDigit(uint)", AS_FUNCTIONPR(IsDigit, (unsigned), bool), AS_CALL_CDECL);
  177. // template <class T> bool IsNaN(T value) | File: ../Math/MathDefs.h
  178. engine->RegisterGlobalFunction("bool IsNaN(double)", AS_FUNCTIONPR(IsNaN, (double), bool), AS_CALL_CDECL);
  179. engine->RegisterGlobalFunction("bool IsNaN(float)", AS_FUNCTIONPR(IsNaN, (float), bool), AS_CALL_CDECL);
  180. // bool IsPowerOfTwo(unsigned value) | File: ../Math/MathDefs.h
  181. engine->RegisterGlobalFunction("bool IsPowerOfTwo(uint)", AS_FUNCTIONPR(IsPowerOfTwo, (unsigned), bool), AS_CALL_CDECL);
  182. // template <class T, class U> T Lerp(T lhs, T rhs, U t) | File: ../Math/MathDefs.h
  183. engine->RegisterGlobalFunction("float Lerp(float, float, float)", AS_FUNCTIONPR(Lerp, (float, float, float), float), AS_CALL_CDECL);
  184. // template <class T> T Ln(T x) | File: ../Math/MathDefs.h
  185. engine->RegisterGlobalFunction("float Ln(float)", AS_FUNCTIONPR(Ln, (float), float), AS_CALL_CDECL);
  186. // unsigned LogBaseTwo(unsigned value) | File: ../Math/MathDefs.h
  187. engine->RegisterGlobalFunction("uint LogBaseTwo(uint)", AS_FUNCTIONPR(LogBaseTwo, (unsigned), unsigned), AS_CALL_CDECL);
  188. // template <class T, class U> T Max(T lhs, U rhs) | File: ../Math/MathDefs.h
  189. engine->RegisterGlobalFunction("float Max(float, float)", AS_FUNCTIONPR(Max, (float, float), float), AS_CALL_CDECL);
  190. engine->RegisterGlobalFunction("int Max(int, int)", AS_FUNCTIONPR(Max, (int, int), int), AS_CALL_CDECL);
  191. // template <class T, class U> T Min(T lhs, U rhs) | File: ../Math/MathDefs.h
  192. engine->RegisterGlobalFunction("float Min(float, float)", AS_FUNCTIONPR(Min, (float, float), float), AS_CALL_CDECL);
  193. engine->RegisterGlobalFunction("int Min(int, int)", AS_FUNCTIONPR(Min, (int, int), int), AS_CALL_CDECL);
  194. // unsigned NextPowerOfTwo(unsigned value) | File: ../Math/MathDefs.h
  195. engine->RegisterGlobalFunction("uint NextPowerOfTwo(uint)", AS_FUNCTIONPR(NextPowerOfTwo, (unsigned), unsigned), AS_CALL_CDECL);
  196. // void OpenConsoleWindow() | File: ../Core/ProcessUtils.h
  197. engine->RegisterGlobalFunction("void OpenConsoleWindow()", AS_FUNCTIONPR(OpenConsoleWindow, (), void), AS_CALL_CDECL);
  198. // const Vector<String>& ParseArguments(const String& cmdLine, bool skipFirstArgument = true) | File: ../Core/ProcessUtils.h
  199. engine->RegisterGlobalFunction("Array<String>@ ParseArguments(const String&in, bool = true)", AS_FUNCTION(constspVectorlesStringgreamp_ParseArguments_constspStringamp_bool), AS_CALL_CDECL);
  200. // const Vector<String>& ParseArguments(const WString& cmdLine) | File: ../Core/ProcessUtils.h
  201. // Error: type "WString" can not automatically bind bacause have @nobind mark
  202. // const Vector<String>& ParseArguments(const char* cmdLine) | File: ../Core/ProcessUtils.h
  203. // Error: type "const char*" can not automatically bind
  204. // const Vector<String>& ParseArguments(const wchar_t* cmdLine) | File: ../Core/ProcessUtils.h
  205. // Error: type "const wchar_t*" can not automatically bind
  206. // const Vector<String>& ParseArguments(int argc, char** argv) | File: ../Core/ProcessUtils.h
  207. // Error: type "char**" can not automatically bind
  208. // template <class T> T Pow(T x, T y) | File: ../Math/MathDefs.h
  209. engine->RegisterGlobalFunction("float Pow(float, float)", AS_FUNCTIONPR(Pow, (float, float), float), AS_CALL_CDECL);
  210. // void PrintLine(const String& str, bool error = false) | File: ../Core/ProcessUtils.h
  211. engine->RegisterGlobalFunction("void PrintLine(const String&in, bool = false)", AS_FUNCTIONPR(PrintLine, (const String&, bool), void), AS_CALL_CDECL);
  212. // void PrintLine(const char* str, bool error = false) | File: ../Core/ProcessUtils.h
  213. // Error: type "const char*" can not automatically bind
  214. // void PrintUnicode(const String& str, bool error = false) | File: ../Core/ProcessUtils.h
  215. engine->RegisterGlobalFunction("void PrintUnicode(const String&in, bool = false)", AS_FUNCTIONPR(PrintUnicode, (const String&, bool), void), AS_CALL_CDECL);
  216. // void PrintUnicodeLine(const String& str, bool error = false) | File: ../Core/ProcessUtils.h
  217. engine->RegisterGlobalFunction("void PrintUnicodeLine(const String&in, bool = false)", AS_FUNCTIONPR(PrintUnicodeLine, (const String&, bool), void), AS_CALL_CDECL);
  218. // int Rand() | File: ../Math/Random.h
  219. engine->RegisterGlobalFunction("int Rand()", AS_FUNCTIONPR(Rand, (), int), AS_CALL_CDECL);
  220. engine->RegisterGlobalFunction("int RandomInt()", AS_FUNCTIONPR(Rand, (), int), AS_CALL_CDECL);
  221. // float RandStandardNormal() | File: ../Math/Random.h
  222. engine->RegisterGlobalFunction("float RandStandardNormal()", AS_FUNCTIONPR(RandStandardNormal, (), float), AS_CALL_CDECL);
  223. // float Random() | File: ../Math/MathDefs.h
  224. engine->RegisterGlobalFunction("float Random()", AS_FUNCTIONPR(Random, (), float), AS_CALL_CDECL);
  225. // float Random(float min, float max) | File: ../Math/MathDefs.h
  226. engine->RegisterGlobalFunction("float Random(float, float)", AS_FUNCTIONPR(Random, (float, float), float), AS_CALL_CDECL);
  227. // float Random(float range) | File: ../Math/MathDefs.h
  228. engine->RegisterGlobalFunction("float Random(float)", AS_FUNCTIONPR(Random, (float), float), AS_CALL_CDECL);
  229. // int Random(int min, int max) | File: ../Math/MathDefs.h
  230. engine->RegisterGlobalFunction("int Random(int, int)", AS_FUNCTIONPR(Random, (int, int), int), AS_CALL_CDECL);
  231. engine->RegisterGlobalFunction("int RandomInt(int, int)", AS_FUNCTIONPR(Random, (int, int), int), AS_CALL_CDECL);
  232. // int Random(int range) | File: ../Math/MathDefs.h
  233. engine->RegisterGlobalFunction("int Random(int)", AS_FUNCTIONPR(Random, (int), int), AS_CALL_CDECL);
  234. engine->RegisterGlobalFunction("int RandomInt(int)", AS_FUNCTIONPR(Random, (int), int), AS_CALL_CDECL);
  235. // float RandomNormal(float meanValue, float variance) | File: ../Math/MathDefs.h
  236. engine->RegisterGlobalFunction("float RandomNormal(float, float)", AS_FUNCTIONPR(RandomNormal, (float, float), float), AS_CALL_CDECL);
  237. // void RegisterAudioLibrary(Context* context) | File: ../Audio/Audio.h
  238. // Not registered because have @nobind mark
  239. // void RegisterGraphicsLibrary(Context* context) | File: ../Graphics/Graphics.h
  240. // Not registered because have @nobind mark
  241. // void RegisterResourceLibrary(Context* context) | File: ../Resource/ResourceCache.h
  242. // Not registered because have @nobind mark
  243. // void RegisterSceneLibrary(Context* context) | File: ../Scene/Scene.h
  244. // Not registered because have @nobind mark
  245. // void RegisterUILibrary(Context* context) | File: ../UI/UI.h
  246. // Not registered because have @nobind mark
  247. // String RemoveTrailingSlash(const String& pathName) | File: ../IO/FileSystem.h
  248. engine->RegisterGlobalFunction("String RemoveTrailingSlash(const String&in)", AS_FUNCTIONPR(RemoveTrailingSlash, (const String&), String), AS_CALL_CDECL);
  249. // String ReplaceExtension(const String& fullPath, const String& newExtension) | File: ../IO/FileSystem.h
  250. engine->RegisterGlobalFunction("String ReplaceExtension(const String&in, const String&in)", AS_FUNCTIONPR(ReplaceExtension, (const String&, const String&), String), AS_CALL_CDECL);
  251. // template <class T> T Round(T x) | File: ../Math/MathDefs.h
  252. engine->RegisterGlobalFunction("float Round(float)", AS_FUNCTIONPR(Round, (float), float), AS_CALL_CDECL);
  253. // template <class T> int RoundToInt(T x) | File: ../Math/MathDefs.h
  254. engine->RegisterGlobalFunction("int RoundToInt(float)", AS_FUNCTIONPR(RoundToInt, (float), int), AS_CALL_CDECL);
  255. // constexpr unsigned SDBMHash(unsigned hash, unsigned char c) | File: ../Math/MathDefs.h
  256. engine->RegisterGlobalFunction("uint SDBMHash(uint, uint8)", AS_FUNCTIONPR(SDBMHash, (unsigned, unsigned char), unsigned), AS_CALL_CDECL);
  257. // void SetMiniDumpDir(const String& pathName) | File: ../Core/ProcessUtils.h
  258. engine->RegisterGlobalFunction("void SetMiniDumpDir(const String&in)", AS_FUNCTIONPR(SetMiniDumpDir, (const String&), void), AS_CALL_CDECL);
  259. // void SetRandomSeed(unsigned seed) | File: ../Math/Random.h
  260. engine->RegisterGlobalFunction("void SetRandomSeed(uint)", AS_FUNCTIONPR(SetRandomSeed, (unsigned), void), AS_CALL_CDECL);
  261. // template <class T> T Sign(T value) | File: ../Math/MathDefs.h
  262. engine->RegisterGlobalFunction("float Sign(float)", AS_FUNCTIONPR(Sign, (float), float), AS_CALL_CDECL);
  263. // template <class T> T Sin(T angle) | File: ../Math/MathDefs.h
  264. engine->RegisterGlobalFunction("float Sin(float)", AS_FUNCTIONPR(Sin, (float), float), AS_CALL_CDECL);
  265. // void SinCos(float angle, float& sin, float& cos) | File: ../Math/MathDefs.h
  266. engine->RegisterGlobalFunction("void SinCos(float, float&, float&)", AS_FUNCTIONPR(SinCos, (float, float&, float&), void), AS_CALL_CDECL);
  267. // template <class T> T SmoothStep(T lhs, T rhs, T t) | File: ../Math/MathDefs.h
  268. engine->RegisterGlobalFunction("float SmoothStep(float, float, float)", AS_FUNCTIONPR(SmoothStep, (float, float, float), float), AS_CALL_CDECL);
  269. // void SplitPath(const String& fullPath, String& pathName, String& fileName, String& extension, bool lowercaseExtension = true) | File: ../IO/FileSystem.h
  270. engine->RegisterGlobalFunction("void SplitPath(const String&in, String&, String&, String&, bool = true)", AS_FUNCTIONPR(SplitPath, (const String&, String&, String&, String&, bool), void), AS_CALL_CDECL);
  271. // template <class T> T Sqrt(T x) | File: ../Math/MathDefs.h
  272. engine->RegisterGlobalFunction("float Sqrt(float)", AS_FUNCTIONPR(Sqrt, (float), float), AS_CALL_CDECL);
  273. // float StableRandom(const Vector2& seed) | File: ../Math/Vector2.h
  274. engine->RegisterGlobalFunction("float StableRandom(const Vector2&in)", AS_FUNCTIONPR(StableRandom, (const Vector2&), float), AS_CALL_CDECL);
  275. // float StableRandom(const Vector3& seed) | File: ../Math/Vector3.h
  276. engine->RegisterGlobalFunction("float StableRandom(const Vector3&in)", AS_FUNCTIONPR(StableRandom, (const Vector3&), float), AS_CALL_CDECL);
  277. // float StableRandom(float seed) | File: ../Math/Vector2.h
  278. engine->RegisterGlobalFunction("float StableRandom(float)", AS_FUNCTIONPR(StableRandom, (float), float), AS_CALL_CDECL);
  279. // void StringToBuffer(PODVector<unsigned char>& dest, const String& source) | File: ../Core/StringUtils.h
  280. // Error: type "PODVector<unsigned char>&" can not automatically bind
  281. // void StringToBuffer(PODVector<unsigned char>& dest, const char* source) | File: ../Core/StringUtils.h
  282. // Error: type "PODVector<unsigned char>&" can not automatically bind
  283. // template <class T> T Tan(T angle) | File: ../Math/MathDefs.h
  284. engine->RegisterGlobalFunction("float Tan(float)", AS_FUNCTIONPR(Tan, (float), float), AS_CALL_CDECL);
  285. // bool ToBool(const String& source) | File: ../Core/StringUtils.h
  286. engine->RegisterGlobalFunction("bool ToBool(const String&in)", AS_FUNCTIONPR(ToBool, (const String&), bool), AS_CALL_CDECL);
  287. // bool ToBool(const char* source) | File: ../Core/StringUtils.h
  288. // Error: type "const char*" can not automatically bind
  289. // Color ToColor(const String& source) | File: ../Core/StringUtils.h
  290. engine->RegisterGlobalFunction("Color ToColor(const String&in)", AS_FUNCTIONPR(ToColor, (const String&), Color), AS_CALL_CDECL);
  291. // Color ToColor(const char* source) | File: ../Core/StringUtils.h
  292. // Error: type "const char*" can not automatically bind
  293. // double ToDouble(const String& source) | File: ../Core/StringUtils.h
  294. engine->RegisterGlobalFunction("double ToDouble(const String&in)", AS_FUNCTIONPR(ToDouble, (const String&), double), AS_CALL_CDECL);
  295. // double ToDouble(const char* source) | File: ../Core/StringUtils.h
  296. // Error: type "const char*" can not automatically bind
  297. // float ToFloat(const String& source) | File: ../Core/StringUtils.h
  298. engine->RegisterGlobalFunction("float ToFloat(const String&in)", AS_FUNCTIONPR(ToFloat, (const String&), float), AS_CALL_CDECL);
  299. // float ToFloat(const char* source) | File: ../Core/StringUtils.h
  300. // Error: type "const char*" can not automatically bind
  301. // int ToInt(const String& source, int base = 10) | File: ../Core/StringUtils.h
  302. engine->RegisterGlobalFunction("int ToInt(const String&in, int = 10)", AS_FUNCTIONPR(ToInt, (const String&, int), int), AS_CALL_CDECL);
  303. // int ToInt(const char* source, int base = 10) | File: ../Core/StringUtils.h
  304. // Error: type "const char*" can not automatically bind
  305. // long long ToInt64(const String& source, int base = 10) | File: ../Core/StringUtils.h
  306. engine->RegisterGlobalFunction("int64 ToInt64(const String&in, int = 10)", AS_FUNCTIONPR(ToInt64, (const String&, int), long long), AS_CALL_CDECL);
  307. // long long ToInt64(const char* source, int base = 10) | File: ../Core/StringUtils.h
  308. // Error: type "const char*" can not automatically bind
  309. // IntRect ToIntRect(const String& source) | File: ../Core/StringUtils.h
  310. engine->RegisterGlobalFunction("IntRect ToIntRect(const String&in)", AS_FUNCTIONPR(ToIntRect, (const String&), IntRect), AS_CALL_CDECL);
  311. // IntRect ToIntRect(const char* source) | File: ../Core/StringUtils.h
  312. // Error: type "const char*" can not automatically bind
  313. // IntVector2 ToIntVector2(const String& source) | File: ../Core/StringUtils.h
  314. engine->RegisterGlobalFunction("IntVector2 ToIntVector2(const String&in)", AS_FUNCTIONPR(ToIntVector2, (const String&), IntVector2), AS_CALL_CDECL);
  315. // IntVector2 ToIntVector2(const char* source) | File: ../Core/StringUtils.h
  316. // Error: type "const char*" can not automatically bind
  317. // IntVector3 ToIntVector3(const String& source) | File: ../Core/StringUtils.h
  318. engine->RegisterGlobalFunction("IntVector3 ToIntVector3(const String&in)", AS_FUNCTIONPR(ToIntVector3, (const String&), IntVector3), AS_CALL_CDECL);
  319. // IntVector3 ToIntVector3(const char* source) | File: ../Core/StringUtils.h
  320. // Error: type "const char*" can not automatically bind
  321. // unsigned ToLower(unsigned ch) | File: ../Core/StringUtils.h
  322. engine->RegisterGlobalFunction("uint ToLower(uint)", AS_FUNCTIONPR(ToLower, (unsigned), unsigned), AS_CALL_CDECL);
  323. // Matrix3 ToMatrix3(const String& source) | File: ../Core/StringUtils.h
  324. engine->RegisterGlobalFunction("Matrix3 ToMatrix3(const String&in)", AS_FUNCTIONPR(ToMatrix3, (const String&), Matrix3), AS_CALL_CDECL);
  325. // Matrix3 ToMatrix3(const char* source) | File: ../Core/StringUtils.h
  326. // Error: type "const char*" can not automatically bind
  327. // Matrix3x4 ToMatrix3x4(const String& source) | File: ../Core/StringUtils.h
  328. engine->RegisterGlobalFunction("Matrix3x4 ToMatrix3x4(const String&in)", AS_FUNCTIONPR(ToMatrix3x4, (const String&), Matrix3x4), AS_CALL_CDECL);
  329. // Matrix3x4 ToMatrix3x4(const char* source) | File: ../Core/StringUtils.h
  330. // Error: type "const char*" can not automatically bind
  331. // Matrix4 ToMatrix4(const String& source) | File: ../Core/StringUtils.h
  332. engine->RegisterGlobalFunction("Matrix4 ToMatrix4(const String&in)", AS_FUNCTIONPR(ToMatrix4, (const String&), Matrix4), AS_CALL_CDECL);
  333. // Matrix4 ToMatrix4(const char* source) | File: ../Core/StringUtils.h
  334. // Error: type "const char*" can not automatically bind
  335. // Quaternion ToQuaternion(const String& source) | File: ../Core/StringUtils.h
  336. engine->RegisterGlobalFunction("Quaternion ToQuaternion(const String&in)", AS_FUNCTIONPR(ToQuaternion, (const String&), Quaternion), AS_CALL_CDECL);
  337. // Quaternion ToQuaternion(const char* source) | File: ../Core/StringUtils.h
  338. // Error: type "const char*" can not automatically bind
  339. // Rect ToRect(const String& source) | File: ../Core/StringUtils.h
  340. engine->RegisterGlobalFunction("Rect ToRect(const String&in)", AS_FUNCTIONPR(ToRect, (const String&), Rect), AS_CALL_CDECL);
  341. // Rect ToRect(const char* source) | File: ../Core/StringUtils.h
  342. // Error: type "const char*" can not automatically bind
  343. // String ToString(const char* formatString,...) | File: ../Core/StringUtils.h
  344. // Error: type "const char*" can not automatically bind
  345. // String ToString(void* value) | File: ../Core/StringUtils.h
  346. // Error: type "void*" can not automatically bind
  347. // String ToStringHex(unsigned value) | File: ../Core/StringUtils.h
  348. engine->RegisterGlobalFunction("String ToStringHex(uint)", AS_FUNCTIONPR(ToStringHex, (unsigned), String), AS_CALL_CDECL);
  349. // unsigned ToUInt(const String& source, int base = 10) | File: ../Core/StringUtils.h
  350. engine->RegisterGlobalFunction("uint ToUInt(const String&in, int = 10)", AS_FUNCTIONPR(ToUInt, (const String&, int), unsigned), AS_CALL_CDECL);
  351. // unsigned ToUInt(const char* source, int base = 10) | File: ../Core/StringUtils.h
  352. // Error: type "const char*" can not automatically bind
  353. // unsigned long long ToUInt64(const String& source, int base = 10) | File: ../Core/StringUtils.h
  354. engine->RegisterGlobalFunction("uint64 ToUInt64(const String&in, int = 10)", AS_FUNCTIONPR(ToUInt64, (const String&, int), unsigned long long), AS_CALL_CDECL);
  355. // unsigned long long ToUInt64(const char* source, int base = 10) | File: ../Core/StringUtils.h
  356. // Error: type "const char*" can not automatically bind
  357. // unsigned ToUpper(unsigned ch) | File: ../Core/StringUtils.h
  358. engine->RegisterGlobalFunction("uint ToUpper(uint)", AS_FUNCTIONPR(ToUpper, (unsigned), unsigned), AS_CALL_CDECL);
  359. // Vector2 ToVector2(const String& source) | File: ../Core/StringUtils.h
  360. engine->RegisterGlobalFunction("Vector2 ToVector2(const String&in)", AS_FUNCTIONPR(ToVector2, (const String&), Vector2), AS_CALL_CDECL);
  361. // Vector2 ToVector2(const char* source) | File: ../Core/StringUtils.h
  362. // Error: type "const char*" can not automatically bind
  363. // Vector3 ToVector3(const String& source) | File: ../Core/StringUtils.h
  364. engine->RegisterGlobalFunction("Vector3 ToVector3(const String&in)", AS_FUNCTIONPR(ToVector3, (const String&), Vector3), AS_CALL_CDECL);
  365. // Vector3 ToVector3(const char* source) | File: ../Core/StringUtils.h
  366. // Error: type "const char*" can not automatically bind
  367. // Vector4 ToVector4(const String& source, bool allowMissingCoords = false) | File: ../Core/StringUtils.h
  368. engine->RegisterGlobalFunction("Vector4 ToVector4(const String&in, bool = false)", AS_FUNCTIONPR(ToVector4, (const String&, bool), Vector4), AS_CALL_CDECL);
  369. // Vector4 ToVector4(const char* source, bool allowMissingCoords = false) | File: ../Core/StringUtils.h
  370. // Error: type "const char*" can not automatically bind
  371. // Variant ToVectorVariant(const String& source) | File: ../Core/StringUtils.h
  372. engine->RegisterGlobalFunction("Variant ToVectorVariant(const String&in)", AS_FUNCTIONPR(ToVectorVariant, (const String&), Variant), AS_CALL_CDECL);
  373. // Variant ToVectorVariant(const char* source) | File: ../Core/StringUtils.h
  374. // Error: type "const char*" can not automatically bind
  375. // IntVector2 VectorAbs(const IntVector2& vec) | File: ../Math/Vector2.h
  376. engine->RegisterGlobalFunction("IntVector2 VectorAbs(const IntVector2&in)", AS_FUNCTIONPR(VectorAbs, (const IntVector2&), IntVector2), AS_CALL_CDECL);
  377. // IntVector3 VectorAbs(const IntVector3& vec) | File: ../Math/Vector3.h
  378. engine->RegisterGlobalFunction("IntVector3 VectorAbs(const IntVector3&in)", AS_FUNCTIONPR(VectorAbs, (const IntVector3&), IntVector3), AS_CALL_CDECL);
  379. // Vector2 VectorAbs(const Vector2& vec) | File: ../Math/Vector2.h
  380. engine->RegisterGlobalFunction("Vector2 VectorAbs(const Vector2&in)", AS_FUNCTIONPR(VectorAbs, (const Vector2&), Vector2), AS_CALL_CDECL);
  381. // Vector3 VectorAbs(const Vector3& vec) | File: ../Math/Vector3.h
  382. engine->RegisterGlobalFunction("Vector3 VectorAbs(const Vector3&in)", AS_FUNCTIONPR(VectorAbs, (const Vector3&), Vector3), AS_CALL_CDECL);
  383. // Vector2 VectorCeil(const Vector2& vec) | File: ../Math/Vector2.h
  384. engine->RegisterGlobalFunction("Vector2 VectorCeil(const Vector2&in)", AS_FUNCTIONPR(VectorCeil, (const Vector2&), Vector2), AS_CALL_CDECL);
  385. // Vector3 VectorCeil(const Vector3& vec) | File: ../Math/Vector3.h
  386. engine->RegisterGlobalFunction("Vector3 VectorCeil(const Vector3&in)", AS_FUNCTIONPR(VectorCeil, (const Vector3&), Vector3), AS_CALL_CDECL);
  387. // Vector4 VectorCeil(const Vector4& vec) | File: ../Math/Vector4.h
  388. engine->RegisterGlobalFunction("Vector4 VectorCeil(const Vector4&in)", AS_FUNCTIONPR(VectorCeil, (const Vector4&), Vector4), AS_CALL_CDECL);
  389. // IntVector2 VectorCeilToInt(const Vector2& vec) | File: ../Math/Vector2.h
  390. engine->RegisterGlobalFunction("IntVector2 VectorCeilToInt(const Vector2&in)", AS_FUNCTIONPR(VectorCeilToInt, (const Vector2&), IntVector2), AS_CALL_CDECL);
  391. // IntVector3 VectorCeilToInt(const Vector3& vec) | File: ../Math/Vector3.h
  392. engine->RegisterGlobalFunction("IntVector3 VectorCeilToInt(const Vector3&in)", AS_FUNCTIONPR(VectorCeilToInt, (const Vector3&), IntVector3), AS_CALL_CDECL);
  393. // Vector2 VectorFloor(const Vector2& vec) | File: ../Math/Vector2.h
  394. engine->RegisterGlobalFunction("Vector2 VectorFloor(const Vector2&in)", AS_FUNCTIONPR(VectorFloor, (const Vector2&), Vector2), AS_CALL_CDECL);
  395. // Vector3 VectorFloor(const Vector3& vec) | File: ../Math/Vector3.h
  396. engine->RegisterGlobalFunction("Vector3 VectorFloor(const Vector3&in)", AS_FUNCTIONPR(VectorFloor, (const Vector3&), Vector3), AS_CALL_CDECL);
  397. // Vector4 VectorFloor(const Vector4& vec) | File: ../Math/Vector4.h
  398. engine->RegisterGlobalFunction("Vector4 VectorFloor(const Vector4&in)", AS_FUNCTIONPR(VectorFloor, (const Vector4&), Vector4), AS_CALL_CDECL);
  399. // IntVector2 VectorFloorToInt(const Vector2& vec) | File: ../Math/Vector2.h
  400. engine->RegisterGlobalFunction("IntVector2 VectorFloorToInt(const Vector2&in)", AS_FUNCTIONPR(VectorFloorToInt, (const Vector2&), IntVector2), AS_CALL_CDECL);
  401. // IntVector3 VectorFloorToInt(const Vector3& vec) | File: ../Math/Vector3.h
  402. engine->RegisterGlobalFunction("IntVector3 VectorFloorToInt(const Vector3&in)", AS_FUNCTIONPR(VectorFloorToInt, (const Vector3&), IntVector3), AS_CALL_CDECL);
  403. // Vector2 VectorLerp(const Vector2& lhs, const Vector2& rhs, const Vector2& t) | File: ../Math/Vector2.h
  404. engine->RegisterGlobalFunction("Vector2 VectorLerp(const Vector2&in, const Vector2&in, const Vector2&in)", AS_FUNCTIONPR(VectorLerp, (const Vector2&, const Vector2&, const Vector2&), Vector2), AS_CALL_CDECL);
  405. // Vector3 VectorLerp(const Vector3& lhs, const Vector3& rhs, const Vector3& t) | File: ../Math/Vector3.h
  406. engine->RegisterGlobalFunction("Vector3 VectorLerp(const Vector3&in, const Vector3&in, const Vector3&in)", AS_FUNCTIONPR(VectorLerp, (const Vector3&, const Vector3&, const Vector3&), Vector3), AS_CALL_CDECL);
  407. // Vector4 VectorLerp(const Vector4& lhs, const Vector4& rhs, const Vector4& t) | File: ../Math/Vector4.h
  408. engine->RegisterGlobalFunction("Vector4 VectorLerp(const Vector4&in, const Vector4&in, const Vector4&in)", AS_FUNCTIONPR(VectorLerp, (const Vector4&, const Vector4&, const Vector4&), Vector4), AS_CALL_CDECL);
  409. // IntVector2 VectorMax(const IntVector2& lhs, const IntVector2& rhs) | File: ../Math/Vector2.h
  410. engine->RegisterGlobalFunction("IntVector2 VectorMax(const IntVector2&in, const IntVector2&in)", AS_FUNCTIONPR(VectorMax, (const IntVector2&, const IntVector2&), IntVector2), AS_CALL_CDECL);
  411. // IntVector3 VectorMax(const IntVector3& lhs, const IntVector3& rhs) | File: ../Math/Vector3.h
  412. engine->RegisterGlobalFunction("IntVector3 VectorMax(const IntVector3&in, const IntVector3&in)", AS_FUNCTIONPR(VectorMax, (const IntVector3&, const IntVector3&), IntVector3), AS_CALL_CDECL);
  413. // Vector2 VectorMax(const Vector2& lhs, const Vector2& rhs) | File: ../Math/Vector2.h
  414. engine->RegisterGlobalFunction("Vector2 VectorMax(const Vector2&in, const Vector2&in)", AS_FUNCTIONPR(VectorMax, (const Vector2&, const Vector2&), Vector2), AS_CALL_CDECL);
  415. // Vector3 VectorMax(const Vector3& lhs, const Vector3& rhs) | File: ../Math/Vector3.h
  416. engine->RegisterGlobalFunction("Vector3 VectorMax(const Vector3&in, const Vector3&in)", AS_FUNCTIONPR(VectorMax, (const Vector3&, const Vector3&), Vector3), AS_CALL_CDECL);
  417. // Vector4 VectorMax(const Vector4& lhs, const Vector4& rhs) | File: ../Math/Vector4.h
  418. engine->RegisterGlobalFunction("Vector4 VectorMax(const Vector4&in, const Vector4&in)", AS_FUNCTIONPR(VectorMax, (const Vector4&, const Vector4&), Vector4), AS_CALL_CDECL);
  419. // IntVector2 VectorMin(const IntVector2& lhs, const IntVector2& rhs) | File: ../Math/Vector2.h
  420. engine->RegisterGlobalFunction("IntVector2 VectorMin(const IntVector2&in, const IntVector2&in)", AS_FUNCTIONPR(VectorMin, (const IntVector2&, const IntVector2&), IntVector2), AS_CALL_CDECL);
  421. // IntVector3 VectorMin(const IntVector3& lhs, const IntVector3& rhs) | File: ../Math/Vector3.h
  422. engine->RegisterGlobalFunction("IntVector3 VectorMin(const IntVector3&in, const IntVector3&in)", AS_FUNCTIONPR(VectorMin, (const IntVector3&, const IntVector3&), IntVector3), AS_CALL_CDECL);
  423. // Vector2 VectorMin(const Vector2& lhs, const Vector2& rhs) | File: ../Math/Vector2.h
  424. engine->RegisterGlobalFunction("Vector2 VectorMin(const Vector2&in, const Vector2&in)", AS_FUNCTIONPR(VectorMin, (const Vector2&, const Vector2&), Vector2), AS_CALL_CDECL);
  425. // Vector3 VectorMin(const Vector3& lhs, const Vector3& rhs) | File: ../Math/Vector3.h
  426. engine->RegisterGlobalFunction("Vector3 VectorMin(const Vector3&in, const Vector3&in)", AS_FUNCTIONPR(VectorMin, (const Vector3&, const Vector3&), Vector3), AS_CALL_CDECL);
  427. // Vector4 VectorMin(const Vector4& lhs, const Vector4& rhs) | File: ../Math/Vector4.h
  428. engine->RegisterGlobalFunction("Vector4 VectorMin(const Vector4&in, const Vector4&in)", AS_FUNCTIONPR(VectorMin, (const Vector4&, const Vector4&), Vector4), AS_CALL_CDECL);
  429. // Vector2 VectorRound(const Vector2& vec) | File: ../Math/Vector2.h
  430. engine->RegisterGlobalFunction("Vector2 VectorRound(const Vector2&in)", AS_FUNCTIONPR(VectorRound, (const Vector2&), Vector2), AS_CALL_CDECL);
  431. // Vector3 VectorRound(const Vector3& vec) | File: ../Math/Vector3.h
  432. engine->RegisterGlobalFunction("Vector3 VectorRound(const Vector3&in)", AS_FUNCTIONPR(VectorRound, (const Vector3&), Vector3), AS_CALL_CDECL);
  433. // Vector4 VectorRound(const Vector4& vec) | File: ../Math/Vector4.h
  434. engine->RegisterGlobalFunction("Vector4 VectorRound(const Vector4&in)", AS_FUNCTIONPR(VectorRound, (const Vector4&), Vector4), AS_CALL_CDECL);
  435. // IntVector2 VectorRoundToInt(const Vector2& vec) | File: ../Math/Vector2.h
  436. engine->RegisterGlobalFunction("IntVector2 VectorRoundToInt(const Vector2&in)", AS_FUNCTIONPR(VectorRoundToInt, (const Vector2&), IntVector2), AS_CALL_CDECL);
  437. // IntVector3 VectorRoundToInt(const Vector3& vec) | File: ../Math/Vector3.h
  438. engine->RegisterGlobalFunction("IntVector3 VectorRoundToInt(const Vector3&in)", AS_FUNCTIONPR(VectorRoundToInt, (const Vector3&), IntVector3), AS_CALL_CDECL);
  439. // bool WriteDrawablesToOBJ(const PODVector<Drawable*>& drawables, File* outputFile, bool asZUp, bool asRightHanded, bool writeLightmapUV = false) | File: ../Graphics/Drawable.h
  440. engine->RegisterGlobalFunction("bool WriteDrawablesToOBJ(Array<Drawable@>@, File@+, bool, bool, bool = false)", AS_FUNCTION(bool_WriteDrawablesToOBJ_constspPODVectorlesDrawablestargreamp_Filestar_bool_bool_bool), AS_CALL_CDECL);
  441. #ifdef URHO3D_IK
  442. // void RegisterIKLibrary(Context* context) | File: ../IK/IK.h
  443. // Not registered because have @nobind mark
  444. #endif
  445. #ifdef URHO3D_NAVIGATION
  446. // void RegisterNavigationLibrary(Context* context) | File: ../Navigation/NavigationMesh.h
  447. // Not registered because have @nobind mark
  448. #endif
  449. #ifdef URHO3D_NETWORK
  450. // void RegisterNetworkLibrary(Context* context) | File: ../Network/Network.h
  451. // Not registered because have @nobind mark
  452. #endif
  453. #ifdef URHO3D_PHYSICS
  454. // void RegisterPhysicsLibrary(Context* context) | File: ../Physics/PhysicsWorld.h
  455. // Not registered because have @nobind mark
  456. #endif
  457. #ifdef URHO3D_PHYSICS2D
  458. // void RegisterPhysics2DLibrary(Context* context) | File: ../Physics2D/Physics2D.h
  459. // Not registered because have @nobind mark
  460. #endif
  461. #ifdef URHO3D_URHO2D
  462. // void RegisterUrho2DLibrary(Context* context) | File: ../Urho2D/Urho2D.h
  463. // Not registered because have @nobind mark
  464. #endif
  465. }
  466. }