Added code for drawing a circle around selected vertex

This commit is contained in:
2011-07-01 17:44:43 -04:00
parent 7fd7f90770
commit d15e6590ec
3 changed files with 38 additions and 2 deletions

View File

@ -99,6 +99,13 @@ void Game::render()
}
}
// Finally, ring the selected vertex
if (data.get_current_vertex() != NULL)
{
Vertex* v = data.get_current_vertex();
DrawUtils::draw_circle(display, v->x, v->y, v->r + 5, 0x000000);
}
SDL_Flip(display);
}