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

Method DebugDrawBillboard

Source/Graphics/text.cpp:537–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void TextCanvasTexture::DebugDrawBillboard(const vec3& pos, float scale, int lifespan_int) {
538 DDLifespan lifespan = LifespanFromInt(lifespan_int);
539
540 RemoveDebugDrawBillboard();
541 debug_draw_billboard_id = DebugDraw::Instance()->AddBillboard(impl_->texture_ref, pos, scale, vec4(1.0f), kPremultiplied, lifespan);
542}
543
544void TextCanvasTexture::RemoveDebugDrawBillboard() {
545 if (debug_draw_billboard_id != -1) {

Callers

nothing calls this directly

Calls 3

LifespanFromIntFunction · 0.85
AddBillboardMethod · 0.80
vec4Class · 0.70

Tested by

no test coverage detected