blob: 9e633a9a2cbd13c4b79a53b392e45e72f6bf4f13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* This file is part of MXE. See LICENSE.md for licensing information.
*/
#include <stdlib.h>
#include <GL/glfw.h>
int main(void)
{
/* Initialise GLFW */
if( !glfwInit() )
{
return EXIT_FAILURE;
}
/* Open a window and create its OpenGL context */
if( !glfwOpenWindow( 640, 480, 0,0,0,0, 0,0, GLFW_WINDOW ) )
{
glfwTerminate();
return EXIT_FAILURE;
}
/* Close OpenGL window and terminate GLFW*/
glfwTerminate();
return EXIT_SUCCESS;
}
|