Generated_GlobalFunctions.cpp 45 KB

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