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

Method Initialize

Descent3/debuggraph.cpp:329–340  ·  view source on GitHub ↗

///////////////////////////////////////

Source from the content-addressed store, hash-verified

327
328////////////////////////////////////////////
329void tGraphNode::Initialize(tAddDebugGraph *data) {
330 if (!data)
331 return;
332
333 memcpy(&init_data, data, sizeof(tAddDebugGraph));
334 cur_write_pos = 0;
335 first_pos = 0;
336 num_items_stored = 0;
337
338 color = GR_RGB(255, 40, 40);
339 memset(i_data, 0, sizeof(int) * NUM_FRAMES_TO_DISPLAY);
340}
341
342void tGraphNode::Update(int value) {
343 ASSERT(init_data.data_input == DATA_TYPE_INT);

Callers 1

DebugGraph_AddFunction · 0.45

Calls 1

GR_RGBFunction · 0.50

Tested by

no test coverage detected