MCPcopy Create free account
hub / github.com/El-EnderJ/NeoCalculator / ParticleLabApp

Method ParticleLabApp

src/apps/ParticleLabApp.cpp:68–90  ·  view source on GitHub ↗

═══════════════════════════════════════════════════════════════════ Constructor / Destructor ═══════════════════════════════════════════════════════════════════

Source from the content-addressed store, hash-verified

66// Constructor / Destructor
67// ═══════════════════════════════════════════════════════════════════
68ParticleLabApp::ParticleLabApp()
69 : _screen(nullptr)
70 , _drawObj(nullptr)
71 , _infoLabel(nullptr)
72 , _simTimer(nullptr)
73 , _renderBuf(nullptr)
74 , _cursorX(PG_W / 2)
75 , _cursorY(PG_H / 2)
76 , _brushRadius(0)
77 , _brushShape(BrushShape::CIRCLE)
78 , _selectedMat(0)
79 , _drawing(false)
80 , _drawStartX(PG_W / 2)
81 , _drawStartY(PG_H / 2)
82 , _thermoMode(false)
83 , _paletteOpen(false)
84 , _paletteCurX(0)
85 , _paletteCurY(0)
86 , _paused(false)
87{
88 _infoBuf[0] = '\0';
89 memset(&_imgDsc, 0, sizeof(_imgDsc));
90}
91
92ParticleLabApp::~ParticleLabApp() {
93 end();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected