I am having trouble with this. I am using GLUT.
Trying to get mouse co-ordinates for the whole day and unsuccesfull after all that work. Help please.
what i want to do it keep track where the user right clicks the mouse
So that I know where to do stuff.
Else it is doing stuff all around.
void processMainMenu(int option)
{
if (option ==1)
{red = 0; green = 0; blue = 255; // red green blue are float variables
}
elseif (option==2)
{red = 0; green = 100; blue = 0;
}
elseif (option==3)
{red = 0; green = 255; blue = 255;
}
elseif (option==4)
{red = 265; green = 140; blue = 0;
}
elseif (option==5)
{red = 1; green = 0; blue = 0;
}
elseif (option==6)
{red = 1; green = 1; blue = 1;
}
}