void Init(int argc, char *argv[]) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGBA | GLUT_DEPTH | GLUT_DOUBLE); glutInitWindowSize(576, 576); int windowHandle = glutCreateWindow("GLUT Animation"); InitTexture(); loader.Load("obj/horse.obj"); GenList(DrawWalls, &texture[0]); GenList(DrawFloor, &texture[3]); double pa[3] = {-43, -7, 0}; double pb[3] = {-37, 7, 15}; check.Update(string("horse"), CheckCollsion::Cube(pa, pb)); GenList(DrawObj, &loader); gif.InitTexture(); glutDisplayFunc(Redraw); glutReshapeFunc(Reshape); glutKeyboardFunc(ProcessKey); glutIdleFunc(Idle); glutMainLoop(); }
/* ** Presentation reads a finite presentation. The syntax of a presentation ** is: ** presentation: '<' genlist '|' rellist '>' | ** '<' genlist ; genlist '|' rellist '>' */ void Presentation(FILE *fp, const char *filename) { InitParser(fp, filename); if (Token != LANGLE) SyntaxError("presentation expected"); NextToken(); if (Token != GEN && Token != PIPE) SyntaxError("generator or vertical bar expected"); Pres.nragens = GenList(); if (Token == SEMICOLON) { NextToken(); Pres.nrigens = GenList(); } else Pres.nrigens = 0; if (Token != PIPE) SyntaxError("vertical bar expected"); NextToken(); Pres.rels = RelList(); Pres.nrrels = 0; while (Pres.rels[Pres.nrrels]) Pres.nrrels++; if (Token != RANGLE) SyntaxError("presentation has to be closed by '>'"); }
TilePath clPather::Run() { TilePath ret; GenList(); ret=RunBase(); return ret; }
void Chamber::init() { translate=-3.6f; scale=0.36f; door=false; doorRotate=0.0f; tex=0; room2.init(); room3.init(); room4.init(); room5.init(); video.init(); listID=GenList(); }
void CHZDLReport::initForm() { new WText("<SCRIPT language='JavaScript' src='/basic.js'></SCRIPT>", this->elementAt(0,0)); m_pListMainTable = new WTable(this->elementAt(0,0)); string szInterTime = "时间段 "; szInterTime += m_starttime.Format(); szInterTime += "~"; szInterTime += m_endtime.Format(); InitPageTable(m_pListMainTable, szInterTime); GenList(); addData(m_pDataTable); }
void main( int argc, char *argv[] ) { collection c; if ( argc > 1 ) N = atoi( argv[1] ); printf("Collection size %d\n", N ); GenList( N ); c = ConsCollection( N, sizeof( int ) ); AddAll( c ); printf("Added %d items\n", N ); CheckAll( c ); printf("Checked %d items\n", N ); DeleteAll_1( c ); printf("Deleted all items\n" ); AddAll( c ); printf("Added %d items\n", N ); DeleteAll_2( c ); printf("Deleted all items\n" ); }
void Chamber::init() { room2.init(); room3.init(); room4.init(); listID=GenList(); }