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

Function LoadClassPolygon

src/Core/Bindings/obe/Graphics/Canvas/Canvas.cpp:154–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 bindLine["Type"] = sol::var(obe::Graphics::Canvas::Line::Type);
153 }
154 void LoadClassPolygon(sol::state_view state)
155 {
156 sol::table CanvasNamespace = state["obe"]["Graphics"]["Canvas"].get<sol::table>();
157 sol::usertype<obe::Graphics::Canvas::Polygon> bindPolygon
158 = CanvasNamespace.new_usertype<obe::Graphics::Canvas::Polygon>("Polygon",
159 sol::call_constructor,
160 sol::constructors<obe::Graphics::Canvas::Polygon(
161 obe::Graphics::Canvas::Canvas&, const std::string&)>(),
162 sol::base_classes,
163 sol::bases<obe::Graphics::Canvas::CanvasPositionable,
164 obe::Graphics::Canvas::CanvasElement,
165 obe::Types::ProtectedIdentifiable, obe::Types::Identifiable>());
166 bindPolygon["draw"] = &obe::Graphics::Canvas::Polygon::draw;
167 bindPolygon["shape"] = &obe::Graphics::Canvas::Polygon::shape;
168 bindPolygon["Type"] = sol::var(obe::Graphics::Canvas::Polygon::Type);
169 }
170 void LoadClassRectangle(sol::state_view state)
171 {
172 sol::table CanvasNamespace = state["obe"]["Graphics"]["Canvas"].get<sol::table>();

Callers

nothing calls this directly

Calls 1

varFunction · 0.85

Tested by

no test coverage detected