MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DebugGraph_Add

Function DebugGraph_Add

Descent3/debuggraph.cpp:203–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203int DebugGraph_Add(int min, int max, const char *name, int flags) {
204 tAddDebugGraph data;
205 tGraphNode *node = DebugGraph_AddNode();
206 if (!node)
207 return -1;
208
209 int index = graph_num_nodes - 1;
210 data.data_input = DATA_TYPE_INT;
211 data.i_max_value = max;
212 data.i_min_value = min;
213 data.flags = flags;
214 node->Initialize(&data);
215 node->color = GraphColors[index].color;
216 strncpy(node->name, name, MAX_NAME - 1);
217 node->name[MAX_NAME - 1] = '\0';
218 return index;
219}
220
221int DebugGraph_Add(float min, float max, const char *name, int flags) {
222 tAddDebugGraph data;

Callers 2

GameFrameFunction · 0.85
MultiDoFrameFunction · 0.85

Calls 2

DebugGraph_AddNodeFunction · 0.85
InitializeMethod · 0.45

Tested by

no test coverage detected