Made windows have different titles.

This commit is contained in:
Camilla Berglund 2010-09-10 00:36:18 +02:00
parent 8647103a44
commit 025f8c9518

View File

@ -32,6 +32,14 @@
#include <stdio.h>
#include <stdlib.h>
static const char* titles[] =
{
"Foo",
"Bar",
"Baz",
"Quux"
};
static GLFWwindow open_window(int width, int height, const char* title)
{
GLFWwindow window = glfwOpenWindow(width, height, GLFW_WINDOW);
@ -60,7 +68,7 @@ int main(void)
for (i = 0; i < 4; i++)
{
windows[i] = open_window(200, 200, "Foo");
windows[i] = open_window(200, 200, titles[i]);
if (!windows[i])
{
glfwTerminate();