diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-10 17:26:15 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-10 17:26:15 -0800 |
commit | f59ffc338e2c1df792709a823be1c1d2735e88bf (patch) | |
tree | 7268bc264e4364f9766f1b137882870bf7b90569 /tests/gl/sdl_ogl.c | |
parent | 0162cc4bdc1955b442bec1a185d024d3d30cec0e (diff) | |
parent | 3a35fd9389a18707abd51dc71e2096c64413d510 (diff) |
Merge branch 'ta2bydefault'
Diffstat (limited to 'tests/gl/sdl_ogl.c')
-rw-r--r-- | tests/gl/sdl_ogl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/gl/sdl_ogl.c b/tests/gl/sdl_ogl.c index 829213d8..6f81c7ff 100644 --- a/tests/gl/sdl_ogl.c +++ b/tests/gl/sdl_ogl.c @@ -11,12 +11,24 @@ /* Combined with opengl.org tutorial #2, http://www.opengl.org/wiki/Tutorial2:_VAOs,_VBOs,_Vertex_and_Fragment_Shaders_%28C_/_SDL%29 + + Build with + + gcc sdl_ogl.c -lSDL -lGL + + g++ will fail! + + Or, to JS: + + ~/Dev/emscripten/tools/emmaken.py sdl_ogl.c -o sdl_ogl.o + ~/Dev/emscripten/emscripten.py sdl_ogl.o > sdl_ogl.js */ #include "SDL/SDL.h" #include "SDL/SDL_opengl.h" #include <stdio.h> +#include <stdlib.h> char* filetobuf(char *file) { |