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

Function ASDebugDrawBillboard

Source/Scripting/angelscript/asfuncs.cpp:2187–2191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2185}
2186
2187int ASDebugDrawBillboard(const std::string& texture_path, vec3 center, float scale, vec4 color, int lifespan_int) {
2188 DDLifespan lifespan = LifespanFromInt(lifespan_int);
2189 TextureAssetRef tex_ref = Engine::Instance()->GetAssetManager()->LoadSync<TextureAsset>(texture_path);
2190 return DebugDraw::Instance()->AddBillboard(tex_ref->GetTextureRef(), center, scale, color, kStraightBlend, lifespan);
2191}
2192
2193int ASDebugDrawLine2(vec3 start, vec3 end, vec3 color, vec3 color2, int lifespan_int) {
2194 DDLifespan lifespan = LifespanFromInt(lifespan_int);

Callers

nothing calls this directly

Calls 4

LifespanFromIntFunction · 0.85
GetAssetManagerMethod · 0.80
AddBillboardMethod · 0.80
GetTextureRefMethod · 0.80

Tested by

no test coverage detected