| 127 | bool paused = false; |
| 128 | |
| 129 | void update(void *) { |
| 130 | //**if (paused) return; |
| 131 | kinc_a2_update(); |
| 132 | |
| 133 | SystemImpl_obj::frame(); |
| 134 | |
| 135 | /*int windowCount = Kore::Window::count(); |
| 136 | |
| 137 | for (int windowIndex = 0; windowIndex < windowCount; ++windowIndex) { |
| 138 | if (visible) { |
| 139 | #ifndef VR_RIFT |
| 140 | Kore::Graphics4::begin(windowIndex); |
| 141 | #endif |
| 142 | |
| 143 | // Google Cardboard: Update the Distortion mesh |
| 144 | #ifdef VR_CARDBOARD |
| 145 | // Kore::VrInterface::DistortionBefore(); |
| 146 | #endif |
| 147 | |
| 148 | SystemImpl_obj::frame(windowIndex); |
| 149 | |
| 150 | #ifndef VR_RIFT |
| 151 | Kore::Graphics4::end(windowIndex); |
| 152 | #endif |
| 153 | |
| 154 | // Google Cardboard: Call the DistortionMesh Renderer |
| 155 | #ifdef VR_CARDBOARD |
| 156 | // Kore::VrInterface::DistortionAfter(); |
| 157 | #endif |
| 158 | |
| 159 | |
| 160 | } |
| 161 | }*/ |
| 162 | |
| 163 | #ifndef VR_RIFT |
| 164 | if (!kinc_g4_swap_buffers()) { |
| 165 | kinc_log(KINC_LOG_LEVEL_ERROR, "Graphics context lost."); |
| 166 | } |
| 167 | #endif |
| 168 | } |
| 169 | |
| 170 | void foreground(void *) { |
| 171 | visible = true; |
nothing calls this directly
no outgoing calls
no test coverage detected