4 ms·
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_C
by nathanb 16y ago
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:
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!
- deleted 16y ago[deleted]
- the_mitsuhiko 16y ago> * 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. Fixed. > Doesn't really mention which OGL libraries are needed. Cmake is amazing :D