rnd-20001205-2-src
[rocksndiamonds.git] / src / libgame / sdl.h
index 9c48d515b8ce2ec9cd3b1707c82db6d0197f4b9e..e6543a9e80dbd25c51592dda6a0834dc0d136f64 100644 (file)
 
 /* 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);