MCPcopy Create free account
hub / github.com/crownengine/crown / DebugLine

Method DebugLine

src/world/debug_line.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static bgfx::VertexLayout vertex_layout;
29
30DebugLine::DebugLine(Allocator &a, ShaderData *shader)
31 : _marker(DEBUG_LINE_MARKER)
32 , _lines(a)
33 , _shader(shader)
34{
35 if (vertex_layout.m_hash == 0) {
36 vertex_layout.begin();
37 vertex_layout.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float);
38 vertex_layout.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true);
39 vertex_layout.end();
40 }
41}
42
43DebugLine::~DebugLine()
44{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
addMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected