MCPcopy Create free account
hub / github.com/ange-yaghi/engine-sim / EngineSimApplication

Method EngineSimApplication

src/engine_sim_application.cpp:29–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27std::string EngineSimApplication::s_buildVersion = "0.1.11a";
28
29EngineSimApplication::EngineSimApplication() {
30 m_assetPath = "";
31
32 m_geometryVertexBuffer = nullptr;
33 m_geometryIndexBuffer = nullptr;
34
35 m_paused = false;
36 m_recording = false;
37 m_screenResolutionIndex = 0;
38 for (int i = 0; i < ScreenResolutionHistoryLength; ++i) {
39 m_screenResolution[i][0] = m_screenResolution[i][1] = 0;
40 }
41
42 m_background = ysColor::srgbiToLinear(0x0E1012);
43 m_foreground = ysColor::srgbiToLinear(0xFFFFFF);
44 m_shadow = ysColor::srgbiToLinear(0x0E1012);
45 m_highlight1 = ysColor::srgbiToLinear(0xEF4545);
46 m_highlight2 = ysColor::srgbiToLinear(0xFFFFFF);
47 m_pink = ysColor::srgbiToLinear(0xF394BE);
48 m_red = ysColor::srgbiToLinear(0xEE4445);
49 m_orange = ysColor::srgbiToLinear(0xF4802A);
50 m_yellow = ysColor::srgbiToLinear(0xFDBD2E);
51 m_blue = ysColor::srgbiToLinear(0x77CEE0);
52 m_green = ysColor::srgbiToLinear(0xBDD869);
53
54 m_displayHeight = (float)units::distance(2.0, units::foot);
55 m_outputAudioBuffer = nullptr;
56 m_audioSource = nullptr;
57
58 m_torque = 0;
59 m_dynoSpeed = 0;
60
61 m_engineView = nullptr;
62 m_rightGaugeCluster = nullptr;
63 m_temperatureGauge = nullptr;
64 m_oscCluster = nullptr;
65 m_performanceCluster = nullptr;
66 m_loadSimulationCluster = nullptr;
67 m_mixerCluster = nullptr;
68 m_infoCluster = nullptr;
69 m_iceEngine = nullptr;
70 m_mainRenderTarget = nullptr;
71
72 m_vehicle = nullptr;
73 m_transmission = nullptr;
74
75 m_oscillatorSampleOffset = 0;
76 m_gameWindowHeight = 256;
77 m_screenWidth = 256;
78 m_screenHeight = 256;
79 m_screen = 0;
80 m_viewParameters.Layer0 = 0;
81 m_viewParameters.Layer1 = 0;
82}
83
84EngineSimApplication::~EngineSimApplication() {
85 /* void */

Callers

nothing calls this directly

Calls 1

distanceFunction · 0.85

Tested by

no test coverage detected