rnd-20020424-1-src
[rocksndiamonds.git] / src / libgame / sdl.h
index 7db0dc2c38ca30a3853009d0b96feca4cd03a40e..a4ce8d648970442a5dd40f8e3e3416c7ff366607 100644 (file)
@@ -60,6 +60,9 @@ typedef int                   Colormap;
 
 struct SDLSurfaceInfo
 {
+  char *source_filename;
+
+  int width, height;
   SDL_Surface *surface;
   SDL_Surface *surface_masked;
   GC gc;
@@ -321,6 +324,7 @@ 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(Bitmap *, int, int, int, int, unsigned int);
 inline void SDLDrawLine(Bitmap *, int, int, int, int, Uint32);
+inline Pixel SDLGetPixel(Bitmap *, int, int);
 
 Bitmap *SDLLoadImage(char *);
 
@@ -329,4 +333,8 @@ inline void SDLCloseAudio(void);
 
 inline void SDLNextEvent(Event *);
 
+void HandleJoystickEvent(Event *);
+void SDLInitJoysticks(void);
+boolean SDLReadJoystick(int, int *, int *, boolean *, boolean *);
+
 #endif /* SDL_H */