Example #1
0
void RBScoreControl::Render()
{
    RudeControl::Render();

    int centery = m_drawRect.m_top + (m_drawRect.m_bottom - m_drawRect.m_top) / 2;

    // 295 pixels wide
    int centerx = m_drawRect.m_left + (m_drawRect.m_right - m_drawRect.m_left) / 2;

    switch(m_holeSet)
    {
    case kCourseAll18:
        RenderScoreBoard(centerx, centery + kScore1Offset, 0);
        RenderScoreBoard(centerx, centery + kScore2Offset, 9);
        break;
    case kCourseFront9:
        RenderScoreBoard(centerx, centery, 0);
        break;
    case kCourseBack9:
        RenderScoreBoard(centerx, centery, 9);
        break;
    default:
        break;
    }
}
Example #2
0
void HUD::Render()
{
	RenderBandWidth();
	RenderRoundTripTime();
	RenderScoreBoard();
	RenderHealth();
}