E D R , A S I H C RSS

게임프로그래밍

Difference between r1.2 and the current

@@ -5,3 +5,21 @@

= Setting Up SDL =
* [http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet0508e/index.php Setting_Up_SDL]
 
= Source Codes=
 
 
#include "SDL.h"
 
int main(int argc,char **argv)
{
SDL_Surface *pScreen;
SDL_Init(SDL_INIT_EVERYTHING);
pScreen = SDL_SetVideoMode(640,480,32,SDL_SWSURFACE);
SDL_FillRect(pScreen,&pScreen->clip_rect,SDL_MapRGB(pScreen->format,0,0,255));
SDL_Flip(pScreen);
SDL_Delay(2000);
}





2. Setting Up SDL

= Source Codes=


#include "SDL.h"

int main(int argc,char **argv)
{
SDL_Surface *pScreen;
SDL_Init(SDL_INIT_EVERYTHING);
pScreen = SDL_SetVideoMode(640,480,32,SDL_SWSURFACE);
SDL_FillRect(pScreen,&pScreen->clip_rect,SDL_MapRGB(pScreen->format,0,0,255));
SDL_Flip(pScreen);
SDL_Delay(2000);
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:41
Processing time 0.0346 sec