void drawGame(void) { if (toDraw) { arduboy.clear(); if (state != STATE_PAUSE) { drawChips(); drawFloors(); } drawPlayer(); drawStrings(); isBlink = !isBlink; toDraw = false; } }
void display(){ clearDisplay(); setupCamera(); displayLighting(); //code here drawWalls(); drawRoof(); drawBase(); drawDomes(); drawFloors(); glPushMatrix(); { glTranslatef(0,4500,0); drawSmallBuilding(); glTranslatef(0,-8200,0); glRotatef(180,0,0,1); drawSmallBuilding(); }glPopMatrix(); drawMainBuildingBigPillers(); //drawGrid(GRID_SIZE,CAMERA_DISTANCE,canDrawGrid); glutSwapBuffers(); }
void drawPyramids(int pyramid_height) { for(int floor_width = 1; floor_width <= pyramid_height; floor_width++) drawFloors(floor_width, pyramid_height); }