X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.h;h=e6543a9e80dbd25c51592dda6a0834dc0d136f64;hb=ae32fd8a4316c5d7f18fe6966f999ebf5509df94;hp=9c48d515b8ce2ec9cd3b1707c82db6d0197f4b9e;hpb=ff56a43aa3799aa3357f4deca4d6482fc25a6a41;p=rocksndiamonds.git diff --git a/src/libgame/sdl.h b/src/libgame/sdl.h index 9c48d515..e6543a9e 100644 --- a/src/libgame/sdl.h +++ b/src/libgame/sdl.h @@ -34,9 +34,10 @@ /* SDL type definitions */ -typedef struct SDLSurfaceInfo *Bitmap; -typedef struct SDLSurfaceInfo *DrawBuffer; -typedef struct SDLSurfaceInfo *DrawWindow; +typedef struct SDLSurfaceInfo Bitmap; +typedef struct SDLSurfaceInfo DrawBuffer; +typedef struct SDLSurfaceInfo DrawWindow; +typedef Uint32 Pixel; typedef SDLKey Key; @@ -65,6 +66,11 @@ struct SDLSurfaceInfo GC stored_clip_gc; }; +struct XY +{ + short x, y; +}; + /* SDL symbol definitions */ @@ -309,11 +315,16 @@ struct SDLSurfaceInfo /* SDL function definitions */ inline void SDLInitVideoDisplay(void); -inline void SDLInitVideoBuffer(DrawBuffer *, DrawWindow *, boolean); -inline boolean SDLSetVideoMode(DrawBuffer *, boolean); -inline void SDLCopyArea(Bitmap, Bitmap, int, int, int, int, int, int, int); -inline void SDLFillRectangle(Bitmap, int, int, int, int, unsigned int); +inline void SDLInitVideoBuffer(DrawBuffer **, DrawWindow **, boolean); +inline boolean SDLSetVideoMode(DrawBuffer **, boolean); +inline void SDLCopyArea(Bitmap *, Bitmap *, int, int, int, int, int, int, int); +inline void SDLFillRectangle(Bitmap *, int, int, int, int, unsigned int); inline void SDLDrawSimpleLine(SDL_Surface *, int, int, int, int, unsigned int); +inline void SDLDrawLine(SDL_Surface *, int, int, int, int, Uint32); +/* functions from SGE library */ +void sge_Line(SDL_Surface *, Sint16, Sint16, Sint16, Sint16, Uint32); + +Bitmap *SDLLoadImage(char *); inline boolean SDLOpenAudio(void); inline void SDLCloseAudio(void);