void loadDefaults() { state.memoryAvailable = 0; state.memoryPercentage = 50; #ifndef NO_GUI video.sdlStarted = 0; video.agarStarted = 0; video.screenWtoApply = 0; video.screenHtoApply = 0; video.screenBPP = 0; #ifdef WITHOUT_AGAR video.screenFS = 0; #else video.screenFS = 1; #endif video.screenAA = 0; strcpy(video.fontFile, "Vera.ttf"); video.fontSize = 11; #endif viewInit(); spawnDefaults(); stateInit(); commandInit(); }
void WMTemplateRoiSelection::moduleInit() { infoLog() << "Initializing module " << getName(); // init moduleState for using Events in mainLoop m_moduleState.setResetable( true, true ); // resetable, autoreset m_moduleState.add( m_input->getDataChangedCondition() ); // when inputdata changed m_moduleState.add( m_propCondition ); // when properties changed ready(); // signal ready state waitRestored(); viewInit( WLEMDDrawable2D::WEGraphType::SINGLE ); }
int _tmain(int argc, char** argv) { glutInit(&argc, argv); viewInit(); glutReshapeFunc(myReshape); glutDisplayFunc(display); glutMouseFunc(mouse); glutKeyboardFunc(keys); glutSpecialFunc(keyboard); lightInit(); glEnable(GL_DEPTH_TEST); /* enable z buffer */ programInit(); glutMainLoop(); return 0; }
void WMHeadPositionCorrection::moduleInit() { infoLog() << "Initializing module ..."; m_moduleState.setResetable( true, true ); // resetable, autoreset m_moduleState.add( m_input->getDataChangedCondition() ); // Wake up when input data changed m_moduleState.add( m_propCondition ); // Wake up when property changed ready(); // signal ready state waitRestored(); m_hasRefPos = hdlPosFileChanged( m_propPosFile->get().string() ); viewInit( WLEMDDrawable2D::WEGraphType::DYNAMIC ); infoLog() << "Initializing module finished!"; }