Vector2f.h 942 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include <RmlUi/Core/Types.h>
  3. #include <RmlUi/Lua/IncludeLua.h>
  4. #include <RmlUi/Lua/LuaType.h>
  5. namespace Rml {
  6. namespace Lua {
  7. template <>
  8. void ExtraInit<Vector2f>(lua_State* L, int metatable_index);
  9. int Vector2fnew(lua_State* L);
  10. int Vector2f__mul(lua_State* L);
  11. int Vector2f__div(lua_State* L);
  12. int Vector2f__add(lua_State* L);
  13. int Vector2f__sub(lua_State* L);
  14. int Vector2f__eq(lua_State* L);
  15. int Vector2fDotProduct(lua_State* L, Vector2f* obj);
  16. int Vector2fNormalise(lua_State* L, Vector2f* obj);
  17. int Vector2fRotate(lua_State* L, Vector2f* obj);
  18. int Vector2fGetAttrx(lua_State* L);
  19. int Vector2fGetAttry(lua_State* L);
  20. int Vector2fGetAttrmagnitude(lua_State* L);
  21. int Vector2fSetAttrx(lua_State* L);
  22. int Vector2fSetAttry(lua_State* L);
  23. extern RegType<Vector2f> Vector2fMethods[];
  24. extern luaL_Reg Vector2fGetters[];
  25. extern luaL_Reg Vector2fSetters[];
  26. RMLUI_LUATYPE_DECLARE(Vector2f)
  27. } // namespace Lua
  28. } // namespace Rml