посоветуйте книгу по SDL на русском.в гугле нашел только это http://plg.lrn.ru/.
З.Ы.
почему не компилируется ?
#include <stdio.h>
#include <stdlib.h>
#include <SDL.h>
void DrawPixel(SDL_Surface *screen, int x, int y, Uint8 R, Uint8 G, Uint8 B);
void Slock(SDL_Surface *screen);
void Sulock(SDL_Surface *screen);
/* ------------------------------------------- */
int main(int argc, char *argv[]){
if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 ){
printf(«Unable to init SDL: %s\n», SDL_GetError());
exit(1);
}
atexit(SDL_Quit);
SDL_Surface *screen;
screen=SDL_SetVideoMode(640,480,32,SDL_HWSURFACE|SDL_DOUBLEBUF);
if ( screen == NULL ){
printf(«Unable to set 640x480 video: %s\n», SDL_GetError());
exit(1);
}
return 0;
}