Ejemplo n.º 1
0
//-------------------------------------------------------------
//							LIGHTING
//-------------------------------------------------------------
void Robot::toggleLight(){
	if(isMyLightOn){
		//turn off
		glDisable(GL_LIGHT5);
		isMyLightOn = false;
		isARobotLightOn = false;
	}
	else if(!isARobotLightOn){
		//turn on
		isMyLightOn = true;
		isARobotLightOn = true;
		refreshLight();
	}
}
Ejemplo n.º 2
0
void Robot::notifyCamera(){
	if(roboCam != NULL)
		roboCam->update();
	refreshLight();
}
Ejemplo n.º 3
0
void Editor::engineLightSelected(Light * light)
{
  m_light = light;
  refreshLight();
}