void CUIPdaWnd::DrawUpdatedSections () { m_updatedSectionImage->Update (); m_oldSectionImage->Update (); Fvector2 tab_pos; UITabControl->GetAbsolutePos (tab_pos); Fvector2 pos; pos = m_sign_places_main[eptQuests]; pos.add(tab_pos); if(g_pda_info_state&pda_section::quests) draw_sign (m_updatedSectionImage, pos); else draw_sign (m_oldSectionImage, pos); pos = m_sign_places_main[eptMap]; pos.add(tab_pos); if(g_pda_info_state&pda_section::map) draw_sign (m_updatedSectionImage, pos); else draw_sign (m_oldSectionImage, pos); pos = m_sign_places_main[eptDiary]; pos.add(tab_pos); if(g_pda_info_state&pda_section::diary) draw_sign (m_updatedSectionImage, pos); else draw_sign (m_oldSectionImage, pos); pos = m_sign_places_main[eptContacts]; pos.add(tab_pos); if(g_pda_info_state&pda_section::contacts) draw_sign (m_updatedSectionImage, pos); else draw_sign (m_oldSectionImage, pos); pos = m_sign_places_main[eptRanking]; pos.add(tab_pos); if(g_pda_info_state&pda_section::ranking) draw_sign (m_updatedSectionImage, pos); else draw_sign (m_oldSectionImage, pos); pos = m_sign_places_main[eptActorStatistic]; pos.add(tab_pos); if(g_pda_info_state&pda_section::statistics) draw_sign (m_updatedSectionImage, pos); else draw_sign (m_oldSectionImage, pos); pos = m_sign_places_main[eptEncyclopedia]; pos.add(tab_pos); if(g_pda_info_state&pda_section::encyclopedia) draw_sign (m_updatedSectionImage, pos); else draw_sign (m_oldSectionImage, pos); }
ENTRYPOINT void draw_tunnel (ModeInfo *mi) { tunnel_configuration *tc = &tconf[MI_SCREEN(mi)]; Display *dpy = MI_DISPLAY(mi); Window window = MI_WINDOW(mi); if (!tc->glx_context) return; glXMakeCurrent(MI_DISPLAY(mi), MI_WINDOW(mi), *(tc->glx_context)); glShadeModel(GL_SMOOTH); glEnable(GL_NORMALIZE); /* glEnable(GL_CULL_FACE); */ glClear(GL_COLOR_BUFFER_BIT ); update_animation(tc); glPushMatrix (); glRotatef(180., 0., 1., 0.); gltrackball_rotate (tc->trackball); glRotatef(180., 0., 1., 0.); mi->polygon_count = 0; update_fog(tc->effects[4].state[0], /*color*/ tc->effects[4].state[1], /*density*/ tc->effects[4].state[2], /*start*/ tc->effects[4].state[3]); /*end*/ /* --- begin composite image assembly --- */ /* head mask and draw diamond tunnel */ glEnable(GL_BLEND); draw_cyl(mi, tc, tc->effects[6].state[0], 5, tc->diamondlist, 2); if (drawlogo) draw_sign(mi, tc,tc->effects[12].state[0], tc->effects[12].state[1], 1.0 / 1.33, 9, 1); glDisable(GL_BLEND); /* then tardis tunnel */ make_wall_tunnel(mi, tc, tc->effects[1].state[0], tc->effects[7].state[0]); /* then cylinder tunnel */ glEnable(GL_BLEND); draw_cyl(mi, tc, tc->effects[3].state[0], 2, tc->cyllist, 1); /*void draw_sign(mi, tc,z,alpha,aspect,tex,blendmode)*/ /* tardis */ if (drawlogo) draw_sign(mi, tc, tc->effects[2].state[0], tc->effects[2].state[1], 2.0, 1, 0); /* marquee */ if (drawlogo) draw_sign(mi, tc, tc->effects[5].state[0], tc->effects[5].state[1], 1.0, 3, 0); /*who head brite*/ if (drawlogo) draw_sign(mi, tc,1.0, tc->effects[10].state[0], 1.0 / 1.33, 6, 2); /*who head psychadelic REMOVED*/ /* draw_sign(mi, tc,1.0, tc->effects[11].state[0], 1.0 / 1.33, 8, 0); */ /* star */ /* draw_sign(mi, tc, tc->effects[8].state[0]tc->effects[8].state[0], 1.0 , 1.0, 4, 1); */ draw_sign(mi, tc, tc->effects[8].state[0], tc->effects[8].state[0], 1.0, 4, 1); /* normal head */ if (drawlogo) draw_sign(mi, tc,1.0, tc->effects[9].state[0], 1.0 / 1.33, 6, 0); /* --- end composite image assembly --- */ glPopMatrix (); if (mi->fps_p) do_fps (mi); glFinish(); check_gl_error("drawing done, calling swap buffers"); glXSwapBuffers(dpy, window); }