All pastes #716413 Raw Edit

Untitled

public text v1 · immutable
#716413 ·published 2007-09-26 20:07 UTC
rendered paste body
#include <GL/glfw.h>

int main(void)
{
	glfwInit();

	if (!glfwOpenWindow(640, 480, 0, 0, 0, 0, 0, 0, GLFW_WINDOW))
	{
		glfwTerminate();
		return 0;
	}

	glfwSetWindowTitle("Minimal GLFW test");

	while (1)
	{
		glfwSwapBuffers();

		if (glfwGetKey(GLFW_KEY_ESC))
			break;
	}

    glfwTerminate();

    return 0;
}