projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added initialization of config and textures for global animations
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.h
diff --git
a/src/libgame/sdl.h
b/src/libgame/sdl.h
index 3525122001825f750a9cf62826cd4c350c7203b7..c881a3df3cbfb31abc203271d59c29c4febefd44 100644
(file)
--- a/
src/libgame/sdl.h
+++ b/
src/libgame/sdl.h
@@
-92,12
+92,6
@@
typedef SDL_Event ExposeEvent;
typedef SDL_Event FocusChangeEvent;
typedef SDL_Event ClientMessageEvent;
typedef SDL_Event FocusChangeEvent;
typedef SDL_Event ClientMessageEvent;
-typedef int GC;
-typedef int Pixmap;
-typedef int Display;
-typedef int Visual;
-typedef int Colormap;
-
/* structure definitions */
/* structure definitions */
@@
-108,8
+102,10
@@
struct SDLSurfaceInfo
int width, height;
SDL_Surface *surface;
SDL_Surface *surface_masked;
int width, height;
SDL_Surface *surface;
SDL_Surface *surface_masked;
- GC gc;
- GC stored_clip_gc;
+#if defined(TARGET_SDL2)
+ SDL_Texture *texture;
+ SDL_Texture *texture_masked;
+#endif
};
struct MouseCursorInfo
};
struct MouseCursorInfo
@@
-436,6
+432,7
@@
struct MouseCursorInfo
boolean SDLSetNativeSurface(SDL_Surface **);
SDL_Surface *SDLGetNativeSurface(SDL_Surface *);
boolean SDLSetNativeSurface(SDL_Surface **);
SDL_Surface *SDLGetNativeSurface(SDL_Surface *);
+void SDLCreateBitmapTextures(Bitmap *);
#if defined(TARGET_SDL2)
SDL_Surface *SDL_DisplayFormat(SDL_Surface *);
#if defined(TARGET_SDL2)
SDL_Surface *SDL_DisplayFormat(SDL_Surface *);