X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=a1fbad08e28bca122f14f3d295e972b1ec3b46b9;hb=e126d0677786bc2a76f4b8dfcbc1be81bd5d9d1b;hp=a4d3f9e8b2780cae85bc519e2cbc8fef9849b162;hpb=d77d7ac6d22b63ff3e10608e54c7ac919915fae9;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index a4d3f9e8..a1fbad08 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -720,6 +720,28 @@ void BlitBitmapOnBackground(Bitmap *src_bitmap, Bitmap *dst_bitmap, dst_x, dst_y); } +void BlitTexture(Bitmap *bitmap, + int src_x, int src_y, int width, int height, + int dst_x, int dst_y) +{ + if (bitmap == NULL) + return; + + SDLBlitTexture(bitmap, src_x, src_y, width, height, dst_x, dst_y, + BLIT_OPAQUE); +} + +void BlitTextureMasked(Bitmap *bitmap, + int src_x, int src_y, int width, int height, + int dst_x, int dst_y) +{ + if (bitmap == NULL) + return; + + SDLBlitTexture(bitmap, src_x, src_y, width, height, dst_x, dst_y, + BLIT_MASKED); +} + void DrawSimpleBlackLine(Bitmap *bitmap, int from_x, int from_y, int to_x, int to_y) {