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

Method SetFormat

src/bitmap.cpp:471–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469DynamicFormat Bitmap::opaque_image_format;
470
471void Bitmap::SetFormat(const DynamicFormat& format) {
472 pixel_format = format;
473 opaque_pixel_format = format;
474 opaque_pixel_format.alpha_type = PF::NoAlpha;
475 image_format = format_R8G8B8A8_a().format();
476 opaque_image_format = format_R8G8B8A8_n().format();
477}
478
479DynamicFormat Bitmap::ChooseFormat(const DynamicFormat& format) {
480 uint32_t amask;

Callers 2

BGM_PlayMethod · 0.45
SE_PlayMethod · 0.45

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected