Skip to content

Instantly share code, notes, and snippets.

View MrOneTwo's full-sized avatar

Michał Ciesielski MrOneTwo

  • Voi
  • Gothenburg SWEDEN
View GitHub Profile
@vittorioromeo
vittorioromeo / hello_triangle.cpp
Created October 10, 2015 11:07
SDL2 + OpenGL ES 2.0 - "Hello triangle" example that works both on X11 and Emscripten
#include <exception>
#include <functional>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>