bool OgreConsole::frameStarted(const Ogre::FrameEvent &evt) { if(mUpdateConsole) updateConsole(); if (mUpdatePrompt) updatePrompt(); return true; }
void executeCompilation(int pTypeCompilation) { //pTypeCompilation == COMPILE -> Solo modo de compilacion (generación de archivo). //pTypeCompilation == COMPILEANDSIMULE -> Modo de compilación + simulación (no generación de archivo, guardado en memoria). printf("Compiling... "); updateConsole(); verifyTypeCompilation(pTypeCompilation, START); int totalInstructions = getLastInstruction(); for(i = 0; i <= totalInstructions; i = i + 1) { int compiledInstruction = compileInstruction(getInstruction(i)); saveCompiledInstruction(pTypeCompilation, compiledInstruction, i); } verifyTypeCompilation(pTypeCompilation, END); printf("Ok.\n"); updateConsole(); }
int main() { setup(); updateConsole(); while(1) { renderScene(); receiveInput(); glFlush(0); swiWaitForVBlank(); } return 0; }
//************************************************************************************************************************************** //Called each time a new step of the simulation if computed void ModifyObject::updateTables() { #ifdef DEBUG_GUI std::cout << "GUI>emit updateDataWidgets()" << std::endl; #endif emit updateDataWidgets(); #ifdef DEBUG_GUI std::cout << "GUI<emit updateDataWidgets()" << std::endl; #endif if (energy) { energy->step(); if (dialogTab->currentPage() == energy) energy->updateVisualization(); } if(node){ updateConsole(); } }
static void receiveInput() { bool modelChanged = false; scanKeys(); u16 pressed = keysDown(); u16 held = keysHeld(); if (held & KEY_LEFT) rotateCameraY(50); if (held & KEY_RIGHT) rotateCameraY(-50); if (held & KEY_UP) rotateCameraX(50); if (held & KEY_DOWN) rotateCameraX(-50); if (held & KEY_X) rotateCameraZ(30); if (pressed & KEY_L) { selectedModel--; modelChanged = true; } if (pressed & KEY_R) { selectedModel++; modelChanged = true; } if (modelChanged) { if (selectedModel >= NUM_MODELS) selectedModel = NUM_MODELS-1; if (selectedModel < 0) selectedModel = 0; updateConsole(); lookAtSelectedModel(); } if (pressed & KEY_A) drawMode = !drawMode; if (pressed & KEY_START) lookAtSelectedModel(); }
/* connection */ void mainWindow::updateData() { // Getting the current date if needed for the log file QString date = QDateTime::currentDateTime().toString("_MM_dd_yyyy"); // Opening a log file if required if(ui->logToFile->isChecked()) { // Adding the date to the name if needed if(ui->appendDate->isChecked()) log = new QFile(ui->fileName->text()+date+".txt"); else log = new QFile(ui->fileName->text()+".txt"); // Always open as Append log->open(QIODevice::Append); } QDateTime d = QDateTime::currentDateTime(); // Updating the different datas updateYAxis(protocole->lastValue[5]); updateXAxis(protocole->lastValue[4],/*d.toMSecsSinceEpoch());//*/getDate(protocole->lastString)); updateTimeGraph(protocole->lastValue[6],3); for(int i=4;i<7;i++) updateTimeGraph(protocole->lastValue[i-3],i); updateTimeGraph(protocole->lastValue[7],7); updateConsole(protocole->lastString); // Logging to the file if(ui->logToFile->isChecked()) log->write(protocole->lastString.toLatin1()+"\n"); // Closing the file if it had been opened if(ui->logToFile->isChecked()) log->close(); }
void game_update() { updateConsole(); }
void game_update() { updateConsole(); collisions = 0; }
void game_update() { add_sprite(); updateConsole(); }