More actions
imported>nsh0425 No edit summary |
(Repair batch-0004 pages from live compare) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
__TOC__ | |||
= SDL = | |||
* [http://www.libsdl.org/release/SDL-devel-1.2.14-VC8.zip libSDL_dev] | |||
= 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); | |||
} | |||
Latest revision as of 00:37, 27 March 2026
SDL
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); }