There are but most are for c++ and Linsux. Not that there is much difference but i only write for BSD.
Shouldn't be a huge problem, basically i just need something to get me rolling. Something to show me an example how what functions you get started with.
Internet tutorials could work to but i like books better, i hate reading large pieces of text from the monitor.
if (!GLEW_VERSION_1_5) {
show_normal_error("This program requires support for at least OpenGL 1.5.", true);
}
}
int
main (int argc, char *argv[])
{
initialize ();
SDL_WM_SetCaption("plox", NULL);
SDL_Event event;
while (SDL_WaitEvent(&event)) {
switch(event.type) {
case SDL_VIDEORESIZE:
resize(event.resize.w, event.resize.h);
break;
case SDL_QUIT:
exit(EXIT_SUCCESS);
break;
}
}
show_sdl_error("PollEvent failed", true);
}
Name:
Anonymous2007-05-19 18:20 ID:EVWdaqOX
And of course, that prototype is wrong.
Name:
Anonymous2007-05-20 4:18 ID:lfhX+tZ/
>>7
actually i just needed it for a simple 2d game and i've already started writing it with libsdl, i found the examples you could download for the plg book really helpful, after that i just read manuals
like someone else said, it's not a lot of functions, it's kinda like learning libpcap, curses or any other lib, just that my first instinct to learning something new is always to order a book about it but for what i'm doing right now it's not required
Name:
Anonymous2007-05-20 16:56 ID:66X39L0m
"Programming Linux Games" is an excellent book for SDL programming. I'm using it to aid in helping me write my own 2D game.
You can even find the book at just about every book warez source there is, in case you want to "try it" before you buy it.
Name:
Anonymous2007-05-20 17:04 ID:wgyAkHfN
"Programming Faggot Games" is an excellent book for SDL programming. I'm using it to aid in helping me write my own 1D game.
Name:
Anonymous2007-05-20 18:08 ID:LLyicsEm
>>11
1D? You're going for the most boring Snake clone ever!
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy