GeneratedGlobalFunctions.cpp 44 KB

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