Made windows have different titles.

master
Camilla Berglund ago%!(EXTRA string=15 years)
parent 8647103a44
commit 025f8c9518
  1. 10
      tests/windows.c

@ -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();

Loading…
Cancel
Save