Re:A Gentle Introduction into SDL 1.3
by nathanb on Tuesday April 05, 2011 @05:05PM
(#2412721)
There are a couple of problems I ran into in the tutorial (or in my ability to follow the tutorial as a complete SDL/OGL newbie):
* GL_COLOR_BIT should be GL_COLOR_BUFFER_BIT. This may be a change which occurred between the version the author used and the version I pulled today.
* Doesn't really mention which OGL libraries are needed. Maybe cmake takes care of this. Since I used crusty ol' gmake, here's what my compiler invocation looked like:
* GL_COLOR_BIT should be GL_COLOR_BUFFER_BIT. This may be a change which occurred between the version the author used and the version I pulled today.
* Doesn't really mention which OGL libraries are needed. Maybe cmake takes care of this. Since I used crusty ol' gmake, here's what my compiler invocation looked like:
gcc -std=c99 -Wall -L libs/sdl-1.3/local/lib -l SDL -l SDLmain -l GL -I libs/sdl-1.3/local/include/SDL -I include -o sdlapp src/main.c
It took quite a bit of Googling to get that -l GL line.
Still, provided a couple of hours' entertainment this afternoon. Thanks!