extracted window title to variable
This commit is contained in:
parent
32e512a798
commit
31614c4799
@ -352,7 +352,9 @@ static void visible(int vis) {
|
||||
update_idle_func();
|
||||
}
|
||||
|
||||
void parse_args(int argc, char *argv[]) {
|
||||
static char *window_title = "Gears";
|
||||
|
||||
static void parse_args(int argc, char *argv[]) {
|
||||
for (GLint i = 1; i < argc; i++)
|
||||
if (strcmp(argv[i], "-info") == 0) {
|
||||
printf("GL_VENDOR = %s\n", (char *)glGetString(GL_VENDOR));
|
||||
@ -372,7 +374,7 @@ int main(int argc, char *argv[]) {
|
||||
parse_args(argc, argv);
|
||||
glutInit(&argc, argv);
|
||||
glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
|
||||
win = glutCreateWindow("Gears");
|
||||
win = glutCreateWindow(window_title);
|
||||
init_scene();
|
||||
|
||||
glutDisplayFunc(draw);
|
||||
|
Loading…
Reference in New Issue
Block a user