MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ASDebugDrawLines

Function ASDebugDrawLines

Source/Scripting/angelscript/asfuncs.cpp:2219–2229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2217}
2218
2219int ASDebugDrawLines(const CScriptArray& array, vec4 color, int lifespan_int) {
2220 std::vector<vec3> data;
2221
2222 data.reserve((int)array.GetSize());
2223 for (int n = 0; n < (int)array.GetSize(); n++) {
2224 data.push_back(*((vec3*)array.At(n)));
2225 }
2226
2227 DDLifespan lifespan = LifespanFromInt(lifespan_int);
2228 return DebugDraw::Instance()->AddLines(data, color, lifespan, _DD_NO_FLAG);
2229}
2230
2231int ASDebugDrawText(vec3 pos, std::string text, float scale, bool screen_space, int lifespan_int) {
2232 DDLifespan lifespan = LifespanFromInt(lifespan_int);

Callers

nothing calls this directly

Calls 6

LifespanFromIntFunction · 0.85
AddLinesMethod · 0.80
reserveMethod · 0.45
GetSizeMethod · 0.45
push_backMethod · 0.45
AtMethod · 0.45

Tested by

no test coverage detected