Added PWINDOW and PSURFACE types

This commit is contained in:
Armando Rivera 2013-11-08 15:29:05 -05:00
parent c65f4d79f6
commit 8b92c6eee6
2 changed files with 4 additions and 2 deletions

View File

@ -3,3 +3,5 @@
#include <SDL_mixer.h>
#include <SDL_ttf.h>
typedef SDL_Window* PWINDOW;
typedef SDL_Surface* PSURFACE;

View File

@ -6,8 +6,8 @@ CONSTANT INT SCREEN_WIDTH = 640;
CONSTANT INT SCREEN_HEIGHT = 480;
MAIN
DIM AS SDL_Window* window = NULL;
DIM AS SDL_Surface* screenSurface = NULL;
DIM AS PWINDOW window = NULL;
DIM AS PSURFACE screenSurface = NULL;
IF ( SDL_Init( SDL_INIT_VIDEO ) < 0 ) THEN
PRINT( SDL_GetError() );