Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

게임프로그래밍: Difference between revisions

From ZeroWiki
imported>nsh0425
No edit summary
imported>nsh0425
No edit summary
Line 6: Line 6:
= Setting Up SDL =
= Setting Up SDL =
* [http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet0508e/index.php 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);
}



Revision as of 09:50, 23 June 2010

SDL

Setting Up SDL

Source Codes

  1. 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); }