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

Function LoadClassLine

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

Source from the content-addressed store, hash-verified

133 bindCircle["Type"] = sol::var(obe::Graphics::Canvas::Circle::Type);
134 }
135 void LoadClassLine(sol::state_view state)
136 {
137 sol::table CanvasNamespace = state["obe"]["Graphics"]["Canvas"].get<sol::table>();
138 sol::usertype<obe::Graphics::Canvas::Line> bindLine
139 = CanvasNamespace.new_usertype<obe::Graphics::Canvas::Line>("Line",
140 sol::call_constructor,
141 sol::constructors<obe::Graphics::Canvas::Line(
142 obe::Graphics::Canvas::Canvas&, const std::string&)>(),
143 sol::base_classes,
144 sol::bases<obe::Graphics::Canvas::CanvasElement,
145 obe::Types::ProtectedIdentifiable, obe::Types::Identifiable>());
146 bindLine["draw"] = &obe::Graphics::Canvas::Line::draw;
147 bindLine["p1"] = &obe::Graphics::Canvas::Line::p1;
148 bindLine["p2"] = &obe::Graphics::Canvas::Line::p2;
149 bindLine["thickness"] = &obe::Graphics::Canvas::Line::thickness;
150 bindLine["p1color"] = &obe::Graphics::Canvas::Line::p1color;
151 bindLine["p2color"] = &obe::Graphics::Canvas::Line::p2color;
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>();

Callers

nothing calls this directly

Calls 1

varFunction · 0.85

Tested by

no test coverage detected