#include <iostream>
#include <SDL/SDL.h>
int main(int argc, char* argv[])
{
if(SDL_Init(SDL_INIT_VIDEO) < 0)
std::cerr << "Error while initialising SDL : " << SDL_GetError() << std::endl;
if(SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE) == NULL)
std::cerr << "Error while initialising SDL : " << SDL_GetError() << std::endl;
SDL_Surface *s = IMG_Load("../../gfx/chipset.bmp");
printf("s : %d\n", s->format->BytesPerPixel);
return 0;
}
// Compilation :
// g++ -Wall -pedantic main.cpp -o test -lSDLmain -lSDL -lSDL_image