1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
matabstrix/main.cpp
2015-11-04 03:33:16 +00:00

26 lines
364 B
C++

#include <cstdlib>
#include <GL/glfw.h>
#include <emscripten/emscripten.h>
static void iterate();
int main()
{
if (!glfwInit())
exit(EXIT_FAILURE);
if (!glfwOpenWindow(640, 480, 8, 8, 8, 8, 16, 0, GLFW_WINDOW))
{
glfwTerminate();
exit(EXIT_FAILURE);
}
emscripten_set_main_loop(iterate, 60, 1);
}
void iterate()
{
glfwPollEvents();
}