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

Method submit

src/world/gui.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void GuiBuffer::submit(u32 num_vertices, u32 num_indices, const Matrix4x4 &world, ShaderData &shader, u8 view, u32 depth)
69{
70 bgfx::setVertexBuffer(0, &_vertex_buffer, _num_vertices, num_vertices);
71 bgfx::setIndexBuffer(&_index_buffer, _num_indices, num_indices);
72 bgfx::setTransform(to_float_ptr(world));
73
74 bgfx::setState(shader.state);
75 bgfx::submit(view, shader.program, depth);
76
77 _num_vertices += num_vertices;
78 _num_indices += num_indices;
79}
80
81void GuiBuffer::submit_with_material(u32 num_vertices, u32 num_indices, const Matrix4x4 &world, u8 view, u32 depth, Material *material)
82{

Callers 6

renderMethod · 0.45
triangle_3dMethod · 0.45
rect_3dMethod · 0.45
debug_drawMethod · 0.45
drawMethod · 0.45
load_apiFunction · 0.45

Calls 5

setVertexBufferFunction · 0.50
setIndexBufferFunction · 0.50
setTransformFunction · 0.50
setStateFunction · 0.50
submitFunction · 0.50

Tested by

no test coverage detected