From a2039ad16cbac23e8118a44a6512a1f7a9d89ec7 Mon Sep 17 00:00:00 2001 From: kryton9 Date: Sun, 10 Nov 2013 16:39:10 -0500 Subject: [PATCH] deleting unused folder --- SDL2-SFML2-compare/01sdl.cpp | 57 ----------------------------------- SDL2-SFML2-compare/ReadMe.txt | 40 ------------------------ SDL2-SFML2-compare/sdl2.inc | 33 -------------------- 3 files changed, 130 deletions(-) delete mode 100644 SDL2-SFML2-compare/01sdl.cpp delete mode 100644 SDL2-SFML2-compare/ReadMe.txt delete mode 100644 SDL2-SFML2-compare/sdl2.inc diff --git a/SDL2-SFML2-compare/01sdl.cpp b/SDL2-SFML2-compare/01sdl.cpp deleted file mode 100644 index 6d31263..0000000 --- a/SDL2-SFML2-compare/01sdl.cpp +++ /dev/null @@ -1,57 +0,0 @@ -#include "../jade.h" -#include "sdl2.inc" - -// SCREEN DIMENSIONS -CONSTANT INT SCREEN_WIDTH = 640; -CONSTANT INT SCREEN_HEIGHT = 480; - -MAIN - DIM AS PWINDOW window = NULL; - DIM AS PSURFACE screenSurface = NULL; - DIM AS BOOL quit = false; - DIM AS SDL_Event e; - - IF ( SDL_Init( SDL_INIT_VIDEO ) < 0 ) THEN - PRINT( SDL_GetError() ); - ELSE - //Create Window - window = SDL_CreateWindow( "SDL Simple Window", - SDL_WINDOWPOS_UNDEFINED, - SDL_WINDOWPOS_UNDEFINED, - SCREEN_WIDTH, - SCREEN_HEIGHT, - SDL_WINDOW_SHOWN); - - IF ( window == NULL ) THEN - PRINT( SDL_GetError() ); - ELSE - // Get Window Surface - screenSurface = SDL_GetWindowSurface( window ); - - - WHILE (NOT quit) BEGIN - WHILE ( SDL_PollEvent( ADDR e) != 0 ) BEGIN - SELECT (e.type) BEGIN - CASE SDL_QUIT: - quit = true; - ENDCASE - ENDSELECT - WEND - // Fill the surface with White - SDL_FillRect( screenSurface, NULL, SDL_MapRGB( screenSurface->format, 255, 255, 255 ) ); - // Update the Surface - SDL_UpdateWindowSurface( window ); - - WEND - ENDIF - ENDIF - - //Destroy Window - SDL_DestroyWindow( window ); - - // Shutdown SDL - SDL_Quit(); - - RETURN 0; - -END \ No newline at end of file diff --git a/SDL2-SFML2-compare/ReadMe.txt b/SDL2-SFML2-compare/ReadMe.txt deleted file mode 100644 index c7a4214..0000000 --- a/SDL2-SFML2-compare/ReadMe.txt +++ /dev/null @@ -1,40 +0,0 @@ -You will find simple test code -to compare SDL2 with SFML2. - -They will be as follows: -======= -01sdl \ - > simple blank window with background color -01sfml / -======= -02sdl \ - > simple window with image background -02sfml / -======= -03sdl \ - > simple 2D drawing -03sfml / -======= -04sdl \ - > simple 2D sprites -04sfml / -======= -05sdl \ - > simple 2D animated sprites -05sfml / -======= -06sdl \ - > simple 2D animated sprites keyboard control -06sfml / -======= -07sdl \ - > simple 2D animated sprites mouse control -07sfml / -======= -08sdl \ - > simple 3D window rotating colored cube with keyboard control -08sfml / -======= -09sdl \ - > simple 3D window rotating textured cube with keyboard control -09sfml / \ No newline at end of file diff --git a/SDL2-SFML2-compare/sdl2.inc b/SDL2-SFML2-compare/sdl2.inc deleted file mode 100644 index 5f2ba0a..0000000 --- a/SDL2-SFML2-compare/sdl2.inc +++ /dev/null @@ -1,33 +0,0 @@ -#ifdef _WIN32 - #include "SDL2\SDL.h" - #include "SDL2\SDL_image.h" - #include "SDL2\SDL_mixer.h" - #include "SDL2\SDL_ttf.h" -#else - #include - #include - #include - #include -#endif - -typedef SDL_Window* PWINDOW; -typedef SDL_Surface* PSURFACE; -typedef SDL_Renderer* PRENDERER; -typedef SDL_Event EVENT; -typedef SDL_Rect RECT; - -#define SetRenderDrawColor SDL_SetRenderDrawColor -#define RenderClear SDL_RenderClear -#define RenderDrawRect SDL_RenderDrawRect -#define RenderFillRect SDL_RenderFillRect -#define RenderDrawLine SDL_RenderDrawLine -#define RenderPresent SDL_RenderPresent -#define Delay SDL_Delay -#define Quit SDL_Quit -#define CreateWindow SDL_CreateWindow -#define CreateRenderer SDL_CreateRenderer -#define PollEvent SDL_PollEvent -#define KEYDOWN SDL_KEYDOWN -#define KEYUP SDL_KEYUP -#define Init SDL_Init -#define Rect SDL_Rect