MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / LoadClassRenderTarget

Function LoadClassRenderTarget

src/Core/Bindings/obe/Graphics/Graphics.cpp:254–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 = &obe::Graphics::PositionTransformer::operator();
253 }
254 void LoadClassRenderTarget(sol::state_view state)
255 {
256 sol::table GraphicsNamespace = state["obe"]["Graphics"].get<sol::table>();
257 sol::usertype<obe::Graphics::RenderTarget> bindRenderTarget
258 = GraphicsNamespace.new_usertype<obe::Graphics::RenderTarget>("RenderTarget",
259 sol::call_constructor,
260 sol::constructors<obe::Graphics::RenderTarget(sf::RenderTarget&),
261 obe::Graphics::RenderTarget(sf::RenderWindow&)>());
262 bindRenderTarget["draw"] = sol::overload(
263 static_cast<void (obe::Graphics::RenderTarget::*)(const sf::Drawable&,
264 const sf::RenderStates&) const>(&obe::Graphics::RenderTarget::draw),
265 static_cast<void (obe::Graphics::RenderTarget::*)(const sf::Vertex*,
266 std::size_t, sf::PrimitiveType, const sf::RenderStates&) const>(
267 &obe::Graphics::RenderTarget::draw));
268 bindRenderTarget["operator sf::RenderTarget &"]
269 = &obe::Graphics::RenderTarget::operator sf::RenderTarget&;
270 bindRenderTarget["operator const sf::RenderTarget &"]
271 = &obe::Graphics::RenderTarget::operator const sf::RenderTarget&;
272 }
273 void LoadClassRichText(sol::state_view state)
274 {
275 sol::table GraphicsNamespace = state["obe"]["Graphics"].get<sol::table>();

Callers

nothing calls this directly

Calls 1

overloadFunction · 0.85

Tested by

no test coverage detected