diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-10 17:13:29 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-10 17:13:29 -0800 |
commit | 1f0e073db6c082c2c8f693169bb7a0e035af16cf (patch) | |
tree | b9c16aa54e3b7e2bfe46b79b05b1baf86d042aaf | |
parent | c9026478f5def2fad7ef6c3a856a5b449f4def07 (diff) |
gl comments
-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) { |