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

Function create

src/device/graph.cpp:471–477  ·  view source on GitHub ↗

Creates a new graph with the specified @a name and appends it to the list @a head.

Source from the content-addressed store, hash-verified

469 /// Creates a new graph with the specified @a name and appends it
470 /// to the list @a head.
471 Graph *create(ListNode &head, const char *name)
472 {
473 Graph *graph = CE_NEW(default_allocator(), Graph)(default_allocator());
474 graph->_name = name;
475 list::add(graph->_node, head);
476 return graph;
477 }
478
479 /// Destroys the specified @a graph.
480 void destroy(Graph *graph)

Callers 4

main_loopMethod · 0.70
InputManagerMethod · 0.70
handle_commandFunction · 0.70
initFunction · 0.70

Calls 1

addFunction · 0.50

Tested by

no test coverage detected