| 393 | bindText["string"] = &obe::Graphics::Text::string; |
| 394 | } |
| 395 | void LoadClassTexture(sol::state_view state) |
| 396 | { |
| 397 | sol::table GraphicsNamespace = state["obe"]["Graphics"].get<sol::table>(); |
| 398 | sol::usertype<obe::Graphics::Texture> bindTexture |
| 399 | = GraphicsNamespace.new_usertype<obe::Graphics::Texture>("Texture", |
| 400 | sol::call_constructor, |
| 401 | sol::constructors<obe::Graphics::Texture(), |
| 402 | obe::Graphics::Texture(std::shared_ptr<sf::Texture>), |
| 403 | obe::Graphics::Texture(const sf::Texture&), |
| 404 | obe::Graphics::Texture(const obe::Graphics::Texture&)>()); |
| 405 | bindTexture["create"] = &obe::Graphics::Texture::create; |
| 406 | bindTexture["loadFromFile"] = sol::overload( |
| 407 | static_cast<bool (obe::Graphics::Texture::*)(const std::string&)>( |
| 408 | &obe::Graphics::Texture::loadFromFile), |
| 409 | static_cast<bool (obe::Graphics::Texture::*)(const std::string&, |
| 410 | const obe::Transform::Rect&)>(&obe::Graphics::Texture::loadFromFile)); |
| 411 | bindTexture["loadFromImage"] = &obe::Graphics::Texture::loadFromImage; |
| 412 | bindTexture["getSize"] = &obe::Graphics::Texture::getSize; |
| 413 | bindTexture["setAntiAliasing"] = &obe::Graphics::Texture::setAntiAliasing; |
| 414 | bindTexture["isAntiAliased"] = &obe::Graphics::Texture::isAntiAliased; |
| 415 | bindTexture["setRepeated"] = &obe::Graphics::Texture::setRepeated; |
| 416 | bindTexture["isRepeated"] = &obe::Graphics::Texture::isRepeated; |
| 417 | bindTexture["reset"] = &obe::Graphics::Texture::reset; |
| 418 | bindTexture["useCount"] = &obe::Graphics::Texture::useCount; |
| 419 | bindTexture["operator sf::Texture &"] |
| 420 | = &obe::Graphics::Texture::operator sf::Texture&; |
| 421 | bindTexture["operator const sf::Texture &"] |
| 422 | = &obe::Graphics::Texture::operator const sf::Texture&; |
| 423 | bindTexture["operator="] = sol::overload( |
| 424 | static_cast<obe::Graphics::Texture& ( |
| 425 | obe::Graphics::Texture::*)(const obe::Graphics::Texture&)>( |
| 426 | &obe::Graphics::Texture::operator=), |
| 427 | static_cast<obe::Graphics::Texture& ( |
| 428 | obe::Graphics::Texture::*)(const sf::Texture&)>( |
| 429 | &obe::Graphics::Texture::operator=), |
| 430 | static_cast<obe::Graphics::Texture& ( |
| 431 | obe::Graphics::Texture::*)(std::shared_ptr<sf::Texture>)>( |
| 432 | &obe::Graphics::Texture::operator=)); |
| 433 | } |
| 434 | void LoadFunctionInitPositionTransformer(sol::state_view state) |
| 435 | { |
| 436 | sol::table GraphicsNamespace = state["obe"]["Graphics"].get<sol::table>(); |
nothing calls this directly
no test coverage detected