X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.h;h=31de93da084907c5cb7871d98d74433822ee35bf;hb=a9e8a4cac51cb2856f339d84bab5e07e8be75037;hp=4fec8030082d1927c3b7192dd03a7e5a0a789ed3;hpb=fc2258f533dd7578e76f89a0fe1ad093022284dd;p=rocksndiamonds.git diff --git a/src/libgame/sdl.h b/src/libgame/sdl.h index 4fec8030..31de93da 100644 --- a/src/libgame/sdl.h +++ b/src/libgame/sdl.h @@ -17,7 +17,7 @@ #include #include #include -#if defined(PLATFORM_WIN32) +#if defined(PLATFORM_WINDOWS) #include #endif @@ -75,6 +75,10 @@ struct SDLSurfaceInfo char *source_filename; int width, height; + + int alpha[2][2]; // [surface|texture][opaque|masked] + int alpha_next_blit; + SDL_Surface *surface; SDL_Surface *surface_masked; SDL_Texture *texture; @@ -391,6 +395,7 @@ typedef struct UserEventInfo UserEvent; // SDL function definitions +void SDLSetAlpha(SDL_Surface *, boolean, int); const char *SDLGetRendererName(void); boolean SDLSetNativeSurface(SDL_Surface **); SDL_Surface *SDLGetNativeSurface(SDL_Surface *); @@ -427,7 +432,6 @@ void SDLDrawLine(Bitmap *, int, int, int, int, Uint32); Pixel SDLGetPixel(Bitmap *, int, int); void SDLPutPixel(Bitmap *, int, int, Pixel); -void SDLInvertArea(Bitmap *, int, int, int, int, Uint32); void SDLCopyInverseMasked(Bitmap *, Bitmap *, int, int, int, int, int, int); Bitmap *SDLZoomBitmap(Bitmap *, int, int);