add basic image loading
[exterlulz-musk.git] / main.cpp
blob9ab9cf40bc252e11ce7c10f8bed379c3dd599bc6
1 #include <SDL/SDL.h>
2 #include <SDL_image/SDL_image.h>
4 #include "musk/image.h"
6 // TODO: Find a way to copy the SDL framework AND the resources
7 // TODO: move source code in src, resources in res
9 int main(int argc, char **argv)
11 SDL_Init(SDL_INIT_EVERYTHING);
12 IMG_Init(IMG_INIT_PNG);
14 SDL_Surface *screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE);
15 musk::Image hello("hello.bmp");
17 hello.draw(screen);
18 SDL_Flip(screen);
20 SDL_Delay(2000);
22 IMG_Quit();
23 SDL_Quit();