MCPcopy Create free account
hub / github.com/EasyRPG/Player / BlitFast

Method BlitFast

src/bitmap.cpp:630–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630void Bitmap::BlitFast(int x, int y, Bitmap const & src, Rect const & src_rect, Opacity const & opacity) {
631 if (opacity.IsTransparent()) {
632 return;
633 }
634
635 pixman_image_composite32(PIXMAN_OP_SRC,
636 src.bitmap.get(),
637 nullptr, bitmap.get(),
638 src_rect.x, src_rect.y,
639 0, 0,
640 x, y,
641 src_rect.width, src_rect.height);
642}
643
644PixmanImagePtr Bitmap::GetSubimage(Bitmap const& src, const Rect& src_rect) {
645 uint8_t* pixels = (uint8_t*) src.pixels() + src_rect.x * src.bpp() + src_rect.y * src.pitch();

Callers 6

CaptureScreenMethod · 0.80
DrawTileImplMethod · 0.80
GenerateAutotilesMethod · 0.80
UpdateDisplayMethod · 0.80
UpdateDisplayMethod · 0.80
BM_BlitFastFunction · 0.80

Calls 2

IsTransparentMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected