You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/glfw2-test.c

28 lines
511 B

/*
* 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;
}