Skip to content

Instantly share code, notes, and snippets.

@mmmovania
Created April 1, 2014 08:05
//draw boxes
glEnable(GL_LIGHTING);
for(size_t i=0;i<masses.size();++i) {
glColor3f(1,1,1);
if(wasHit && gSelectedActor == masses[i])
glColor3f(1,0,0);
DrawBox(masses[i], true);
}
glDisable(GL_LIGHTING);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment