whatever: removed extra files/folders

This commit is contained in:
Logen Kain 2016-11-12 20:50:51 -07:00
parent 616383d39b
commit 0d4aa4de22
3 changed files with 0 additions and 71 deletions

Binary file not shown.

View File

@ -1,5 +0,0 @@
sdltest: sdltest.cpp
g++ `sdl-config --cflags --libs` sdltest.cpp -o sdltest
clean:
rm sdltest

View File

@ -1,66 +0,0 @@
#include "SDL.h"
int main( int argc, char* argv[] )
{
/* initialize SDL */
SDL_Init(SDL_INIT_VIDEO);
/* set the title bar */
SDL_WM_SetCaption("SDL Test", "SDL Test");
/* create window */
SDL_Surface* screen = SDL_SetVideoMode(640, 480, 0, 0);
/* load bitmap to temp surface */
SDL_Surface* temp = SDL_LoadBMP("sdl_logo.bmp");
/* convert bitmap to display format */
SDL_Surface* bg = SDL_DisplayFormat(temp);
/* free the temp surface */
SDL_FreeSurface(temp);
SDL_Event event;
int gameover = 0;
/* message pump */
while (!gameover)
{
/* look for an event */
if (SDL_PollEvent(&event)) {
/* an event was found */
switch (event.type) {
/* close button clicked */
case SDL_QUIT:
gameover = 1;
break;
/* handle the keyboard */
case SDL_KEYDOWN:
switch (event.key.keysym.sym) {
case SDLK_ESCAPE:
case SDLK_q:
gameover = 1;
break;
}
break;
}
}
/* draw the background */
SDL_BlitSurface(bg, NULL, screen, NULL);
/* update the screen */
SDL_UpdateRect(screen, 0, 0, 0, 0);
}
/* free the background surface */
SDL_FreeSurface(bg);
/* cleanup SDL */
SDL_Quit();
return 0;
}